From: Mrinal Sinha Date: Mon, 31 Jul 2006 08:43:31 +0000 Subject: Re: [LARTC] Problem with routing for multiple uplinks/providers using Message-Id: <20060731084331.64083.qmail@web8612.mail.in.yahoo.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0950056784==" List-Id: References: <20060728045553.20874.qmail@web8601.mail.in.yahoo.com> In-Reply-To: <20060728045553.20874.qmail@web8601.mail.in.yahoo.com> To: lartc@vger.kernel.org --===============0950056784== Content-Type: multipart/alternative; boundary="0-1057007242-1154335411=:63353" Content-Transfer-Encoding: 8bit --0-1057007242-1154335411=:63353 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable serban, thanks for the reply, i dont think thers any irq takin place still i am a n= ewbie 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 iprout= e to be executed and this file gets executed by rc.local. So the rc.init file is, #!/bin/sh P1_NET=3D144.16.129.0/20 P2_NET=3D202.141.12.177/28 IF1=3Deth0 IF2=3Deth1 T1=3Dvsnl T2=3Dernet P1=3D144.16.141.30 P2=3D202.141.12.177 IP1=3D144.16.129.50 IP2=3D202.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 =3D BackSpace" | loadkeys hope this helps in understanding the problem thanks and Regards, Mrinal Serban Murariu 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 =09 --------------------------------- Here=92s a new way to find what you're looking for - Yahoo! Answers=20 =09 --------------------------------- Here=92s a new way to find what you're looking for - Yahoo! Answers=20 --0-1057007242-1154335411=:63353 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable serban,
thanks for the reply, i dont think thers any irq takin place sti= ll i am a newbie so will wish if u chk the two lines which has anythin to d= o with the eth*

169:     723767   = ;  725131     723893     72400= 4   IO-APIC-level  uhci_hcd:usb2, eth0
185:  &n= bsp;   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

P= 1_NET=3D144.16.129.0/20
P2_NET=3D202.141.12.177/28
IF1=3Deth0
IF2= =3Deth1
T1=3Dvsnl
T2=3Dernet
P1=3D144.16.141.30
P2=3D202.141.12= .177
IP1=3D144.16.129.50
IP2=3D202.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 nex= thop via 144.16.141.30 dev eth0 weight 1 nexthop via 202.141.12.178 dev eth= 1 weight 1

ip route add $P1_NET dev $IF1 src $IP1
ip route add $P= 2_NET dev $IF2 src $IP2
ip rule add from $IP1 table $T1
ip rule add f= rom $IP2 table $T2
touch /var/lock/subsys/local
echo "keycode 14 =3D = BackSpace" | loadkeys

hope this helps in understanding the problem
thanks and Regards,
Mrinal

Serban Murariu <smurari= u@gmail.com> wrote:
co= uld you paste your rc.local?

also make sure that your nics are not d= oing any irq sharing; cat
/proc/interrupts and look for a line that stat= es (for example) =20 5:
409350163 XT-PIC eth2, eth1

=20 =09 =09


=20 Here=92s a new way to find what you're looking for - Yahoo! Answers<= /a>

=09 =09


=20 Here=92s a new way to find what you're looking for -
Yahoo! Answers<= /a>=20 --0-1057007242-1154335411=:63353-- --===============0950056784== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0950056784==--