Date: Wed, 10 Sep 2008 13:31:23 -0400 From: Bill Moran <wmoran@potentialtech.com> To: "The Noob" <thenoob06@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Configure 2 gateways on a freebsd box for 2 interfaces Message-ID: <20080910133123.5dcdfdb4.wmoran@potentialtech.com> In-Reply-To: <9263743c0809101005w5e45edb9g990eeb26b47bbb6b@mail.gmail.com> References: <9263743c0809101005w5e45edb9g990eeb26b47bbb6b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In response to "The Noob" <thenoob06@gmail.com>: > Hello all, > > I have a small question. > I have two interface in two vlans. > The first interface 192.168.0.1 255.255.255.0 > The second interface: 10.228.44.1 255.255.255.0 > The gateway for the first interface must be 192.168.0.254 and the second > interface must be 10.228.44.254 > 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 http://www.potentialtech.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080910133123.5dcdfdb4.wmoran>