[quagga-users 13101] Re: avoid interfaces

Mattias Walström mattias.walstrom at westermo.se
Wed Dec 19 00:00:19 GMT 2012


Thanks for all answers, now I feel that I have a little better understanding about what is happening.

I tested with the /32 in the network command, but it did not work, OSPF did not get enabled on eth0, and according to the documentation it shouldn't either.

now to the part I can not understand, if I run the following test:

to emulate the VRRP interface I added a /32 address to loopback.
ip addr add 192.168.0.99/32 dev lo

eth0: 192.168.0.1/24
router ospf
  network 192.168.0.0/24 area 0.0.0.0

R1> show ip ospf route
============ OSPF network routing table ============
N    192.168.0.0/24        [10] area: 0.0.0.0
                            directly attached to eth0
N    192.168.0.99/32       [10] area: 0.0.0.0
                            directly attached to lo

============ OSPF router routing table =============

============ OSPF external routing table ===========

eth1: 192.168.0.91/24
router ospf
  network 192.168.0.0/24 area 0.0.0.0

R2> show ip ospf route
============ OSPF network routing table ============
N    192.168.0.0/24        [10] area: 0.0.0.0
                            directly attached to eth1
N    192.168.0.99/32       [20] area: 0.0.0.0
                            via 192.168.0.1, eth1

============ OSPF router routing table =============

============ OSPF external routing table ===========

As stated above, I do not use any redistribute command, just the network command.

If I do network 192.168.0.0/24, why is the /32 get announced? Shouldn't it be announced as a /24 if that is what I have said in the network command? I can not find an explanation for this in the documentation, it really puzzles me.

This is why I want to remove the VRRP interface from zebra/OSPF, but maybe that is the wrong approach?

Mattias




More information about the Quagga-users mailing list