Mrinal Sinha
2006-Jul-28 04:55 UTC
Problem with routing for multiple uplinks/providers using iproute2
hi all, we were trying to configure our system with 2 ethernet catds connected to two different providers using iproute2 so that it recieves and transmits data from both of them. We have followed the configuration as given on lartc''s howto But the most wierd part of the story is that after we restart the system (We have put the script in rc.local) the system works fine and we can ping both our cards from anywhere in the world. But after sometime none of the cards can be pinged from outside but the site running on the system is accessible from everywhere. Does anyone has any idea where or wat we are doing wrong, i will really appreciate your help. Its just so confusing, hopefully its a silly error, (We are running FC-4 with dual Xeon processors) thnx in advance, Mrin --------------------------------- Heres a new way to find what you''re looking for - Yahoo! Answers _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Mrinal Sinha
2006-Jul-31 08:43 UTC
Re: Problem with routing for multiple uplinks/providers using iproute2
serban, thanks for the reply, i dont think thers any irq takin place still i am a newbie so will wish if u chk the two lines which has anythin to do with the eth* 169: 723767 725131 723893 724004 IO-APIC-level uhci_hcd:usb2, eth0 185: 57275 56839 56322 56789 IO-APIC-level uhci_hcd:usb4, eth1 we have made an rc.init file which contains the required command for iproute to be executed and this file gets executed by rc.local. So the rc.init file is, #!/bin/sh P1_NET=144.16.129.0/20 P2_NET=202.141.12.177/28 IF1=eth0 IF2=eth1 T1=vsnl T2=ernet P1=144.16.141.30 P2=202.141.12.177 IP1=144.16.129.50 IP2=202.141.12.183 ip route add $P1_NET dev $IF1 src $IP1 table $T1 ip route add default via $P1 table $T1 ip route add $P2_NET dev $IF2 src $IP2 table $T2 ip route add default via $P2 table $T2 ip route del default ip route add default scope global nexthop via 144.16.141.30 dev eth0 weight 1 nexthop via 202.141.12.178 dev eth1 weight 1 ip route add $P1_NET dev $IF1 src $IP1 ip route add $P2_NET dev $IF2 src $IP2 ip rule add from $IP1 table $T1 ip rule add from $IP2 table $T2 touch /var/lock/subsys/local echo "keycode 14 = BackSpace" | loadkeys hope this helps in understanding the problem thanks and Regards, Mrinal Serban Murariu <smurariu@gmail.com> wrote: could you paste your rc.local? also make sure that your nics are not doing any irq sharing; cat /proc/interrupts and look for a line that states (for example) 5: 409350163 XT-PIC eth2, eth1 --------------------------------- Heres a new way to find what you''re looking for - Yahoo! Answers --------------------------------- Heres a new way to find what you''re looking for - Yahoo! Answers _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc