show ospf neighbor

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

Description

Displays information about an OSPF (Open Shortest Path First) 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 (Virtual LAN) name.
detail Specifies detail information.

Default

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

Usage Guidelines

Not applicable.

Example

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   
=========================================================================================   
160.26.26.2      10 FULL      /BDR     10:16:42:57/00:00:00:00  160.26.26.2   CHI_160_26_26             
          Disabled   
10.0.2.2         10 FULL      /BDR     07:17:55:29/00:00:00:09  10.0.2.2      HQ_10_0_2             
          Active    
10.0.3.2         10 FULL      /BDR     07:17:54:56/00:00:00:03  10.0.3.2      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   
=========================================================================================   
10.0.3.2          1 FULL      /BDR     00:11:13:06/00:00:00:04  12.0.2.2        v2             
            Active       
Total number of neighbors: 1 (All neighbors in Full state)

# show ospf neighbor detail       

Neighbor 10.0.3.2, interface address 12.0.2.2       
    In the area 0.0.0.0 via interface v2       
    Neighbor priority is 1,  State is INIT,38 state changes       
    DR is 12.0.2.1 BDR is 12.0.2.2       
    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       

    

History

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 Core license as described in the ExtremeXOS 22.7 Feature License Requirements document.