[quagga-users 13321] Re: Q: deleting routes from the zebra_rib

Christian Franke nobody at nowhere.ws
Wed Jul 10 14:39:09 BST 2013

On 07/10/2013 02:32 AM, Charlet, Ricky wrote:
> Then I add a new connected interface/route on rtr2
> rtr2: lo=
> I epxpect that the `show ip route` will reveal only the new connected route, but it still retains the RIP route also:
> helios-cave# show ip route
> Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
>        I - ISIS, B - BGP, > - selected route, * - FIB route
> K>* via, eth0
> C>* is directly connected, eth0
> C>* is directly connected, lo
> R [120/2] via, eth1, 00:00:23
> C>* is directly connected, lo
> C>* is directly connected, eth1
> Is that bad? It seems so to me.

I tried to reproduce that here but to me it seems to be working correctly.

If I have "network lo" in the RIP router configuration on rtr2, the RIP
process will withdraw the route for via rtr1 from zebra as
soon as I add on rtr2's lo device. This is because ripd sees
that it has a better local route for now. In that case, no
RIP route shows up anymore in "show ip route".

If I don't have "network lo" in the rip router configuration on rtr2
when adding, the rip process won't consider
locally connected and will keep the route via rtr1. In that case the RIB
looks like the one you showed above. RIPD sends the route via rtr1 to
zebra, but zebra will not install it as connected routes have a lower
administrative distance.


More information about the Quagga-users mailing list