On Sat, 2004-08-14 at 15:34, Paul Jakma wrote:
> Indeed, they must be:
>
> Zebra: interface add eth0 index 9 flags 4098 metric 1 mtu 1500
> Zebra: interface add shr-uni index 9 flags 4098 metric 1 mtu 1500
>
> they have the same index.
Because wireless interfaces can come up in any order via PCMCIA we need
a way to definitively refer to an interface for configuration of various
services such as dhcp etc. To do this we rename interfaces based on
their mac address as they are brought up using the nameif utility. This
occurs in the pcmcia scripts that are run when the wireless cards are
'inserted'.
So basically they are exactly the same interface, the name just changes.
This renaming happens before the interface is configured with an IP
address etc.
Requested debug output is at
http://www.wand.net.nz/~mglb1/quagga-pcmcia-restart-full Before PCMCIA Restart
shr# show interface
Interface lo is up, line protocol detection is disabled
index 1 metric 1 mtu 16436 <UP,LOOPBACK,RUNNING>
inet 127.0.0.1/8
input packets 1287, bytes 92768, dropped 0, multicast packets 0
input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0
output packets 1287, bytes 92768, dropped 0
output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0
collisions 0
Interface shr-int is up, line protocol detection is disabled
index 3 metric 1 mtu 1500 <UP,BROADCAST,RUNNING,MULTICAST>
HWaddr: 00:00:24:c2:b2:54
inet 10.1.224.1/24 broadcast 10.1.224.255
input packets 7902927, bytes 2147483647, dropped 0, multicast packets 0
input errors 1, length 0, overrun 0, CRC 0, frame 2, fifo 0, missed 0
output packets 4474938, bytes 511773386, dropped 0
output errors 5, aborted 0, carrier 5, fifo 5, heartbeat 0, window 0
collisions 0
Interface shr-uni is up, line protocol detection is disabled
index 10 metric 1 mtu 1500 <UP,BROADCAST,RUNNING,MULTICAST>
HWaddr: 00:02:2d:70:fe:28
inet 10.1.250.250/24 broadcast 10.1.250.255
input packets 952, bytes 244858, dropped 0, multicast packets 0
input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0
output packets 658, bytes 112050, dropped 0
output errors 5, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0
collisions 0
Interface teql0 is down
index 2 metric 1 mtu 1500 <NOARP>
input packets 0, bytes 0, dropped 0, multicast packets 0
input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0
output packets 0, bytes 0, dropped 0
output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0
collisions 0
shr# sho ip ospf interface
lo is up
OSPF not enabled on this interface
shr-int is up
Internet Address 10.1.224.1/24, Area 0.0.0.0
Router ID 10.1.224.1, Network Type BROADCAST, Cost: 5
Transmit Delay is 1 sec, State Backup, Priority 1
Designated Router (ID) 10.1.12.254, Interface Address 10.1.224.254
Backup Designated Router (ID) 10.1.224.1, Interface Address 10.1.224.1
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:01
Neighbor Count is 1, Adjacent neighbor count is 1
shr-uni is up
Internet Address 10.1.250.250/24, Area 0.0.0.0
Router ID 10.1.224.1, Network Type BROADCAST, Cost: 50
Transmit Delay is 1 sec, State DROther, Priority 1
Designated Router (ID) 10.1.250.248, Interface Address 10.1.250.248
Backup Designated Router (ID) 10.1.250.251, Interface Address 10.1.250.251
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:09
Neighbor Count is 6, Adjacent neighbor count is 2
teql0 is down
OSPF not enabled on this interface
After PCMCIA Restart
shr# sho interface
Interface eth0 is down
index 11 metric 1 mtu 1500 <BROADCAST,MULTICAST>
inet 10.1.250.250/24 broadcast 10.1.250.255 shr-uni
input packets 0, bytes 0, dropped 0, multicast packets 0
input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0
output packets 0, bytes 0, dropped 0
output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0
collisions 0
Interface lo is up, line protocol detection is disabled
index 1 metric 1 mtu 16436 <UP,LOOPBACK,RUNNING>
inet 127.0.0.1/8
input packets 1396, bytes 100493, dropped 0, multicast packets 0
input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0
output packets 1396, bytes 100493, dropped 0
output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0
collisions 0
Interface shr-int is up, line protocol detection is disabled
index 3 metric 1 mtu 1500 <UP,BROADCAST,RUNNING,MULTICAST>
HWaddr: 00:00:24:c2:b2:54
inet 10.1.224.1/24 broadcast 10.1.224.255
input packets 7903221, bytes 2147483647, dropped 0, multicast packets 0
input errors 1, length 0, overrun 0, CRC 0, frame 2, fifo 0, missed 0
output packets 4475160, bytes 511809350, dropped 0
output errors 5, aborted 0, carrier 5, fifo 5, heartbeat 0, window 0
collisions 0
Interface shr-uni is up, line protocol detection is disabled
index 11 metric 1 mtu 1500 <UP,BROADCAST,RUNNING,MULTICAST>
HWaddr: 00:02:2d:70:fe:28
input packets 11, bytes 1000, dropped 0, multicast packets 0
input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0
output packets 2, bytes 228, dropped 0
output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0
collisions 0
Interface teql0 is down
index 2 metric 1 mtu 1500 <NOARP>
input packets 0, bytes 0, dropped 0, multicast packets 0
input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0
output packets 0, bytes 0, dropped 0
output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0
collisions 0
shr# show ip ospf interface
eth0 is down
OSPF is enabled, but not running on this interface
lo is up
OSPF not enabled on this interface
shr-int is up
Internet Address 10.1.224.1/24, Area 0.0.0.0
Router ID 10.1.224.1, Network Type BROADCAST, Cost: 5
Transmit Delay is 1 sec, State Backup, Priority 1
Designated Router (ID) 10.1.12.254, Interface Address 10.1.224.254
Backup Designated Router (ID) 10.1.224.1, Interface Address 10.1.224.1
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:05
Neighbor Count is 1, Adjacent neighbor count is 1
shr-uni is up
OSPF not enabled on this interface
teql0 is down
OSPF not enabled on this interface
Hope this helps.
Regards
--
Matt Brown
Email: matt@mattb.net.nz
GSM: +64 21 611 544