ospf interoperability problems with cisco and other errors

Csaba Szép csszep at gmail.com
Mon Oct 5 13:45:44 CEST 2009


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



More information about the Bird-users mailing list