[quagga-users 14966] Re: ospf learned default route not being re-installed after interface reset

Brian J. Murrell brian at interlinx.bc.ca
Tue Mar 27 16:47:18 BST 2018


On Tue, 2018-03-27 at 14:26 +0100, Tim Bray wrote:
> 
> I think if you have your interfaces set as link detect in zebra, then
> no
> need to wait.  When the interface comes up, zebra/quagga will go
> their
> thing.
> 
> interface eth0
>  link-detect

I'll give that a try...

> On a debian machine
> 
> I put
> 
> iface eno1 inet manual
> 
> into /etc/network/interfaces and NM leaves alone.  I have nothing
> else
> to bring the interface up, I think Zebra will do it for you.

How does zebra know what ip address/netmask/etc. to assign?  I actually
didn't know Zebra would do full interface management.

> Are you expecting to receive the default route via OSPF?

Yes, as I do when NM doesn't have to reset the interface:

default via 10.75.22.252 dev enp2s0 proto zebra metric 50 
10.0.0.0/24 via 10.75.22.252 dev enp2s0 proto zebra metric 20 
10.8.0.0/24 via 10.75.22.252 dev enp2s0 proto zebra metric 20 
10.75.22.0/24 dev enp2s0 proto kernel scope link src 10.75.22.247 metric 100 
10.75.22.247 via 10.75.22.252 dev enp2s0 proto zebra metric 20 
10.75.23.0/24 via 10.75.22.252 dev enp2s0 proto zebra metric 20 
67.193.224.0/20 via 10.75.22.252 dev enp2s0 proto zebra metric 20 
67.193.224.1 via 10.75.22.252 dev enp2s0 proto zebra metric 20 
192.168.101.0/24 proto zebra metric 20 
        nexthop via 10.75.22.196 dev enp2s0 weight 1 
        nexthop via 10.75.22.252 dev enp2s0 weight 1 
192.168.199.0/24 via 10.75.22.252 dev enp2s0 proto zebra metric 20 
206.248.155.132 via 10.75.22.252 dev enp2s0 proto zebra metric 20 

I can actually reproduce without even rebooting by simply doing "ifdown
enp2s0; ifup enp2s0".  After doing that, all of the above routes are
restored except the default route.

Cheers,
b.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.quagga.net/pipermail/quagga-users/attachments/20180327/ee84caf9/attachment.sig>


More information about the Quagga-users mailing list