[quagga-dev 6394] Re: Zebra and Multipath (Load-balancing)

Joakim Tjernlund Joakim.Tjernlund at transmode.se
Tue Feb 3 19:31:14 GMT 2009


> 
> Hey All,
> I am using Quaaga 0.98.6 (kernel 2.4.33).
> I added a new multipath static route to the Linux shell.
> "ip route add 50.0.0.0/8 nexthop via 5.5.5.1 dev bridge nexthop via 
10.88.1.254
>  dev bridge"
> 
> Running "ip route" on the linux shell , I see the following output:
> 10.88.1.0/24 dev bridge  proto kernel  scope link  src 10.88.1.2
> 5.5.0.0/16 dev bridge  proto kernel  scope link  src 5.5.5.5
> 50.0.0.0/8
>         nexthop via 5.5.5.1  dev bridge weight 1
>         nexthop via 10.88.1.254  dev bridge weight 1
> 127.0.0.0/8 dev lo  scope link
> 224.0.0.0/4 dev bridge  scope link  src 10.88.1.2
> default via 10.88.1.254 dev bridge  src 10.88.1.2
> 
> I can see subnet 50.0.0.0/8 is load-balanced between 5.5.5.1 and 
10.88.1.254.
> 
> Now, when I use Zebra to show ip route , I get the following:
> Router# show ip route
> Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
>        I - ISIS, B - BGP, > - selected route, * - FIB route
> 
> K>* 0.0.0.0/0 via 10.88.1.254, bridge
> C>* 5.5.0.0/16 is directly connected, bridge
> C * 10.88.1.0/24 is directly connected, ipsec0
> C>* 10.88.1.0/24 is directly connected, bridge
> K * 50.0.0.0/8 is directly connected, unknown inactive
> K * 127.0.0.0/8 is directly connected, lo
> C>* 127.0.0.0/8 is directly connected, lo
> K>* 224.0.0.0/4 is directly cod, bridge
> 
> 
> Subnet 50.0.0.0/8 is showed as "unknown inactive":
>  K * 50.0.0.0/8 is directly connected, unknown inactive
> 
> Is there something I could do about it any idea ?

yes, look at zebra/zebra_rib.c:rib_add_ipv4()
I have fixed rib_delete_ip4() here:
http://code.quagga.net/cgi-bin/gitweb.cgi?p=people/jocke/quagga;a=commit;h=aa0caa117397e7bc29b492f4cc76a7189e4bf564





More information about the Quagga-dev mailing list