Daren, If I am understanding you correctly you want to route the first local interface out one gateway and the second local interface out the second gateway. You would need to use source based routing to do what you are looking for. That's not currently supported in the cli, but you can do it from the linux command prompt using the ip tool. Something like this should work for you.
#ip route add default via 10.0.0.1 dev eth0 tab 1 #ip route add default via 10.1.0.1 dev eth1 tab 2 #ip rule add from 192.168.16.0/24 tab 1 priority 500 #ip rule add from 192.168.17.024 tab 2 priority 600 Cheers, Robert. Daren Tay wrote: > Hi there, > > my intention is just to use one router to handle 2 subnet. > But each subnet has their own gateway, so how do I specify the different > gateway on the router? > > Thanks! > Daren > > -----Original Message----- > *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of > *Nick Davey > *Sent:* Thursday, January 03, 2008 11:25 PM > *To:* Daren Tay > *Cc:* vyatta-users@mailman.vyatta.com > *Subject:* Re: [Vyatta-users] Managing different subnet with > different gateway > > I don't know if I'm understanding this right. You want to add a > second subnet on a second interface of the Vyatta router? In that > case, yes it will work fine, without much extra configuration (you > may need to modify your NAT/firewall rules). That's a pretty > straight forward setup though. If you are looking to add a second > router to your network, with a second network behind that router you > would need to add static routes for the network behind the second > router, and a default route on the second router. Alternatively you > could use a simple routing protocol like RIP. Make sense? > > On Jan 3, 2008 3:13 AM, Daren Tay <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi guys, > > happy 2008 wherever you guys are! > > I have a question: > Currently my vyatta router is handling one subnet with one > gateway, using > NAT for the servers. > SO basically its just static routing. > > I now need to add another subnet (different project) into the > picture, which > has its own gateway. > Can the vyatta router handle 2 different subnet, each with its > own gateway? > > Do advice ;) > > Thanks! > Daren > > _______________________________________________ > Vyatta-users mailing list > Vyatta-users@mailman.vyatta.com > <mailto:Vyatta-users@mailman.vyatta.com> > http://mailman.vyatta.com/mailman/listinfo/vyatta-users > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Vyatta-users mailing list > Vyatta-users@mailman.vyatta.com > http://mailman.vyatta.com/mailman/listinfo/vyatta-users _______________________________________________ Vyatta-users mailing list Vyatta-users@mailman.vyatta.com http://mailman.vyatta.com/mailman/listinfo/vyatta-users