
302
area
area-id
: Specifies an OSPF area by the area ID, which can be an integer ranging from 0 to
4,294,967,295 or in the format of an IPv4 address.
|
: Filters command output by specifying a regular expression. For more information about regular
expressions, see the
Fundamentals Configuration Guide
.
begin
: Displays the first line that matches the specified regular expression and all lines that follow.
exclude
: Displays all lines that do not match the specified regular expression.
include
: Displays all lines that match the specified regular expression.
regular-expression
: Specifies a regular expression, which is a case-sensitive string of 1 to 256 characters.
Examples
# Display information about all OSPF sham links.
<Sysname> display ospf sham-link
OSPF Process 100 with Router ID 100.1.1.2
Sham Link:
Area NeighborId Source-IP Destination-IP State Cost
0.0.0.1 120.1.1.2 3.3.3.3 5.5.5.5 P-2-P 10
Table 131
Command output
Field Description
Area
OSPF area to which the sham link belongs
NeighborId
Router ID of the sham link neighbor
Source-IP
Source IP address of the sham link
Destination-IP
Destination IP address of the sham link
State
Status of the sham link interface
Cost
Cost of the sham link
# Display information about OSPF sham links in area 1.
<Sysname> display ospf sham-link area 1
OSPF Process 100 with Router ID 100.1.1.2
Sham-Link: 3.3.3.3 --> 5.5.5.5
Neighbor ID: 120.1.1.2 State: Full
Area: 0.0.0.1
Cost: 10 State: P-2-P Type: Sham
Timers: Hello 10, Dead 40, Retransmit 5, Transmit Delay 1
Table 132
Command output
Field Description
Sham-Link
Sham link expressed in the format of source IP
address to destination IP address
Neighbor ID
Router ID of the sham link neighbor