OSPF HELLO wrong mask

Slawa Olhovchenkov slw at zxy.spb.ru
Wed May 15 18:33:08 CEST 2013


On Wed, May 15, 2013 at 06:57:11PM +0200, Ondrej Zajicek wrote:

> On Wed, May 15, 2013 at 08:06:07PM +0400, Slawa Olhovchenkov wrote:
> > BIRD 1.3.9 running on FreeBSD 9.1 with next interfaces (not all showed):
> > 
> > em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
> >         options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
> >         ether 68:05:ca:0e:d3:e1
> >         inet 10.254.0.2 netmask 0xffff0000 broadcast 10.254.255.255
> ...
> > Bird send HELLO packet with wrong mask (and Designated Router also):
> > 
> > tcpdump: listening on em0, link-type EN10MB (Ethernet), capture size 65535 bytes
> > 20:04:06.186362 IP (tos 0xc0, ttl 1, id 29198, offset 0, flags [none], proto OSPF (89), length 64)
> >     10.254.0.2 > 224.0.0.5: OSPFv2, Hello, length 44
> >         Router-ID 185.17.0.1, Backbone Area, Authentication Type: none (0)
> >         Options [External]
> >           Hello Timer 10s, Dead Timer 40s, Mask 255.255.255.240, Priority 1
> >           Designated Router 10.90.90.1
> 
> Interesting
> What 'show interfaces' and 'show ospf interface' return?
> And also 'show status' for router id.

ifconfig em0 (full)
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
        ether 68:05:ca:0e:d3:e1
        inet 10.254.0.2 netmask 0xffff0000 broadcast 10.254.255.255
        inet6 fe80::6a05:caff:fe0e:d3e1%em0 prefixlen 64 scopeid 0x1 
        inet 185.17.0.1 netmask 0xffffff00 broadcast 185.17.0.255
        inet 185.17.1.1 netmask 0xffffff00 broadcast 185.17.1.255
        inet6 2a03:e2c0:0:1::1 prefixlen 64 
        inet 185.17.2.1 netmask 0xffffff00 broadcast 185.17.2.255
        inet 185.17.3.1 netmask 0xffffff00 broadcast 185.17.3.255
        inet 10.90.90.1 netmask 0xfffffff0 broadcast 10.90.90.15
        inet 193.93.192.1 netmask 0xfffffc00 broadcast 193.93.195.255
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active

BIRD 1.3.9
Router ID is 185.17.0.1
Current server time is 15-05-2013 20:31:09
Last reboot on 16-03-2013 15:38:06
Last reconfiguration on 15-05-2013 19:59:30
Daemon is up and running


em0 up (index=1)
        MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500
        10.90.90.1/28 (Primary, scope site)
        10.254.0.2/16 (Unselected, scope site)
        185.17.0.1/24 (Unselected, scope univ)
        185.17.1.1/24 (Unselected, scope univ)
        185.17.2.1/24 (Unselected, scope univ)
        185.17.3.1/24 (Unselected, scope univ)
        193.93.192.1/22 (Unselected, scope univ)
usbus0 DOWN (index=2)
        MultiAccess AdminUp LinkUp MTU=0
re0 DOWN (index=3)
        MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500
usbus1 DOWN (index=4)
        MultiAccess AdminUp LinkUp MTU=0
usbus2 DOWN (index=5)
        MultiAccess AdminUp LinkUp MTU=0
usbus3 DOWN (index=6)
        MultiAccess AdminUp LinkUp MTU=0
usbus4 DOWN (index=7)
        MultiAccess AdminUp LinkUp MTU=0
usbus5 DOWN (index=8)
        MultiAccess AdminUp LinkUp MTU=0
usbus6 DOWN (index=9)
        MultiAccess AdminUp LinkUp MTU=0
usbus7 DOWN (index=10)
        MultiAccess AdminUp LinkUp MTU=0
ipfw0 DOWN (index=11)
        MultiAccess AdminUp LinkUp MTU=65536
