ospf interoperability problems with cisco and other errors
Hi All! I'm a very new bird user, but i have some problems with cisco 7200 router. First, the HELLO packet ignored with "Bad OSPF hello packet from 1.0.0.1 received: options mismatch (0x12)." if i use the cisco default ospf configuration. With "ip ospf lls disable" option everything is ok. Second, i advertise some alias IP from the pc to the cisco router, but if i remove the alias address from the interface some OSPF routes still present in the cisco router. Here is the relevant configuration: Cisco 7200 12.2(28)SB5 interface Loopback0 ip address 3.0.0.1 255.255.255.255 ! interface FastEthernet0/0 ip address 1.0.0.1 255.255.255.0 ip ospf message-digest-key 1 md5 benabela ip ospf lls disable duplex full ! router ospf 1 log-adjacency-changes area 0.0.0.0 authentication message-digest network 1.0.0.0 0.0.0.255 area 0.0.0.0 default-information originate ! ip classless ip route 0.0.0.0 0.0.0.0 Loopback0 Bird 1.1.4 protocol kernel { learn; scan time 20; import all; export none; } protocol device { scan time 10; } protocol ospf ospf1 { debug { routes,filters }; export filter { if net ~ 192.0.2.0/24 then accept; reject; }; area 0.0.0.0 { interface "tap1" { authentication cryptographic; password "benabela"; }; }; }; ip addr show output without alias adresses: 22: tap1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 500 link/ether 00:ff:1a:ea:21:0c brd ff:ff:ff:ff:ff:ff inet 1.0.0.2/24 brd 1.0.0.255 scope global tap1 inet6 fe80::2ff:1aff:feea:210c/64 scope link valid_lft forever preferred_lft forever The tap1 and cisco fa0/0 is bridged. The tap1:0 and tap1:1 alias ip now not present (earlier i up and down the alias interfaces) , but cisco show this: 1.0.0.0/24 is subnetted, 1 subnets C 1.0.0.0 is directly connected, FastEthernet0/0 3.0.0.0/32 is subnetted, 1 subnets C 3.0.0.1 is directly connected, Loopback0 O E2 192.0.2.0/24 [110/10000] via 1.0.0.2, 00:28:35, FastEthernet0/0 S* 0.0.0.0/0 is directly connected, Loopback0 Bird show this: bird> sh route 0.0.0.0/0 via 1.0.0.1 on tap1 [ospf1 17:47] E2 (150/10/1) [1] via 10.1.16.1 on eth0 [kernel1 17:44] (10) 1.0.0.0/24 dev tap1 [direct1 17:44] (240) dev tap1 [ospf1 17:47] I (150/10) 2.0.0.0/24 dev tap2 [direct1 17:44] (240) dev tap2 [ospf2 17:44] I (150/10) 10.1.16.0/20 dev eth0 [direct1 17:44] (240) 127.0.0.0/8 dev lo [direct1 17:44] (240) 192.168.252.0/24 dev vmnet2 [direct1 17:44] (240) 192.168.253.0/24 dev vmnet1 [direct1 17:44] (240) 192.168.254.0/24 dev vmnet8 [direct1 17:44] (240) If i up the tap1:0 and tap1:1 22: tap1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 500 link/ether 00:ff:1a:ea:21:0c brd ff:ff:ff:ff:ff:ff inet 1.0.0.2/24 brd 1.0.0.255 scope global tap1 inet 192.0.2.1/32 brd 192.0.2.255 scope global tap1:0 inet 192.0.2.2/32 brd 192.0.2.255 scope global tap1:1 inet6 fe80::2ff:1aff:feea:210c/64 scope link valid_lft forever preferred_lft forever bird show this: bird> show route 0.0.0.0/0 via 1.0.0.1 on tap1 [ospf1 17:47] E2 (150/10/1) [1] via 10.1.16.1 on eth0 [kernel1 17:44] (10) 1.0.0.0/24 dev tap1 [direct1 17:44] (240) dev tap1 [ospf1 17:47] I (150/10) 2.0.0.0/24 dev tap2 [direct1 17:44] (240) dev tap2 [ospf2 17:44] I (150/10) 10.1.16.0/20 dev eth0 [direct1 17:44] (240) 127.0.0.0/8 dev lo [direct1 17:44] (240) 192.168.252.0/24 dev vmnet2 [direct1 17:44] (240) 192.168.253.0/24 dev vmnet1 [direct1 17:44] (240) 192.168.254.0/24 dev vmnet8 [direct1 17:44] (240) 192.0.2.1/32 dev tap1 [direct1 18:26] (240) 192.0.2.2/32 dev tap1 [direct1 18:27] (240) cisco show this: 1.0.0.0/24 is subnetted, 1 subnets C 1.0.0.0 is directly connected, FastEthernet0/0 3.0.0.0/32 is subnetted, 1 subnets C 3.0.0.1 is directly connected, Loopback0 192.0.2.0/24 is variably subnetted, 3 subnets, 2 masks O E2 192.0.2.2/32 [110/10000] via 1.0.0.2, 00:00:40, FastEthernet0/0 O E2 192.0.2.0/24 [110/10000] via 1.0.0.2, 00:00:40, FastEthernet0/0 O E2 192.0.2.1/32 [110/10000] via 1.0.0.2, 00:00:40, FastEthernet0/0 S* 0.0.0.0/0 is directly connected, Loopback0 Down the tap alias interfaces: bird> show route 0.0.0.0/0 via 1.0.0.1 on tap1 [ospf1 17:47] E2 (150/10/1) [1] via 10.1.16.1 on eth0 [kernel1 17:44] (10) 1.0.0.0/24 dev tap1 [direct1 17:44] (240) dev tap1 [ospf1 17:47] I (150/10) 2.0.0.0/24 dev tap2 [direct1 17:44] (240) dev tap2 [ospf2 17:44] I (150/10) 10.1.16.0/20 dev eth0 [direct1 17:44] (240) 127.0.0.0/8 dev lo [direct1 17:44] (240) 192.168.252.0/24 dev vmnet2 [direct1 17:44] (240) 192.168.253.0/24 dev vmnet1 [direct1 17:44] (240) 192.168.254.0/24 dev vmnet8 [direct1 17:44] (240) But cisco still present some bad routes: 1.0.0.0/24 is subnetted, 1 subnets C 1.0.0.0 is directly connected, FastEthernet0/0 3.0.0.0/32 is subnetted, 1 subnets C 3.0.0.1 is directly connected, Loopback0 O E2 192.0.2.0/24 [110/10000] via 1.0.0.2, 00:04:18, FastEthernet0/0 S* 0.0.0.0/0 is directly connected, Loopback0 So what is the problem? Some debug output from bird: bird: ospf1 < added 192.0.2.0/24 dev tap1 bird: ospf1 < removed 192.0.2.0/24 dev tap1 bird: ospf1 < added 192.0.2.1/32 dev tap1 bird: ospf1 < removed 192.0.2.1/32 dev tap1 bird: ospf1 < added 192.0.2.0/24 dev tap1 bird: ospf1 < removed 192.0.2.0/24 dev tap1 bird: ospf1 < added 192.0.2.0/24 dev tap1 bird: ospf1 < removed 192.0.2.0/24 dev tap1 bird: ospf1 < added 192.0.2.2/32 dev tap1 bird: ospf1 < removed 192.0.2.1/32 dev tap1 bird: ospf1 < removed 192.0.2.2/32 dev tap1 So why produced bird these lines with /24 prefix?: bird: ospf1 < added 192.0.2.0/24 dev tap1 bird: ospf1 < removed 192.0.2.0/24 dev tap1 Thx Csszep
On Sat, Oct 03, 2009 at 07:39:55PM +0200, Csaba Szép wrote:
Hi All!
Hello
First, the HELLO packet ignored with "Bad OSPF hello packet from 1.0.0.1 received: options mismatch (0x12)." if i use the cisco default ospf configuration.
With "ip ospf lls disable" option everything is ok.
This is probably inappropriate options handling in BIRD, we will fix it.
Second, i advertise some alias IP from the pc to the cisco router, but if i remove the alias address from the interface some OSPF routes still present in the cisco router.
So i suppose the problem is just the route 192.0.2.0/24 ? I am not sure where it comes from. Could you send me output of command 'show interfaces' and 'show ospf state' on BIRD? -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
Hi! thx for the quick answer. With tap up: bird> show interfaces lo up (index=1) MultiAccess AdminUp LinkUp Loopback Ignored MTU=16436 127.0.0.1/8 (Primary, broadcast 127.255.255.255, scope host) eth0 up (index=2) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 10.1.16.196/20 (Primary, broadcast 10.1.31.255, scope site) vmnet1 up (index=3) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.253.1/24 (Primary, broadcast 192.168.253.255, scope site) vmnet2 up (index=4) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.252.1/24 (Primary, broadcast 192.168.252.255, scope site) vmnet8 up (index=5) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.254.1/24 (Primary, broadcast 192.168.254.255, scope site) dummy0 DOWN (index=6) MultiAccess Broadcast Multicast AdminUp LinkDown MTU=1500 1.2.3.4/24 (Primary, broadcast 1.2.3.255, scope univ) tap1 up (index=22) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 1.0.0.2/24 (Primary, broadcast 1.0.0.255, scope univ) 192.0.2.1/32 (Unselected, broadcast 192.0.2.1, opposite 192.0.2.1, scope univ, unnumbered) 192.0.2.2/32 (Unselected, broadcast 192.0.2.2, opposite 192.0.2.2, scope univ, unnumbered) tap2 up (index=23) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 2.0.0.2/24 (Primary, broadcast 2.0.0.255, scope univ) bird> show ospf state ospf1 area 0.0.0.0 router 1.0.0.2 network 1.0.0.0/24 metric 10 external 192.0.2.1/32 metric2 10000 external 192.0.2.2/32 metric2 10000 router 3.0.0.1 network 1.0.0.0/24 metric 1 external 0.0.0.0/0 metric2 1 tag 00000001 network 1.0.0.0/24 dr 3.0.0.1 router 3.0.0.1 router 1.0.0.2 without secondary adresses (ifconfig tap1:0 down, ifconfig tap1:1 down): lo up (index=1) MultiAccess AdminUp LinkUp Loopback Ignored MTU=16436 127.0.0.1/8 (Primary, broadcast 127.255.255.255, scope host) eth0 up (index=2) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 10.1.16.196/20 (Primary, broadcast 10.1.31.255, scope site) vmnet1 up (index=3) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.253.1/24 (Primary, broadcast 192.168.253.255, scope site) vmnet2 up (index=4) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.252.1/24 (Primary, broadcast 192.168.252.255, scope site) vmnet8 up (index=5) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.254.1/24 (Primary, broadcast 192.168.254.255, scope site) dummy0 DOWN (index=6) MultiAccess Broadcast Multicast AdminUp LinkDown MTU=1500 1.2.3.4/24 (Primary, broadcast 1.2.3.255, scope univ) tap1 up (index=22) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 1.0.0.2/24 (Primary, broadcast 1.0.0.255, scope univ) tap2 up (index=23) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 2.0.0.2/24 (Primary, broadcast 2.0.0.255, scope univ) bird> show ospf state ospf1 area 0.0.0.0 router 1.0.0.2 network 1.0.0.0/24 metric 10 router 3.0.0.1 network 1.0.0.0/24 metric 1 external 0.0.0.0/0 metric2 1 tag 00000001 network 1.0.0.0/24 dr 3.0.0.1 router 3.0.0.1 router 1.0.0.2 And the cisco: 1.0.0.0/24 is subnetted, 1 subnets C 1.0.0.0 is directly connected, FastEthernet0/0 3.0.0.0/32 is subnetted, 1 subnets C 3.0.0.1 is directly connected, Loopback0 O E2 192.0.2.0/24 [110/10000] via 1.0.0.2, 00:07:57, FastEthernet0/0 S* 0.0.0.0/0 is directly connected, Loopback0 crazy? thx again 2009/10/3 Ondrej Zajicek <santiago@crfreenet.org>:
On Sat, Oct 03, 2009 at 07:39:55PM +0200, Csaba Szép wrote:
Hi All!
Hello
First, the HELLO packet ignored with "Bad OSPF hello packet from 1.0.0.1 received: options mismatch (0x12)." if i use the cisco default ospf configuration.
With "ip ospf lls disable" option everything is ok.
This is probably inappropriate options handling in BIRD, we will fix it.
Second, i advertise some alias IP from the pc to the cisco router, but if i remove the alias address from the interface some OSPF routes still present in the cisco router.
So i suppose the problem is just the route 192.0.2.0/24 ? I am not sure where it comes from. Could you send me output of command 'show interfaces' and 'show ospf state' on BIRD?
-- Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkrHmYsACgkQw1GB2RHercPcRwCdEKZ5qvQMPsv9AfkEaK92hMmE E/sAn0NC0cYKnJPpod7tggz0v0NrrAMp =n3gv -----END PGP SIGNATURE-----
On Sat, Oct 03, 2009 at 10:14:26PM +0200, Csaba Szép wrote:
And the cisco:
1.0.0.0/24 is subnetted, 1 subnets C 1.0.0.0 is directly connected, FastEthernet0/0 3.0.0.0/32 is subnetted, 1 subnets C 3.0.0.1 is directly connected, Loopback0 O E2 192.0.2.0/24 [110/10000] via 1.0.0.2, 00:07:57, FastEthernet0/0 S* 0.0.0.0/0 is directly connected, Loopback0
crazy?
Yes. It seems that there might be two problems. One in such strange route appearance and second in LSA db synchronization. Could you enable 'debug routes' for all protocols and send me log with timestamps? What would happen if you change filter from: if net ~ 192.0.2.0/24 then accept; to if net ~ 192.0.2.0/26 then accept; ? -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
Ok. I restart bird and cisco. Everything is in base state. bird> show interfaces lo up (index=1) MultiAccess AdminUp LinkUp Loopback Ignored MTU=16436 127.0.0.1/8 (Primary, broadcast 127.255.255.255, scope host) eth0 up (index=2) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 10.1.16.196/20 (Primary, broadcast 10.1.31.255, scope site) vmnet1 up (index=3) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.253.1/24 (Primary, broadcast 192.168.253.255, scope site) vmnet2 up (index=4) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.252.1/24 (Primary, broadcast 192.168.252.255, scope site) vmnet8 up (index=5) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.254.1/24 (Primary, broadcast 192.168.254.255, scope site) tap1 up (index=6) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 1.0.0.2/24 (Primary, broadcast 1.0.0.255, scope univ) bird> show ospf state area 0.0.0.0 router 1.0.0.2 network 1.0.0.0/24 metric 10 router 3.0.0.1 network 1.0.0.0/24 metric 1 external 0.0.0.0/0 metric2 1 tag 00000001 network 1.0.0.0/24 dr 3.0.0.1 router 3.0.0.1 router 1.0.0.2 Router#sh ip ospf database OSPF Router with ID (3.0.0.1) (Process ID 1) Router Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# Checksum Link count 1.0.0.2 1.0.0.2 180 0x80000002 0x0070CD 1 3.0.0.1 3.0.0.1 183 0x80000009 0x00B963 1 Net Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# Checksum 1.0.0.1 3.0.0.1 183 0x80000001 0x00AD7F Type-5 AS External Link States Link ID ADV Router Age Seq# Checksum Tag 0.0.0.0 3.0.0.1 1014 0x80000007 0x000E9A 1 So bring in tap1:0 and tap1:1 ifconfig tap1:0 192.0.2.1 netmask 255.255.255.255 ifconfig tap1:1 192.0.2.2 netmask 255.255.255.255 Everything is ok. bird> show interfaces lo up (index=1) MultiAccess AdminUp LinkUp Loopback Ignored MTU=16436 127.0.0.1/8 (Primary, broadcast 127.255.255.255, scope host) eth0 up (index=2) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 10.1.16.196/20 (Primary, broadcast 10.1.31.255, scope site) vmnet1 up (index=3) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.253.1/24 (Primary, broadcast 192.168.253.255, scope site) vmnet2 up (index=4) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.252.1/24 (Primary, broadcast 192.168.252.255, scope site) vmnet8 up (index=5) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.254.1/24 (Primary, broadcast 192.168.254.255, scope site) tap1 up (index=6) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 1.0.0.2/24 (Primary, broadcast 1.0.0.255, scope univ) 192.0.2.1/32 (Unselected, broadcast 192.0.2.1, opposite 192.0.2.1, scope univ, unnumbered) 192.0.2.2/32 (Unselected, broadcast 192.0.2.2, opposite 192.0.2.2, scope univ, unnumbered) tap2 DOWN (index=7) MultiAccess Broadcast Multicast AdminUp LinkDown MTU=1500 2.0.0.2/24 (Primary, broadcast 2.0.0.255, scope univ) bird> show ospf state area 0.0.0.0 router 1.0.0.2 network 1.0.0.0/24 metric 10 external 192.0.2.1/32 metric2 10000 external 192.0.2.2/32 metric2 10000 router 3.0.0.1 network 1.0.0.0/24 metric 1 external 0.0.0.0/0 metric2 1 tag 00000001 network 1.0.0.0/24 dr 3.0.0.1 router 3.0.0.1 router 1.0.0.2 Router#sh ip ospf database OSPF Router with ID (3.0.0.1) (Process ID 1) Router Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# Checksum Link count 1.0.0.2 1.0.0.2 82 0x80000005 0x0070C8 1 3.0.0.1 3.0.0.1 373 0x80000009 0x00B963 1 Net Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# Checksum 1.0.0.1 3.0.0.1 373 0x80000001 0x00AD7F Type-5 AS External Link States Link ID ADV Router Age Seq# Checksum Tag 0.0.0.0 3.0.0.1 1203 0x80000007 0x000E9A 1 192.0.2.1 1.0.0.2 93 0x80000001 0x0003D3 0 192.0.2.2 1.0.0.2 88 0x80000001 0x00F8DC 0 Bring down alias adresses ifconfig tap1:1 down ifconfig tap1:1 down Everything is ok. OSPF routes are gone!!! But after that second probe. Here is the sequence that i typing: sudo ifconfig tap1:1 192.0.2.2 netmask 255.255.255.255 sudo ifconfig tap1:0 192.0.2.2 netmask 255.255.255.255 < mistype!!!!!!!! Probably here is the source of problem! sudo ifconfig tap1:0 192.0.2.1 netmask 255.255.255.255 And after: bird> show interfaces lo up (index=1) MultiAccess AdminUp LinkUp Loopback Ignored MTU=16436 127.0.0.1/8 (Primary, broadcast 127.255.255.255, scope host) eth0 up (index=2) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 10.1.16.196/20 (Primary, broadcast 10.1.31.255, scope site) vmnet1 up (index=3) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.253.1/24 (Primary, broadcast 192.168.253.255, scope site) vmnet2 up (index=4) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.252.1/24 (Primary, broadcast 192.168.252.255, scope site) vmnet8 up (index=5) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.254.1/24 (Primary, broadcast 192.168.254.255, scope site) tap1 up (index=6) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 1.0.0.2/24 (Primary, broadcast 1.0.0.255, scope univ) 192.0.2.2/32 (Unselected, broadcast 192.0.2.2, opposite 192.0.2.2, scope univ, unnumbered) 192.0.2.1/32 (Unselected, broadcast 192.0.2.1, opposite 192.0.2.1, scope univ, unnumbered) tap2 DOWN (index=7) MultiAccess Broadcast Multicast AdminUp LinkDown MTU=1500 2.0.0.2/24 (Primary, broadcast 2.0.0.255, scope univ) bird> show ospf state area 0.0.0.0 router 1.0.0.2 network 1.0.0.0/24 metric 10 external 192.0.2.1/32 metric2 10000 external 192.0.2.2/32 metric2 10000 router 3.0.0.1 network 1.0.0.0/24 metric 1 external 0.0.0.0/0 metric2 1 tag 00000001 network 1.0.0.0/24 dr 3.0.0.1 router 3.0.0.1 router 1.0.0.2 And in cisco the bad ospf come up: Router#sh ip ospf database OSPF Router with ID (3.0.0.1) (Process ID 1) Router Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# Checksum Link count 1.0.0.2 1.0.0.2 152 0x80000009 0x0068CC 1 3.0.0.1 3.0.0.1 728 0x80000009 0x00B963 1 Net Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# Checksum 1.0.0.1 3.0.0.1 728 0x80000001 0x00AD7F Type-5 AS External Link States Link ID ADV Router Age Seq# Checksum Tag 0.0.0.0 3.0.0.1 1559 0x80000007 0x000E9A 1 192.0.2.0 1.0.0.2 158 0x80000001 0x000DCA 0 192.0.2.1 1.0.0.2 158 0x80000001 0x0003D3 0 192.0.2.2 1.0.0.2 178 0x80000001 0x00F8DC 0 and after i type this: ifconfig tap1:0 down ifconfig tap1:1 down bird> show interfaces lo up (index=1) MultiAccess AdminUp LinkUp Loopback Ignored MTU=16436 127.0.0.1/8 (Primary, broadcast 127.255.255.255, scope host) eth0 up (index=2) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 10.1.16.196/20 (Primary, broadcast 10.1.31.255, scope site) vmnet1 up (index=3) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.253.1/24 (Primary, broadcast 192.168.253.255, scope site) vmnet2 up (index=4) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.252.1/24 (Primary, broadcast 192.168.252.255, scope site) vmnet8 up (index=5) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.254.1/24 (Primary, broadcast 192.168.254.255, scope site) tap1 up (index=6) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 1.0.0.2/24 (Primary, broadcast 1.0.0.255, scope univ) tap2 DOWN (index=7) MultiAccess Broadcast Multicast AdminUp LinkDown MTU=1500 2.0.0.2/24 (Primary, broadcast 2.0.0.255, scope univ) bird> show ospf state area 0.0.0.0 router 1.0.0.2 network 1.0.0.0/24 metric 10 router 3.0.0.1 network 1.0.0.0/24 metric 1 external 0.0.0.0/0 metric2 1 tag 00000001 network 1.0.0.0/24 dr 3.0.0.1 router 3.0.0.1 router 1.0.0.2 THE BAD routes are still present on the cisco (i wait minutes): Router#sh ip ospf database OSPF Router with ID (3.0.0.1) (Process ID 1) Router Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# Checksum Link count 1.0.0.2 1.0.0.2 278 0x80000009 0x0068CC 1 3.0.0.1 3.0.0.1 854 0x80000009 0x00B963 1 Net Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# Checksum 1.0.0.1 3.0.0.1 854 0x80000001 0x00AD7F Type-5 AS External Link States Link ID ADV Router Age Seq# Checksum Tag 0.0.0.0 3.0.0.1 1685 0x80000007 0x000E9A 1 192.0.2.0 1.0.0.2 284 0x80000001 0x000DCA 0 Router#sh ip route 1.0.0.0/24 is subnetted, 1 subnets C 1.0.0.0 is directly connected, FastEthernet0/0 3.0.0.0/32 is subnetted, 1 subnets C 3.0.0.1 is directly connected, Loopback0 O E2 192.0.2.0/24 [110/10000] via 1.0.0.2, 00:05:10, FastEthernet0/0 S* 0.0.0.0/0 is directly connected, Loopback0 all protocols route debug output from bird starting: bird: Guessed router ID 1.0.0.2 according to interface tap1 bird: direct1 > added [best] 127.0.0.0/8 dev lo bird: direct1 > added [best] 10.1.16.0/20 dev eth0 bird: direct1 > added [best] 192.168.253.0/24 dev vmnet1 bird: direct1 > added [best] 192.168.252.0/24 dev vmnet2 bird: direct1 > added [best] 192.168.254.0/24 dev vmnet8 bird: direct1 > added [best] 1.0.0.0/24 dev tap1 bird: ospf1 < filtered out 1.0.0.0/24 dev tap1 bird: ospf1 < filtered out 10.1.16.0/20 dev eth0 bird: ospf1 < out of scope 127.0.0.0/8 dev lo bird: ospf1 < filtered out 192.168.252.0/24 dev vmnet2 bird: ospf1 < filtered out 192.168.253.0/24 dev vmnet1 bird: ospf1 < filtered out 192.168.254.0/24 dev vmnet8 bird: kernel1 > added [best] 0.0.0.0/0 via 10.1.16.1 on eth0 bird: ospf1 < filtered out 0.0.0.0/0 via 10.1.16.1 on eth0 bird: ospf1 > added 1.0.0.0/24 dev tap1 bird: ospf1 > added [best] 0.0.0.0/0 via 1.0.0.1 on tap1 bird: ospf1 < rejected by protocol 0.0.0.0/0 via 1.0.0.1 on tap1 bird: ospf1 > ignored 1.0.0.0/24 dev tap1 bird: direct1 > added [best] 192.0.2.0/24 dev tap1 bird: ospf1 < added 192.0.2.0/24 dev tap1 bird: ospf1 < removed 192.0.2.0/24 dev tap1 bird: direct1 > added [best] 192.0.2.1/32 dev tap1 bird: ospf1 < added 192.0.2.1/32 dev tap1 bird: direct1 > added [best] 192.0.2.0/24 dev tap1 bird: ospf1 < added 192.0.2.0/24 dev tap1 bird: ospf1 < removed 192.0.2.0/24 dev tap1 bird: direct1 > added [best] 192.0.2.2/32 dev tap1 bird: ospf1 < added 192.0.2.2/32 dev tap1 bird: ospf1 < removed 192.0.2.2/32 dev tap1 bird: ospf1 < removed 192.0.2.1/32 dev tap1 bird: direct1 > added [best] 192.0.2.0/24 dev tap1 bird: ospf1 < added 192.0.2.0/24 dev tap1 bird: ospf1 < removed 192.0.2.0/24 dev tap1 bird: direct1 > added [best] 192.0.2.2/32 dev tap1 bird: ospf1 < added 192.0.2.2/32 dev tap1 bird: ospf1 < removed 192.0.2.2/32 dev tap1 bird: direct1 > added [best] 192.0.2.0/24 dev tap1 bird: ospf1 < added 192.0.2.0/24 dev tap1 bird: ospf1 < removed 192.0.2.0/24 dev tap1 bird: direct1 > added [best] 192.0.2.2/32 dev tap1 bird: ospf1 < added 192.0.2.2/32 dev tap1 bird: direct1 > added [best] 192.0.2.0/24 dev tap1 bird: ospf1 < added 192.0.2.0/24 dev tap1 bird: ospf1 < removed 192.0.2.0/24 dev tap1 bird: direct1 > added [best] 192.0.2.1/32 dev tap1 bird: ospf1 < added 192.0.2.1/32 dev tap1 bird: ospf1 < removed 192.0.2.1/32 dev tap1 bird: ospf1 < removed 192.0.2.2/32 dev tap1 Thx csszep
On Mon, Oct 05, 2009 at 01:45:44PM +0200, Csaba Szép wrote:
But after that second probe. Here is the sequence that i typing:
sudo ifconfig tap1:1 192.0.2.2 netmask 255.255.255.255 sudo ifconfig tap1:0 192.0.2.2 netmask 255.255.255.255 < mistype!!!!!!!! Probably here is the source of problem! sudo ifconfig tap1:0 192.0.2.1 netmask 255.255.255.255
Yes, now i can replicate the problem. Thanks. I will look at it. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
One more info from cisco (without alias adressess and no other neighbor): Router#sh ip ospf database OSPF Router with ID (3.0.0.1) (Process ID 1) Router Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# Checksum Link count 1.0.0.2 1.0.0.2 1141 0x8000001F 0x003CE2 1 3.0.0.1 3.0.0.1 951 0x80000011 0x00A96B 1 Net Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# Checksum 1.0.0.1 3.0.0.1 951 0x80000007 0x00A185 Type-5 AS External Link States Link ID ADV Router Age Seq# Checksum Tag 0.0.0.0 3.0.0.1 691 0x80000009 0x000A9C 1 192.0.2.0 1.0.0.2 1145 0x80000001 0x000DCA 0 2009/10/3 Ondrej Zajicek <santiago@crfreenet.org>:
On Sat, Oct 03, 2009 at 07:39:55PM +0200, Csaba Szép wrote:
Hi All!
Hello
First, the HELLO packet ignored with "Bad OSPF hello packet from 1.0.0.1 received: options mismatch (0x12)." if i use the cisco default ospf configuration.
With "ip ospf lls disable" option everything is ok.
This is probably inappropriate options handling in BIRD, we will fix it.
Second, i advertise some alias IP from the pc to the cisco router, but if i remove the alias address from the interface some OSPF routes still present in the cisco router.
So i suppose the problem is just the route 192.0.2.0/24 ? I am not sure where it comes from. Could you send me output of command 'show interfaces' and 'show ospf state' on BIRD?
-- Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkrHmYsACgkQw1GB2RHercPcRwCdEKZ5qvQMPsv9AfkEaK92hMmE E/sAn0NC0cYKnJPpod7tggz0v0NrrAMp =n3gv -----END PGP SIGNATURE-----
participants (2)
-
Csaba Szép -
Ondrej Zajicek