Running traceroute from a system on each subnet should show you different paths.
cheers. Daren Tay wrote: > Cool guys :) > > I'm gonna give the ip rule a test when I head back to office on monday, but > how do I determine that it is working? > > Once that is done, I'll look into the bandwidth throttling. > > Daren > > -----Original Message----- > From: Robert Bays [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 05, 2008 5:17 AM > To: Daren Tay > Cc: vyatta-users@mailman.vyatta.com > Subject: Re: [Vyatta-users] Managing different subnet with different > gateway > > > Daren, > > Yep. The tool is the standard linux ip command. The "ip rule from" > part tells the system that anything from this address should go to table > n. Each table has a separate default route. > > XORP *shouldn't* kill these routes since they aren't in the master > table. YMMV. As Aubrey correctly pointed out, you will want to add > these commands to your startup files so they are added at each boot. > > As for tracking bandwidth, you could also poll interface stats using > SNMP and rrdtool/mrtg. (ifOutOctets) > > Good Luck! > > Cheers, > Robert. > > > > Daren Tay wrote: >> Hi guys, >> >> yeah I want to route them out different gateway. >> >> what is this ip tool you are refering to? you mean the standard 'ip' > command >> over the linux kernel? >> And if I issue these command, won't xorp override it everytime i do a > commit >> within it? I thought Vyatta overrides any routing/settings the kernel > has.. >> so base on what you are advicing me, >>> #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 >> say my subnet 1 is 192.168.16.0/24 >> subnet 2 is 192.168.17.0/24 >> >> by add the above, i can define the default gateway out? >> >> And as my original question mention, will it interfere with Vyatta's >> settings (static routing etc), or vice versa? >> >> On a side note, am I able to track bandwidth usage on each of this >> interface? >> >> Thanks! >> Daren >> >> -----Original Message----- >> From: Aubrey Wells [mailto:[EMAIL PROTECTED] >> Sent: Friday, January 04, 2008 6:19 AM >> To: Robert Bays >> Cc: Daren Tay; vyatta-users@mailman.vyatta.com >> Subject: Re: [Vyatta-users] Managing different subnet with different >> gateway >> >> >> hmmm I did not know you could do that with ip in linux. very >> interesting. you just solved a problem for me as well, thanks. :-) >> >> ------------------ >> Aubrey Wells >> Senior Engineer >> Shelton | Johns Technology Group >> A Vyatta Ready Partner >> www.sheltonjohns.com >> >> >> On Jan 3, 2008, at 1:14 PM, Robert Bays wrote: >> >>> 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 >> _______________________________________________ >> 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 _______________________________________________ Vyatta-users mailing list Vyatta-users@mailman.vyatta.com http://mailman.vyatta.com/mailman/listinfo/vyatta-users