display ospf sham-link

Function

The display ospf sham-link command displays information about sham links in an OSPF area.

Format

display ospf [ process-id ] sham-link [ area { area-id | area-id } ]

Parameters

Parameter Description Value
process-id

Specifies the ID of an OSPF process.

The value is an integer ranging from 1 to 4294967295.

area area-id

Specifies the ID of an OSPF area.

The value can be a decimal integer ranging from 0 to 4294967295 or in the format of an IP address.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
ospf read

Usage Guidelines

Usage Scenario

To check information about sham links in an OSPF area, run the display ospf sham-link command. The command output helps with sham link troubleshooting.

If neither the process ID nor the area ID is specified in the command, information about all sham links is displayed.

If a large amount of output information exists, you can specify begin, exclude, or include in the command to filter output information.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display information about all existing OSPF sham links.
<HUAWEI> display ospf sham-link
OSPF Process 100 with Router ID 1.1.1.1
 Sham Link:
 Area         NeighborId        Source-IP       Destination-IP   State  Cost
 0.0.0.1      1.1.1.1            3.3.3.3         5.5.5.5          P-2-P  10
# Display information about OSPF sham links in area 1.
<HUAWEI> display ospf sham-link area 1
OSPF Process 100 with Router ID 1.1.1.1 
  Sham-Link: 3.3.3.3 --> 5.5.5.5 
  Neighbor ID: 1.1.1.1,    State: Full,    GR status: Normal
  Area: 0.0.0.1
  Cost: 10 , State: P-2-P , Type: Sham
  Timers: Hello 10 , Dead 40 , Retransmit 5 , Transmit Delay 1
  Smart-discover: enable
Table 1 Description of the display ospf sham-link command output
Item Description
Sham Link

OSPF sham link information.

Area

OSPF area to which a sham link belongs.

NeighborId

Neighbor ID.

Source-IP

Source IP address of the sham link.

Destination-IP

Destination IP address of the sham link.

State

This field indicates the state of the interface over the sham link if no area ID is specified in the command. P-2-P indicates a P2P link.

This field indicates the state of the neighbor if an area ID is specified in the command.

  • Down: Initial state of a neighbor, which indicates that no packets are received.
  • Init: Hello packets are received from the neighbor.
  • 2-Way: A Hello packet is received from the neighbor, and the neighbor list in the Hello packet contains the local router ID, indicating that the two ends can interwork.
  • ExStart: First step in establishing the adjacency. The master and slave relationship and DD sequence number are negotiated.
  • Exchange: The two sides begin to implement LSDB synchronization using DD, LSR, and LSU packets.
  • Loading: LSDBs are being synchronized using LSR and LSU packets.
  • Full: The LSDBs have been synchronized. Both sides set up the adjacency and they are in the Full state.
Cost

Cost of the sham link.

Neighbor ID

Neighbor ID.

GR status

GR status.

Type

Link type.

Timers

Timer.

Smart-discover

Whether smart-discover is enabled. This field is displayed only if smart-discover is enabled.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >