MERAprojects / ops-quagga

GNU General Public License v2.0
0 stars 0 forks source link

OSPF command `show ip ospf neighbor` incorrectly displays role of routers in area #26

Closed xivamar closed 8 years ago

xivamar commented 8 years ago

Problem Description:

The command show ip ospf neighbor incorrectly displays role of routers in area or may be algorithm of choice DR and BDR works incorrectly

OpenSwitch version:

OpenSwitch 1.0.0 (Build: appliance-ops-1.0.0-release+2016090200)

Test Topology:

screenshot

Steps to reproduce the problem:

  1. Configure DUTs as in attached file.
  2. Check adjacency via show ip ospf neighbor on DUT2. - we may see 3 case : 1)

    switch# show ip ospf neighbor 
      Neighbor ID Pri State           Dead Time Address         Interface            RXmtL RqstL DBsmL
    ----------------------------------------------------------------------------------------------------
    192.168.2.1       1 Full/Backup       37.526s 172.16.1.2      eth1:172.16.1.1/24       0     0     0
    192.168.5.1       1 Full/Backup       37.478s 172.16.2.5      eth2:172.16.2.1/24       0     0     0
    192.168.3.1       1 Full/DR           36.705s 172.16.1.3      eth1:172.16.1.1/24       0     0     0
    switch# 

    2)

    switch# show ip ospf neighbor 
       Neighbor ID Pri State           Dead Time Address         Interface            RXmtL RqstL DBsmL
    ----------------------------------------------------------------------------------------------------
    192.168.2.1       1 Full/Backup       39.177s 172.16.1.2      eth1:172.16.1.1/24       0     0     0
    192.168.3.1       1 Full/DR           30.375s 172.16.1.3      eth1:172.16.1.1/24       0     0     0
    192.168.5.1       1 Full/DR           34.470s 172.16.2.5      eth2:172.16.2.1/24       0     0     0
    switch# 

    3)

    switch# show ip ospf neighbor 
      Neighbor ID Pri State           Dead Time Address         Interface            RXmtL RqstL DBsmL
    ----------------------------------------------------------------------------------------------------
    192.168.5.1       1 Full/DR           38.262s 172.16.3.5      eth3:172.16.3.3/24       0     0     0
    192.168.2.1       1 Full/Backup       38.691s 172.16.1.2      eth1:172.16.1.3/24       0     0     0
    192.168.1.1       1 Full/DROther      36.508s 172.16.1.1      eth1:172.16.1.3/24       0     0     0
    switch#

1)-2) - incorrectly. In area should be only one DR and Backup, all other routers should be DROther.

OSPF_2_config.txt

xivamar commented 8 years ago

It is correct behavior. According rfc2328: Every broadcast and NBMA network has a Designated Router. DR and BDR are chosen for network (not area).