Viewing OSPF interface information for a specific VLAN or IP address

Syntax:


show ip ospf interface [vlan vlan-id | ip-addr]

To display OSPF interface information for a specific VLAN or IP address, enter the show ip ospf interface ip-addr command at any CLI level.

Table 20: CLI display of OSPF interface information—VLAN or IP address

Field

Content

Type

Will always be BCAST for interfaces on this routing switch. Point-to-point or NBMA (frame relay or ATM) type interfaces are not supported on the switches.

Transit Delay

Configured transit delay for this interface.

Retrans Interval

Configured retransmit interval for this interface.

Hello Interval

Configured hello interval for this interface.

Rtr Dead Interval

Configured router dead interval for this interface.

Network Type

Set the network type for this interface, point-to-point or broadcast.

Designated Router

IP address of the router that has been elected DR on this interface.

Backup Desig. Rtr

IP address of the router that has been elected BDR on this interface.

Events

Number of times the interface state has changed.

Passive

Whether the interface sends LSAs to all other routers in the same Autonomous System (AS.)

Neighbors

Number of neighbors.

If you use show ip ospf interface vlan vlan-id , the output is the same as shown in the previous table, except for the IP address on the indicated VLAN.

Examples

show ip ospf interface ip-addr output

switch(ospf)# sho ip ospf int 10.10.50.1

 OSPF Interface Status for 10.3.1836

  IP Address     : 10.3.18.36          Status : enabled
  Area ID        : 10.3.16.0

  State : BDR                          Auth-type : none
  Cost  : 1                            Chain     :
  Type  : BCAST                        Priority  : 1

  Transit Delay     : 1                Retrans Interval  : 5
  Hello Interval    : 10               Rtr Dead Interval : 40
  Designated Router : 10.3.18.34       Events            : 3
  Backup Desig. Rtr : 10.3.18.36
  Backup Desig. Rtr : 10.3.18.36

show ip ospf interface ip-addr backbone output

switch# show ip ospf interface 10.2.1.2

 OSPF Interface Status for 10.2.1.2

  IP Address      : 10.2.1.2            Status  : enabled
  Area ID         : backbone

  State  : Point-to-point               Auth-type : none
  Cost   : 1                            Chain     :
  Type   : Point-to-point               Priority  : n/a

  Transit Delay     : 1                 Retrans Interval  : 5
  Hello Interval    : 10                Rtr Dead Interval : 40
  Designated Router : n/a               Events            : 0
  Backup Desig. Rtr : n/a               Passive           : no
  Neighbors         : 1

show ip ospf interface ip-addr neighbor output

switch# show ip ospf neighbor

 OSPF Neighbor Information

                                                         Rxmt         Helper
  Router ID       Pri IP Address      NbIfState State    QLen  Events Status
  --------------- --- --------------- --------- -------- ----- ------ ------
  1.1.1.1         n/a 10.2.1.1        n/a        FULL     0     6      None


show ip ospf neighbor detail

switch# show ip ospf neighbor detail

 OSPF Neighbor Information for neighbor 10.2.1.2

  IP Address : 10.2.1.2
  Router ID  : 2.2.2.2             State                    : FULL
  Interface  : vlan-1              Designated Router        : n/a
  Area       : backbone            Backup Designated Router : n/a
  Priority   : n/a                 Retransmit Queue Length  : 0
  Options    : 0x42                Neighbor Uptime          : 0h:0m:14s
  Events     : 7                   Dead Timer Expires       : 35 sec

Show ip ospf neighbor detail

switch# show ip ospf neighbor 10.2.1.2

 OSPF Neighbor Information for neighbor 10.2.1.2

 IP Address : 10.2.1.2
 Router ID  : 2.2.2.2                  Pri : n/a
 NbIfState : n/a                       State  : FULL
 Rxmt QLen : 0                         Events : 7
 Helper Status : None                  Helper Age : 0

show ospf interface configuration

                                  Admin             Authen          
  IP Address      Area ID         Status   Type     Type   Cost  Pri
  --------------- --------------- -------- -------- ------ ----- ---
  172.16.30.186   backbone        enabled  Pt-to-Pt none   100   n/a