Re: fibs broke route add default?

From: Souji Thenria <mail_at_souji-thenria.net>
Date: Sat, 25 May 2024 01:33:45 UTC
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