From: Jody Shumaker Date: Tue, 17 Jan 2006 01:59:32 +0000 Subject: [LARTC] Re: Multi-path routing only using last nexthop in default Message-Id: <2af436490601161759l3a452733s7bc93c14fde96b09@mail.gmail.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1149864177==" List-Id: To: lartc@vger.kernel.org --===============1149864177== Content-Type: multipart/alternative; boundary="----=_Part_20315_2283069.1137463172241" ------=_Part_20315_2283069.1137463172241 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I found that for ppp devices, i should ony define the next hop with the dev, not a via. However this still didn't fix my problem, but I've narrowe= d down my problem a little further. # ip route get 66.189.123.136 66.189.123.136 dev ppp0 src 71.248.183.244 cache mtu 1492 advmss 1452 metric10 64 # ip route get 66.189.123.137 66.189.123.137 dev ppp0 src 66.189.76.198 cache mtu 1492 advmss 1452 metric10 64 It does properly do a 5:1 round robin choice , but only the src changes, no= t the dev. The above I believe should really have outputted for the second route: 66.189.123.137 dev eth1 src 66.189.76.198 cache mtu 1492 advmss 1452 metric10 64 I'm not sure what is wrong with my config, as I've gone over and over it. M= y best guess is that something is wrong in the kernel I compiled with the patches. # ip rule show 0: from all lookup local 50: from all lookup main 201: from 71.248.183.244 lookup 201 202: from 66.189.76.198/22 lookup 202 221: from all lookup 221 32766: from all lookup main 32767: from all lookup default # ip route show table main 10.9.44.15 dev ppp0 proto kernel scope link src 71.248.183.244 192.168.100.0/24 dev eth1 proto kernel scope link src 192.168.100.2 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.1 66.189.76.0/22 dev eth1 proto kernel scope link src 66.189.76.198 127.0.0.0/8 dev lo scope link # ip route show table 201 default via 10.9.44.15 dev ppp0 proto static src 71.248.183.244 prohibit default proto static metric 1 # ip route show table 202 default via 66.189.76.1 dev eth1 proto static src 66.189.76.198 prohibit default proto static metric 1 # ip route show table 221 default proto static nexthop via 66.189.76.1 dev eth1 weight 1 nexthop dev ppp0 weight 5 ------=_Part_20315_2283069.1137463172241 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I found that for ppp devices, i should ony define the next  hop with t= he dev, not a via.  However this still didn't fix my problem, but I've= narrowed down my problem a little further.

# ip route get 66.189.123.136
66.189.123.136 = dev ppp0  src 71.248.183.244
    cache  mtu 1492 advmss 1452 m= etric10 64
# ip route get 66.189.123.137
66.189.123.137 = dev ppp0  src 66.189.76.198
    cache  mtu 1492 advmss 1452 me= tric10 64

It does properly do a 5:1 round robin choice , but only th= e src changes, not the dev.  The above I believe should really have ou= tputted for the second route:
66.189.123.137 dev eth1  src= 66.189.76.198
    cache  mtu 1492 advmss 1452 metric10 64

I'm = not sure what is wrong with my config, as I've gone over and over it. My be= st guess is that something is wrong in the kernel I compiled with the patch= es.

# ip rule show
0:      from all lookup local
50: &nbs= p;   from all lookup main
201:    from 71.248.183.244 lookup 201
202:  = ;  from=20 66.189.76.198/22 lookup 202
221:    from all lookup 221
32766:  from all loo= kup main
32767:  from all lookup default

# ip route show tab= le main
10.9.44.15 dev ppp0  proto kernel  scope link  src 71.248.183.244
192.168.100.0/24<= /a> dev eth1  proto kernel  scope link  src 192.168.100.2
192.168.0.0/24 d= ev eth0  proto kernel  scope link  src=20 192.168.0.1
66.189.76.0/22 dev eth1  proto kernel  scope link  src <= a href=3D"http://66.189.76.198" target=3D"_blank" onclick=3D"return top.js.= OpenExtLink(window,event,this)">66.189.76.198
127.0.0.0/8 dev lo  scope link

# ip route show table 201
default vi= a 10.9.44.15 dev ppp0  proto static&= nbsp; src 71.248.183.244
prohibit default  proto static  metric 1

# ip route show table 202
default via 66.189.76.1 dev eth1  proto static  src 66.189.76.198
prohibit default  proto static  metric 1
=
# ip route show table 221
default  proto static
  &nbs= p;     nexthop via 66.18= 9.76.1  dev eth1 weight 1
      &= nbsp; nexthop dev ppp0 weight 5

------=_Part_20315_2283069.1137463172241-- --===============1149864177== 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 --===============1149864177==--