Configure 2 gateways on a freebsd box for 2 interfaces

Bill Moran wmoran at
Wed Sep 10 17:31:29 UTC 2008

In response to "The Noob" <thenoob06 at>:

> Hello all,
> I have a small question.
> I have two interface in two vlans.
> The first interface
> The second interface:
> The gateway for the first interface must be and the second
> interface must be
> How can I configure them? In rc.conf we have just defaultrouter but we can't
> specify the interface.

I'm curious as to why you would want to do this, since that will affect
the answer.

If those interfaces lead to different networks, then you should add
static routes as appropriate.

If they are alternate routes, then you should probably run something like
RIP to automatically update the routing table.

Bill Moran

More information about the freebsd-questions mailing list