Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 2008 19:24:44 -0500
From:      Derek Ragona <derek@computinginnovations.com>
To:        "The Noob" <thenoob06@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: Configure 2 gateways on a freebsd box for 2 interfaces
Message-ID:  <6.0.0.22.2.20080910192254.0266f648@mail.computinginnovations.com>
In-Reply-To: <9263743c0809101005w5e45edb9g990eeb26b47bbb6b@mail.gmail.co m>
References:  <9263743c0809101005w5e45edb9g990eeb26b47bbb6b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 12:05 PM 9/10/2008, The Noob wrote:
>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.
>Thanks for your help
>Best Regads
>TheNoob

You can only have one default gateway by definition. You will need a static 
route to pass traffic from interface/subnet to the other.

         -Derek

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




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