[quagga-dev 1401] Re: Dynamic Reconfiguration of Quagga (OSPF)

Matt Brown matt at mattb.net.nz
Fri Aug 13 04:55:25 BST 2004


On Wed, 2004-08-11 at 15:11, Paul Jakma wrote:
> On Fri, 6 Aug 2004, Matt Brown wrote:
> 
> > OK. This is good to know. I haven't had time to sit down and try and
> > reproduce the behaviour that I was seeing yet, so for know I will
> assume 
> > that quagga is functioning correctly.
> 
> Well, it mightnt be, but you know what to look for now hopefully.

OK. It was a little bit tricky to track down, but I've been able to
reproduce the problem that I was seeing. The problem occurs when running
ospfd on a PCMCIA wireless interface. 

* Quagga responds correctly when started after the interface is up

Aug 13 15:29:58 shr ospfd[9394]: old umask 23 95
Aug 13 15:29:58 shr ospfd[9394]: Zebra: interface add lo index 1 flags
73 metric 1 mtu 16436
Aug 13 15:29:58 shr ospfd[9394]: Zebra: interface add shr-int index 3
flags 4675 metric 1 mtu 1500
Aug 13 15:29:58 shr ospfd[9394]: interface 10.1.224.1 join AllSPFRouters
Multicast group.
Aug 13 15:29:58 shr ospfd[9394]: Zebra: interface add shr-uni index 7
flags 4163 metric 1 mtu 1500
Aug 13 15:29:58 shr ospfd[9394]: interface 10.1.250.250 join
AllSPFRouters Multicast group.
Aug 13 15:29:58 shr ospfd[9394]: Zebra: interface add teql0 index 2
flags 128 metric 1 mtu 1500

* Quagga responds correctly to a simple up/down of the interface via
ifconfig 

Aug 13 15:33:01 shr ospfd[9394]: Zebra: Interface[shr-uni] state change
to up.
Aug 13 15:33:01 shr ospfd[9394]: interface 10.1.250.250 join
AllSPFRouters Multicast group.
Aug 13 15:33:02 shr ospfd[9394]: Zebra: Route add 10.1.250.0/24 nexthop
10.1.250.0
Aug 13 15:33:02 shr ospfd[9394]: Link State Update: Unknown Neighbor
10.1.250.248 on int: shr-uni:10.1.250.250
Aug 13 15:33:02 shr ospfd[9394]: Link State Update: Unknown Neighbor
10.1.250.251 on int: shr-uni:10.1.250.250
Aug 13 15:33:02 shr ospfd[9394]: Link State Update: Unknown Neighbor
10.1.250.248 on int: shr-uni:10.1.250.250
Aug 13 15:33:02 shr ospfd[9394]: Link State Acknowledgment: Unknown
Neighbor 10.1.250.251.
Aug 13 15:33:03 shr ospfd[9394]: Link State Acknowledgment: Unknown
Neighbor 10.1.250.248.

* Quagga doesn't respond correctly to pcmcia being restarted (interface
removed from system, interface added to system)

Aug 13 15:26:14 shr ospfd[9206]: Zebra: interface add eth0 index 7 flags
4098 metric 1 mtu 1500
Aug 13 15:26:15 shr ospfd[9206]: Zebra: interface add shr-uni index 7
flags 4098 metric 1 mtu 1500
Aug 13 15:26:16 shr ospfd[9206]: Zebra: Interface[shr-uni] state change
to up.
Aug 13 15:26:16 shr ospfd[9206]: can't setsockopt IP_DROP_MEMBERSHIP
(AllSPFRouters): Cannot assign requested address

So from what I can see, the kernel is telling Quagga that the interface
has been added, but quagga is failing to activate on it. The output of
show ospf interface says that ospf is not enabled on the interface that
was removed and added. The following links hopefully contain all of the
debugging information that is required.

General Setup Information:
http://www.wand.net.nz/~mglb1/quagga-config-explanation

Debug info when quagga is started with interface already up (control
case)
http://www.wand.net.nz/~mglb1/quagga-interface-already-up

Debug info when the interface is brought up / down via ifconfig
http://www.wand.net.nz/~mglb1/quagga-interface-up-down

Debug info when the interface is removed / added via a PCMCIA restart
http://www.wand.net.nz/~mglb1/quagga-pcmcia-restart

If you need any more information please let me know. 

Oh, bugger, I just realised that I did all this testing on 0.96.4 :(
Well I guess I'll go and check that I can reproduce it with 0.96.5.

> > Does this make sense?
> 
> Not once you realise a network statement for x/y will enable OSPF on 
> all interfaces that fall within x/y. ;)

Indeed, I didn't realise it was an inclusive match. Knowing this solves
99% of my problems, except for those mentioned above :)

Regards

-- 
Matt Brown
Email:	matt at mattb.net.nz
GSM: 	+64 21 611 544




More information about the Quagga-dev mailing list