show ospf neighbor

show ospf neighbor {routerid [ip-address {ip-mask} | ipNetmask]} {vlan vlan-name} {detail}


Displays information about an OSPF neighbor.

Syntax Description

ip-address Specifies an IP address.
ip-mask Specifies a subnet mask.
ipNetmask Specifies IP address / Netmask.
vlan-name Specifies a VLAN name.
detail Specifies detail information.


If no argument is specified, all OSPF neighbors are displayed.

Usage Guidelines

Not applicable.


The following command displays information about the OSPF neighbors on the VLAN accounting:

show ospf neighbor vlan accounting

The following command output displays BFD protection status of all OSPF neighbors:

# show ospf neighbor        

Neighbor ID     Pri State              Up/Dead Time             Address      Interface             
          BFD Session State   
=========================================================================================      10 FULL      /BDR     10:16:42:57/00:00:00:00   CHI_160_26_26             
          Disabled         10 FULL      /BDR     07:17:55:29/00:00:00:09      HQ_10_0_2             
          Active         10 FULL      /BDR     07:17:54:56/00:00:00:03      HQ_10_0_3             
          Error (Session Limit Exceeded)       

Total number of neighbors: 3 (All neighbors in Full state)       

# show ospf neighbor {vlan} <vlan-name>       

Neighbor ID     Pri State              Up/Dead Time             Address        Interface             
          BFD Session State   
=========================================================================================          1 FULL      /BDR     00:11:13:06/00:00:00:04        v2             
Total number of neighbors: 1 (All neighbors in Full state)

# show ospf neighbor detail       

Neighbor, interface address       
    In the area via interface v2       
    Neighbor priority is 1,  State is INIT,38 state changes       
    DR is BDR is       
    Options is 0x42       
    Neighbor is up for 00:11:04:05       
    Time since last Hello 00:00:00:00       
    Retransmission queue length is 0       
    BFD Session State: None       



This command was first available in ExtremeXOS 10.1.

BFD output was added in ExtremeXOS 15.3.2.

Platform Availability

This command is available on platforms with an Advanced Edge or Base license, or higher, as described in the ExtremeXOS 32.2 Feature License Requirements document.