Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 May 2024 02:33:45 +0100
From:      "Souji Thenria" <mail@souji-thenria.net>
To:        "Steven Friedrich" <freebsdlouisville@gmail.com>, "FreeBSD Questions" <freebsd-questions@freebsd.org>
Subject:   Re: fibs broke route add default?
Message-ID:  <D1IC7GG3ZRR8.3GNC9DGT860MR@souji-thenria.net>
In-Reply-To: <82df5e44-440d-481b-9999-ce8b9185e4ff@gmail.com>
References:  <82df5e44-440d-481b-9999-ce8b9185e4ff@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D1IC7GG3ZRR8.3GNC9DGT860MR>