lo0 up (index=12)
        MultiAccess AdminUp LinkUp Loopback Ignored MTU=16384
        127.0.0.1/8 (Primary, scope host)
vlan1 up (index=14)
        MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500
        10.90.90.91/29 (Primary, scope site)
vlan3 up (index=15)
        MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500
        217.150.63.41/30 (Primary, opposite 217.150.63.42, scope univ)
vlan4 up (index=13)
        MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500
        46.231.213.162/30 (Primary, opposite 46.231.213.161, scope univ)

ospf1:
Interface em0 (10.90.90.0/28)
        Type: broadcast
        Area: 0.0.0.0 (0)
        State: dr
        Priority: 1
        Cost: 10
        Hello timer: 10
        Wait timer: 40
        Dead timer: 40
        Retransmit timer: 5
        Designed router (ID): 185.17.0.1
        Designed router (IP): 10.90.90.1
        Backup designed router (ID): 0.0.0.0
        Backup designed router (IP): 0.0.0.0
Interface em0 (10.254.0.0/16)
        Type: broadcast
        Area: 0.0.0.0 (0)
        State: waiting (stub)
        Priority: 1
        Cost: 10
        Hello timer: 10
        Wait timer: 40
        Dead timer: 40
        Retransmit timer: 5
        Designed router (ID): 0.0.0.0
        Designed router (IP): 0.0.0.0
        Backup designed router (ID): 0.0.0.0
        Backup designed router (IP): 0.0.0.0
Interface em0 (185.17.0.0/24)
        Type: broadcast
        Area: 0.0.0.0 (0)
        State: waiting (stub)
        Priority: 1
        Cost: 10
        Hello timer: 10
        Wait timer: 40
        Dead timer: 40
        Retransmit timer: 5
        Designed router (ID): 0.0.0.0
        Designed router (IP): 0.0.0.0
        Backup designed router (ID): 0.0.0.0
        Backup designed router (IP): 0.0.0.0
Interface em0 (185.17.1.0/24)
        Type: broadcast
        Area: 0.0.0.0 (0)
        State: waiting (stub)
        Priority: 1
        Cost: 10
        Hello timer: 10
        Wait timer: 40
        Dead timer: 40
        Retransmit timer: 5
        Designed router (ID): 0.0.0.0
        Designed router (IP): 0.0.0.0
        Backup designed router (ID): 0.0.0.0
        Backup designed router (IP): 0.0.0.0
Interface em0 (185.17.2.0/24)
        Type: broadcast
        Area: 0.0.0.0 (0)
        State: waiting (stub)
        Priority: 1
        Cost: 10
        Hello timer: 10
        Wait timer: 40
        Dead timer: 40
        Retransmit timer: 5
        Designed router (ID): 0.0.0.0
        Designed router (IP): 0.0.0.0
        Backup designed router (ID): 0.0.0.0
        Backup designed router (IP): 0.0.0.0
Interface em0 (185.17.3.0/24)
        Type: broadcast
        Area: 0.0.0.0 (0)
        State: waiting (stub)
        Priority: 1
        Cost: 10
        Hello timer: 10
        Wait timer: 40
        Dead timer: 40
        Retransmit timer: 5
        Designed router (ID): 0.0.0.0
        Designed router (IP): 0.0.0.0
        Backup designed router (ID): 0.0.0.0
        Backup designed router (IP): 0.0.0.0
Interface em0 (193.93.192.0/22)
        Type: broadcast
        Area: 0.0.0.0 (0)
        State: waiting (stub)
        Priority: 1
        Cost: 10
        Hello timer: 10
        Wait timer: 40
        Dead timer: 40
        Retransmit timer: 5
        Designed router (ID): 0.0.0.0
        Designed router (IP): 0.0.0.0
        Backup designed router (ID): 0.0.0.0
        Backup designed router (IP): 0.0.0.0




More information about the Bird-users mailing list