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.The actual command output varies according to the device. The command output here is only an example.
<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
<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
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.
|
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. |