show ospf neighbor

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

Description

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.

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       

# show ospfv3 neighbor        

Neighbor ID     Pri State            Up/Dead Time         Interface      InstanceID             
          BFD Session State   
=========================================================================================   
1.1.1.1         1   FULL    /BDR     00:03:40:45/00:00:38 HQ_10_0_4       0             
            Active       

# show ospfv3 neighbor detail        

Neighbor 1.1.1.1, Interface address fe80::201:30ff:fe10:3ae6       
    In the area 0.0.0.0 via interface HQ_10_0_4       
    Neighbor priority is 1,  State is FULL, 1338 events, 6 state changes       
    DR is 2.2.2.2 BDR is 1.1.1.1       
    Options is 0x13 (-|R|-|-|E|V6)       
    Neighbor is up for 00:03:42:17       
    Neighbor will be dead in 00:00:37       
    Retransmission queue length is 0       
    BFD Session State: Active        

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

Neighbor ID     Pri State            Up/Dead Time         Interface       InstanceID             
          BFD Session State   
=========================================================================================   
1.1.1.1         1   FULL    /BDR     00:20:37:17/00:00:39 HQ_10_0_4       0             
        Active   
3.3.3.3         1   FULL    /DR      00:20:37:17/00:00:39 HQ_10_0_4       0             
        Active   
4.4.4.4         1   2WAY    /DOTHER  00:20:37:17/00:00:39 HQ_10_0_4       0             
        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 Feature License Requirements document.