Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 May 2024 01:34:49 -0400
From:      Steven Friedrich <freebsdlouisville@gmail.com>
To:        Souji Thenria <mail@souji-thenria.net>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: fibs broke route add default?
Message-ID:  <3ece9c84-00ff-4b54-b169-151f77aea06b@gmail.com>
In-Reply-To: <D1IC7GG3ZRR8.3GNC9DGT860MR@souji-thenria.net>
References:  <82df5e44-440d-481b-9999-ce8b9185e4ff@gmail.com> <D1IC7GG3ZRR8.3GNC9DGT860MR@souji-thenria.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On 5/24/24 21:33, Souji Thenria wrote:
> On Sat May 25, 2024 at 2:08 AM BST, Steven Friedrich wrote:
>> route add default 192.168.1.1 returns an error:
>>
>> add net default: gateway 192.168.1.1 fib 0: Invalid argument
>>
>> This command is taken from the route man page.
>>
>> How can I fix this?
>
> Hi Steven,
>
> You need to provide a bit more context/information like:
> What version of FreeBSD are you using?
> In what kind of environment (e.g. on the host itself or in a jail) are
> you executing the command?
>
> If you run the command from inside a jail, you would need to use VNET;
> otherwise, you can't edit the routes.
>
> Regards,
> Souji

Thanks for your reply.

I am running FreeBSD 14.1 BETA 3, but with updates from git.  No jails 
involved.

I was trying to get rtw88 wifi driver to work, I finally figured it 
out.  But in the process I noticed wlan0 wasn't creating a default 
route, like when I enable re0 or re1.

I was trying this command on the host.  I read the man page and the 
handbook, but they show the command as I invoked it.

Anyway, since I figured out the rc.conf entries, wlan0 gets an IP adx 
from dhcp and creates a default route.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ece9c84-00ff-4b54-b169-151f77aea06b>