Re: Problem with routing for multiple uplinks/providers using iproute2

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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


Here?s a new way to find what you're looking for - Yahoo! Answers


Here?s a new way to find what you're looking for - Yahoo! Answers
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux