- Table of Contents
-
- 05-Network Connectivity Command Reference
- 00-Preface
- 01-MAC address table commands
- 02-Ethernet link aggregation commands
- 03-VLAN commands
- 04-Spanning tree commands
- 05-LLDP commands
- 06-Layer 2 forwarding commands
- 07-PPP commands
- 08-L2TP commands
- 09-ARP commands
- 10-IP addressing commands
- 11-DHCP commands
- 12-DHCPv6 commands
- 13-DNS commands
- 14-NAT commands
- 15-IP performance optimization commands
- 16-IPv6 basics commands
- 17-Tunneling commands
- 18-GRE commands
- 19-ADVPN commands
- 20-Basic IP routing commands
- 21-IP forwarding basics commands
- 22-Static routing commands
- 23-IPv6 static routing commands
- 24-RIP commands
- 25-Policy-based routing commands
- 26-IPv6 policy-based routing commands
- 27-OSPF commands
- 28-RIPng commands
- 29-BGP commands
- 30-IGMP snooping commands
- 31-MLD snooping commands
- Related Documents
-
Title | Size | Download |
---|---|---|
27-OSPF commands | 585.83 KB |
OSPF commands
area
Use area to create an OSPF area and enter OSPF area view.
Use undo area to remove an OSPF area.
Syntax
area area-id
undo area area-id
Default
No OSPF areas exist.
Views
OSPF view
Predefined user roles
network-admin
Parameters
area-id: Specifies an area by its ID, an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format.
Examples
# Create Area 0 and enter Area 0 view.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 0
[Sysname-ospf-100-area-0.0.0.0]
description
Use description to configure a description for an OSPF process or area.
Use undo description to restore the default.
Syntax
description text
undo description
Default
No description is configured for an OSPF process or area.
Views
OSPF view
OSPF area view
Predefined user roles
network-admin
Parameters
text: Specifies a description, a case-sensitive string of 1 to 80 characters.
Usage guidelines
The description specified by this command is used to identify an OSPF process or area.
Examples
# Describe OSPF process 100 as abc.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] description abc
# Describe OSPF Area 0 as bone area.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 0
[Sysname-ospf-100-area-0.0.0.0] description bone area
display ospf
Use display ospf to display OSPF process information.
Syntax
display ospf [ process-id ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays information about all OSPF processes.
verbose: Displays detailed OSPF process information. If you do not specify this keyword, the command displays brief OSPF process information.
Examples
# Display detailed OSPF process information.
<Sysname> display ospf verbose
OSPF Process 1 with Router ID 192.168.1.2
OSPF Protocol Information
RouterID: 192.168.1.2 Router type: NSSA
Route tag: 0
Multi-VPN-Instance is not enabled
Ext-community type: domain ID 0x105, route type 0x8000, router ID 0x8001
Domain ID: 0.0.0.0:23
Opaque capable
Isolation: Disabled
Originating router-LSAs with maximum metric
Condition: On startup for 600 seconds, State: Inactive
Advertise stub links with maximum metric in router-LSAs
Advertise summary-LSAs with metric 16711680
Advertise external-LSAs with metric 16711680
ECMP group is enabled
ISPF is enabled
SPF-schedule-interval: 5 50 200
LSA generation interval: 5
LSA arrival interval: 1000
Transmit pacing: Interval: 20 Count: 3
Default ASE parameters: Metric: 1 Tag: 1 Type: 2
Route preference: 10
ASE route preference: 150
SPF computation count: 22
RFC 1583 compatible
Fast-reroute: Remote-lfa Enabled
Maximum-cost: 4294967295
Node-Protecing Preference: 40
Lowest-cost Preference: 20
Microloop-avoidance: Enable
Microloop-avoidance RIB-update-delay: 5000 ms
Graceful restart interval: 120
SNMP trap rate limit interval: 2 Count: 300
This process is currently bound to MIB
Area count: 1 NSSA area count: 1
Normal areas with up interfaces: 0
NSSA areas with up interfaces: 1
Up interfaces: 1
ExChange/Loading neighbors: 0
Description: test1
Full neighbors:3
Calculation trigger type: Full
Current calculation type: SPF calculation
Current calculation phase: Calculation area topology
Process reset state: N/A
Current reset type: N/A
Next reset type: N/A
Reset prepare message replied: -/-/-/-
Reset process message replied: -/-/-/-
Reset phase of module:
M-N/A, P-N/A, L-N/A, C-N/A, R-N/A
MPLS segment routing: Disabled
Segment routing adjacency : Disabled
Effective SRGB : 16000 24000
Segment routing global block: 16000 24000
Segment routing local block : 15000 15999
Segment routing tunnel count: 0
Area: 0.0.0.1 (MPLS TE not enabled)
Authtype: None Area flag: NSSA
7/5 translator state: Disabled
7/5 translate stability timer interval: 0
SPF scheduled count: 5
ExChange/Loading neighbors: 0
Description: area1
Up interfaces: 1
Interface: 192.168.1.2 (Vlan-interface10)
Cost: 1 State: DR Type: Broadcast MTU: 1500
Priority: 1
Designated router: 192.168.1.2
Backup designated router: 192.168.1.1
Timers: Hello 10 , Dead 40 , Poll 40 , Retransmit 5 , Transmit Delay 1
FRR backup: Enabled
FRR remote-LFA: Enabled
FRR TI-LFA: Enabled
Microloop-avoidance: Enabled
Microloop-avoidance RIB-update-delay: 20000 ms
Enabled by network configuration
Prefix-SID type: Index
Value: 101
Process ID: ospf 1
Prefix-SID validity: Invalid
Table 1 Command output
Field |
Description |
OSPF Process 1 with Router ID 192.168.1.2 |
OSPF process ID and OSPF router ID. |
RouterID |
Router ID. |
Router type |
Router type: · ABR. · ASBR. · NSSA. · Null. |
Process state |
OSPF process state. If you shut down the process by using the shutdown process command, this field displays Admin-down. If the process is not shut down, this field is not displayed. |
Route tag |
Tag of redistributed routes. |
Multi-VPN-Instance is not enabled |
The OSPF process does not support multi-VPN-instance. |
Ext-community type |
OSPF extended community attribute type codes: · Domain ID—Domain ID code. · Route Type—Route type code. · Router ID—Router ID code. |
Domain ID |
OSPF domain ID (primary ID). |
Opaque capable |
Opaque LSA advertisement and reception capability is enabled. |
Isolation |
Whether OSPF isolation is enabled. |
Originating router-LSAs with maximum metric |
The maximum cost value for router LSAs (excluding stub links) is used. |
Condition |
Status of the stub router: · Always. · On startup while BGP is converging. · On startup while BGP is converging for xxx seconds, where xxx is specified by the user. · On startup for xxx seconds, where xxx is specified by the user. |
State |
Whether the stub router is active. |
ECMP group is enabled |
ECMP route grouping is enabled. This field is displayed only when ECMP route grouping is enabled. |
SPF-schedule-interval |
Interval for SPF calculations. If the SPF calculation interval is fixed, this field also displays in milliseconds enclosed with brackets. |
LSA generation interval |
LSA generation interval. |
LSA arrival interval |
LSA arrival interval. |
Transmit pacing |
LSU packet transmit rate of the interface: · Interval—LSU transmit interval of the interface. · Count—Maximum number of LSU packets sent at each interval. |
Default ASE parameters |
Default ASE parameters: Metric, Tag, and Type. |
Route preference |
Internal route preference. |
ASE route preference |
External route preference. |
SPF computation count |
SPF computation count of the OSPF process. |
RFC1583 compatible |
Compatible with RFC 1583. |
Fast-reroute |
FRR type: · LFA—LFA is enabled. · remote-LFA Disabled—Remote LFA is not enabled. · remote-LFA Enabled—Remote LFA is enabled. · TI-LFA—TI-LFA is enabled. |
Node-Protecting Preference |
Priority for node-protection backup path selection policy. |
Lowest-cost Preference |
Priority for lowest-cost backup path selection policy. |
Maximum-cost |
Maximum cost from the source node of a protected link to a PQ node. |
Microloop-avoidance |
Microloop avoidance status: Disabled or Enabled. |
Microloop-avoidance RIB-update-delay |
Microloop avoidance delay timer in milliseconds. |
Graceful restart interval |
GR interval. |
SNMP trap rate limit interval |
SNMP notification sending interval. |
Count |
Number of sent SNMP notifications. |
ExChange/Loading neighbors |
Neighbors in ExChange/Loading state. |
Description |
Description of the process or area. This field is not displayed if no description is configured. |
Full neighbors |
Neighbors in Full state. |
Calculation trigger type |
Route calculation trigger type: · Full—Calculation of all routes is triggered. · Area topology change—Topology change in an area. · Intra router change—Incremental intra-area route change. · ASBR change—Incremental ASBR route change. · 7to5 translator—Type-7-to-Type-5 LSA translator role change. · Full IP prefix—Calculation of all IP prefixes is triggered. · Full intra AS—Calculation of all intra-AS prefixes is triggered. · Inc intra AS—Calculation of incremental intra-AS prefixes is triggered. · Full inter AS—Calculation of all AS-external prefixes is triggered. · Inc inter AS—Calculation of incremental AS-external prefixes is triggered. · N/A—Route calculation is not triggered. |
Current calculation type |
Current route calculation type: · SPF calculation. · Intra router calculation—Intra-area route calculation. · ASBR calculation—Inter-area ASBR route calculation. · Inc intra router—Incremental intra-area route calculation. · Inc ASBR calculation—Incremental inter-area ASBR route calculation. · 7to5 translator—Type-7-to-Type-5 LSA calculation. · Full intra AS—Calculation of all intra-AS prefixes. · Inc intra AS—Calculation of incremental intra-AS prefixes. · Full inter AS—Calculation of all AS-external prefixes. · Inc inter AS—Calculation of incremental AS-external prefixes. · Forward address—Forwarding address calculation. · N/A—Route calculation is not triggered. |
Current calculation phase |
Current route calculation phase: · Calculation area topology—Calculating area topology. · Calculation router—Calculating routes on routers. · Calculation intra AS—Calculating intra-AS routes. · 7to5 translator—Calculating Type-7-to-Type-5 LSAs. · Forward address—Calculating forwarding addresses. · Calculation inter AS—Calculating AS-external routes. · Calculation end—Ending phase of calculation. · N/A—Route calculation is not triggered. |
Process reset state |
Process reset state: · N/A—The process is not reset. · Under reset—The process is in the reset progress. · Under RIB smooth—The process is synchronizing the RIB. |
Current reset type |
Current process reset type: · N/A—The process is not reset. · Normal—Normal reset. · GR quit—Normal reset when GR quits abnormally. · Delete—Delete OSPF process. · VPN delete—Delete VPN. |
Next reset type |
Next process reset type: · N/A—The process is not reset. · Normal—Normal reset. · GR quit—Normal reset when GR quits abnormally. · Delete—Delete OSPF process. · VPN delete—Delete VPN. |
Reset prepare message replied |
Modules that reply reset prepare messages: · P—Neighbor maintenance module. · L—LSDB synchronization module. · C—Route calculation module. · R—Route redistribution module. |
Reset process message replied |
Modules that reply reset process messages: · P—Neighbor maintenance module. · L—LSDB synchronization module. · C—Route calculation module. · R—Route redistribution module. |
Reset phase of module |
Reset phase of each module: · Main control module: ¡ N/A—Not reset. ¡ Delete area. ¡ Delete process. · Neighbor maintenance (P) module: ¡ N/A—Not reset. ¡ Delete neighbor. ¡ Delete interface. ¡ Delete vlink—Delete virtual link. ¡ Delete shamlink—Delete sham link. · LSDB synchronization (L) module: ¡ N/A—Not reset. ¡ Stop timer. ¡ Delete ASE—Delete all ASE LSAs. ¡ Delete ASE maps—Delete ASE LSA maps. ¡ Clear process data. ¡ Delete area LSA—Delete LSAs and maps from an area. ¡ Delete area interface—Delete interfaces from an area. ¡ Delete process—Delete process-related resources. ¡ Restart—Restart process-related resources. · Route calculation (C) module: ¡ N/A—Not reset. ¡ Delete topology—Delete area topology. ¡ Delete router—Delete routes of routers. ¡ Delete intra AS—Delete intra-AS routes ¡ Delete inter AS—Delete AS-external routes. ¡ Delete forward address—Delete forwarding address list. ¡ Delete advertise—Delete advertising router list. · Route redistribution (R) module: ¡ N/A—Not reset. ¡ Delete ABR summary—Delete summary routes of the ABR. ¡ Delete ASBR summary—Delete summary routes of the ASBR. ¡ Delete import—Delete redistributed routes. |
MPLS segment routing |
SR-MPLS status: Disabled or Enabled. |
Segment routing adjacency |
Adjacency label allocation status: Disabled or Enabled. |
Configured SRGB |
Configured SRGB range. This field is displayed when SRGB is configured. |
Effective SRGB |
SRGB range that takes effect. |
Segment routing global block |
SRGB range. |
Segment routing local block |
SRLB range. |
Area |
Area ID in the IP address format. |
MPLS TE not enabled |
Status of MPLS TE for the OSPF area, which can be MPLS TE not enabled or MPLS TE enabled. |
Authentication type |
Authentication type of the area: · None—No authentication. · Simple—Simple authentication. · Cryptographic—Encrypted authentication. Options include MD5, HMAC-MD5, and HMAC-SHA-256. · Keychain—Keychain authentication. |
Area flag |
Type of the area: · Normal. · Stub. · StubNoSummary (totally stub area). · NSSA. · NSSANoSummary (totally NSSA area). |
7/5 translator state |
State of the translator that translates Type-7 LSAs to Type-5 LSAs: · Enabled—The translator is specified through commands. · Elected—The translator is designated through election. · Disabled—The device is not a translator. |
7/5 translate stability timer interval |
Stability interval for Type-7 LSA-to-Type-5 LSA translation. |
SPF scheduled Count |
SPF calculation count in the OSPF area. |
Interface |
Interface in the area. |
Cost |
Interface cost. |
State |
Interface state. |
Type |
Interface network type. |
MTU |
Interface MTU. |
Priority |
Router priority. |
Timers |
OSPF timers: · Hello—Interval for sending hello packets. · Dead—Interval within which the neighbor is down. · Poll—Interval for sending hello packets. · Retransmit—Interval for retransmitting LSAs. |
FRR backup |
Whether Loop Free Alternate (LFA) calculation is enabled on an interface. |
FRR remote-LFA |
Whether remote LFA calculation is enabled on an interface. |
FRR TI-LFA |
Whether TI-LFA calculation is enabled on an interface. |
Enabled by interface configuration (including secondary IP addresses) |
OSPF is enabled on the interface. including secondary IP addresses indicates that OSPF advertises the direct routes to the primary and secondary addresses of the interface. |
Keychain authentication: Enabled (xx), inherited |
Keychain authentication is enabled. The name of the keychain is xx. If the interface uses the authentication mode specified for the area to which the interface belongs, this field displays inherited after the authentication mode. |
No authentication is required |
None authentication is enabled. An interface does not inherit the authentication configuration of the area to which the interface belongs. |
Cryptographic authentication: Enabled, inherited |
Authentication mode used by the interface, which can be MD5, HMAC-MD5, or HMAC-SHA-256. If the interface uses the authentication mode specified for the area to which the interface belongs, this field displays inherited after the authentication mode. |
The last key is xx |
The most recent MD5/HMAC-MD5/HMAC-SHA-256 authentication key ID is xx. |
The rollover is in progress, xx neighbor(s) left |
Key rollover for MD5/HMAC-MD5/HMAC-SHA-256 authentication is in progress. The number of neighbors that have not completed rollover is xx. |
Prefix-SID type |
Prefix SID type: · Absolute—Absolute value of the prefix SID. · Index—Index value of the prefix SID. |
Value |
Prefix SID value. |
Process ID |
OSPF process ID specified during prefix SID configuration |
Prefix-SID validity |
Whether the prefix SID is valid: · Invalid—The prefix SID is invalid. Possible reasons include: ¡ The prefix SID is out of the SRGB range. ¡ The OSPF process ID configured on the loopback interface is different from the OSPF process ID specified during prefix SID configuration. · Valid—The prefix SID is valid. |
display ospf abr-asbr
Use display ospf abr-asbr to display routes to the ABR or ASBR.
Syntax
display ospf [ process-id ] abr-asbr [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays routes to the ABR and ASBR for all OSPF processes.
verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.
Usage guidelines
If you use this command on routers in a stub area, the commands displays no ASBR information.
Examples
# Display brief information about routes to the ABR or ASBR.
<Sysname> display ospf abr-asbr
OSPF Process 1 with Router ID 192.168.1.2
Routing Table to ABR and ASBR
Type Destination Area Cost Nexthop RtType
Inter 3.3.3.3 0.0.0.0 3124 10.1.1.2 ASBR
Intra 2.2.2.2 0.0.0.0 1562 10.1.1.2 ABR
# Display detailed information about routes to the ABR or ASBR.
<Sysname> display ospf abr-asbr verbose
OSPF Process 10 with Router ID 101.1.1.11
Routing Table to ABR and ASBR
Destination: 1.1.1.1 RtType : ASBR
Area : 0.0.0.1 Type : Intra
Nexthop : 150.0.1.12 BkNexthop : 0.0.0.0
Interface : Vlan10 BkInterface: N/A
Cost : 1000
Table 2 Command output
Field |
Description |
Type |
Type of the route to the ABR or ASBR: · Inter—Inter-area route. · Intra—Intra-area route. |
Destination |
Router ID of an ABR or ASBR. |
Area |
ID of the area of the next hop. |
Cost |
Cost from the router to the ABR or ASBR. |
Nexthop |
Next hop address. |
BkNexthop |
Backup next hop address. |
RtType |
Router type: ABR or ASBR. |
Interface |
Output interface. |
BkInterface |
Backup output interface. |
Remote-LFA back Info |
Remote LFA backup information. |
PQPrefix |
PQ node prefix. |
PQAdvID |
Router ID of the PQ node. |
TI-LFA backup Info |
TI-LFA backup information. |
PNodePrefix |
P node prefix. |
QNodeAdvID |
Router ID of the Q node. |
LsIndex |
Label stack index. |
LabelStack |
Label stack. |
display ospf abr-summary
Use display ospf abr-summary to display ABR summary route information.
Syntax
display ospf [ process-id ] [ area area-id ] abr-summary [ ip-address { mask-length | mask } ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays information about ABR summary routes for all OSPF processes.
area area-id: Specifies an OSPF area by its ID. The area ID is an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format. If you do not specify this option, the command displays information about ABR summary routes for all OSPF areas.
ip-address: Specifies a summary route by its IP address.
mask-length: Specifies the mask length in the range of 0 to 32.
mask: Specifies the mask in dotted decimal notation.
verbose: Displays detailed ABR summary route information. If you do not specify this keyword, the command displays brief ABR summary route information.
Usage guidelines
If you do not specify an IP address, this command displays information about all summary routes on the ABR.
Examples
# Display brief information about summary routes on the ABR.
<Sysname> display ospf abr-summary
OSPF Process 1 with Router ID 2.2.2.2
ABR Summary Addresses
Area: 0.0.0.1
Total summary addresses: 1
Net Mask Status Count Cost
100.0.0.0 255.0.0.0 Advertise 1 (Not Configured)
Table 3 Command output
Field |
Description |
Area |
Area to which the summary routes belong. |
Total summary addresses |
Total number of summary routes. |
Net |
Address of the summary route. |
Mask |
Mask of the summary route address. |
Status |
Advertisement status of the summary route: Advertise or Non-Advertise. |
Count |
Number of summarized routes. |
Cost |
Cost of the summary route. |
# Display detailed information about summary routes on the ABR.
<Sysname> display ospf abr-summary verbose
OSPF Process 1 with Router ID 2.2.2.2
ABR Summary Addresses
Area: 0.0.0.1
Total summary addresses: 1
Net : 100.0.0.0
Mask : 255.0.0.0
Status : Advertise
Cost : (Not Configured)
Routes count: 1
Destination NetMask Metric
100.1.1.0 255.255.255.0 1000
Table 4 Command output
Field |
Description |
Destination |
Destination address of a summarized route. |
NetMask |
Network mask of a summarized route. |
Metric |
Metric of a summarized route. |
display ospf asbr-summary
Use display ospf asbr-summary to display ASBR summary route information.
Syntax
display ospf [ process-id ] asbr-summary [ ip-address { mask-length | mask } ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays information about ASBR summary routes for all OSPF processes.
ip-address: Specifies an IP address in dotted decimal notation.
mask-length: Specifies the mask length in the range of 0 to 32.
mask: Specifies the mask in dotted decimal notation.
Usage guidelines
If you do not specify an IP address, this command displays information about all ASBR summary routes.
Examples
# Display ASBR summary route information in OSPF process 1.
<Sysname> display ospf 1 asbr-summary
OSPF Process 1 with Router ID 2.2.2.2
Summary Addresses
Total Summary Address Count: 1
Summary Address
Net : 30.1.0.0
Mask : 255.255.0.0
Tag : 20
Status : Advertise
Cost : 10 (Configured)
The Count of Route is : 2
Destination Net Mask Proto Process Type Metric
30.1.2.0 255.255.255.0 OSPF 2 2 1
30.1.1.0 255.255.255.0 OSPF 2 2 1
Table 5 Command output
Field |
Description |
Total Summary Address Count |
Total number of summary routes. |
Net |
Address of the summary route. |
Mask |
Mask of the summary route address. |
Tag |
Tag of the summary route. |
Status |
Advertisement status of the summary route. |
Cost |
Cost of the summary route. |
The Count of Route is |
Number of summarized routes. |
Destination |
Destination address of a summarized route. |
Net Mask |
Network mask of a summarized route. |
Proto |
Routing protocol from which the route was redistributed. |
Process |
Process ID of the routing protocol from which the route was redistributed. |
Type |
Type of a summarized route. |
Metric |
Metric of a summarized route. |
display ospf event-log
Use display ospf event-log to display OSPF log information.
Syntax
display ospf [ process-id ] event-log { lsa-flush | peer | spf }
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays OSPF log information for all processes.
lsa-flush: Specifies LSA aging log information.
peer: Specifies neighbor state change log information.
neighbor-id: Specifies a neighbor by its router ID. If you do not specify this argument, the command displays state change log information for all neighbors.
spf: Specifies route calculation log information.
Usage guidelines
Route calculation logs show the number of routes newly installed in the IP routing table.
Neighbor logs include information about the following events:
· The OSPF neighbor state goes down.
· The OSPF neighbor state goes backward because the local end receives BadLSReq, SeqNumberMismatch, and 1-Way events.
Examples
# Display OSPF LSA aging log information for all processes.
<Sysname> display ospf event-log lsa-flush
OSPF Process 1 with Router ID 1.1.1.1
LSA Flush Log
Date: 2013-09-22 Time: 14:47:33 Received MaxAge LSA from 10.1.1.1
Type: 1 LS ID: 2.2.2.2 AdvRtr: 2.2.2.2 Seq#: 80000001
Date: 2013-09-22 Time: 14:47:33 Flushed MaxAge LSA by the self
Type: 1 LS ID: 1.1.1.1 AdvRtr: 1.1.1.1 Seq#: 80000001
Date: 2013-09-22 Time: 14:47:33 Received MaxAge LSA from 10.1.2.2
Type: 1 LS ID: 2.2.2.2 AdvRtr: 2.2.2.2 Seq#: 80000001
Date: 2013-09-22 Time: 14:47:33 Flushed MaxAge LSA by the self
Type: 1 LS ID: 1.1.1.1 AdvRtr: 1.1.1.1 Seq#: 80000001
Table 6 Command output
Field |
Description |
Date/Time |
Time when the device receives an LSA that has reached the maximum age. |
Received MaxAge LSA from X.X.X.X |
The device received an LSA that has reached the maximum age from X.X.X.X. |
Flushed MaxAge LSA by the self |
The device flushed the LSA that has reached the maximum age. |
Type |
LSA type. |
LS ID |
LSA link state ID. |
AdvRtr |
Advertising router. |
Seq# |
LSA sequence number. |
# Display OSPF route calculation log information for all processes.
<Sysname> display ospf event-log spf
OSPF Process 1 with Router ID 1.1.1.2
SPF Log
Date Time Duration Intra Inter External Reason
2012-06-27 15:28:26 0.95 1 1 10000 Intra-area LSA
2012-06-27 15:28:23 0.2 0 0 0 Area 0 full neighbor
2012-06-27 15:28:19 0 0 0 0 Intra-area LSA
2012-06-27 15:28:19 0 0 0 0 external LSA
2012-06-27 15:28:19 0.3 0 0 0 Intra-area LSA
2012-06-27 15:28:12 0 1 0 0 Intra-area LSA
2012-06-27 15:28:11 0 0 0 0 Routing policy
2012-06-27 15:28:11 0 0 0 0 Intra-area LSA
Table 7 Command output
Field |
Description |
Date/Time |
Time when the route calculation starts. |
Duration |
Duration of the route calculation, in seconds. |
Intra |
Number of intra-area routes newly installed in the IP routing table. |
Inter |
Number of inter-area routes newly installed in the IP routing table. |
External |
Number of external routes newly installed in the IP routing table. |
Reason |
Reasons why the route calculation is performed: · Intra-area LSA—Intra-area LSA changes. · Inter-area LSA—Inter-area LSA changes. · External LSA—External LSA changes. · Configuration—Configuration changes. · Area 0 full neighbor—Number of FULL-state neighbors in Area 0 changes. · Area 0 up interface—Number of interfaces in up state in Area 0 changes. · LSDB overflow state—Overflow status changes. · AS number—AS number changes. · ABR summarization—ABR summarization changes. · GR end—GR ends. · Routing policy—Routing policy changes. · Intra-area tunnel—Intra-area tunnel changes. · Others—Other reasons. |
# Display OSPF neighbor log information for OSPF process 1.
<Sysname> display ospf 1 event-log peer
OSPF Process 1 with Router ID 1.1.1.1
Neighbors Log
Date Time Local Address Remote Address Router ID Reason
2012-12-31 12:35:45 197.168.1.1 197.168.1.2 2.2.2.2 IntPhyChange
2012-12-31 12:35:19 197.168.1.1 197.168.1.2 2.2.2.2 ConfNssaArea
2012-12-31 12:34:59 197.168.1.1 197.168.1.2 2.2.2.2 SilentInt
Table 8 Command output
Field |
Description |
Date/Time |
Time when the neighbor state changes. |
Local Address |
Local address of the neighbor relationship. |
Remote Address |
Peer address of the neighbor relationship. |
Router ID |
Neighbor router ID. |
Reason |
Reasons for neighbor state changes: · ResetConnect—The connection is lost due to insufficient memory. · IntChange—The interface parameter has changed. · VlinkChange—The virtual link parameter has changed. · ShamlinkChange—The sham link parameter has changed. · ResetOspf—The OSPF process is reset. · UndoOspf—The OSPF process is deleted. · UndoArea—The OSPF area is deleted. · UndoNetwork—The interface is disabled. · SilentInt—The interface is configured as a silent interface. · IntLogChange—The logical attribute of the interface has changed. · IntPhyChange—The physical attribute of the interface has changed. · IntVliChange—The virtual link attribute of the interface has changed. · VlinkDown—The virtual link goes down. · ShamlinkDown—The sham link goes down. · DeadExpired—The dead timer expires. · ConfStubArea—The interface is configured with stub area parameters. · ConfNssaArea—The interface is configured with NSSA area parameters. · AuthChange—The authentication type has changed. · OpaqueChange—The Opaque capability has changed. · Retrans—Excessive retransmissions. · LLSChange—The LLS capability has changed. · OOBChange—The OOB capability has changed. · GRChange—The GR capability has changed. · BFDDown—The interface is shut down by BFD. · BadLSReq—The interface receives BadLSReq events. · SeqMismatch—The interface receives SeqNumberMismatch events. · 1-Way—The interface receives 1-Way events. · FilterLSA—Peer disconnection occurs because LSA filter settings have changed or the ACL used by the LSA filter has change · shutdown—The shutdown process command is executed. |
Related commands
reset ospf event-log
display ospf event-log hello
Use display ospf event-log hello to display OSPF log information about received or sent hello packets.
Syntax
display ospf [ process-id ] event-log hello { received [ abnormal | dropped ] | sent } [ neighbor-id ]
display ospf [ process-id ] event-log hello sent { abnormal | failed } [ neighbor-address ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays OSPF log information for all processes.
received: Specifies log information for received hello packets.
sent: Specifies log information for sent hello packets.
abnormal: Specifies log information for abnormal hello packets received or sent at intervals greater than or equal to 1.5 times the hello interval.
dropped: Specifies log information for received hello packets that were dropped.
failed: Specifies log information for hello packets that failed to be sent.
neighbor-address: Specifies a neighbor by its IP address. If you do not specify this argument, the command displays received or sent hello packet log information for all neighbors.
neighbor-id: Specifies a neighbor by its router ID. If you do not specify this argument, the command displays received or sent hello packet log information for all neighbors.
Examples
# Display log information for sent hello packets.
<Sysname> display ospf event-log hello sent
OSPF Process 1 with Router ID 5.5.5.5
Hello Log
Interface: Vlan10
Neighbor address: 10.1.1.2, NbrID: 1.0.0.2
First 4 hello packets sent:
2018-08-05 20:10:10:121, failed, errno: 132
2018-08-05 20:10:30:121, succeeded
2018-08-05 20:10:20:121, succeeded
2018-08-05 20:10:40:121, succeeded
Last 4 hello packets sent before Full->Down at 2018-08-06 14:52:10:121
2018-08-06 14:51:40:021, succeeded
2018-08-06 14:51:50:021, succeeded
2018-08-06 14:52:00:021, failed, errno: 132
2018-08-06 14:52:10:010, failed, errno: 132
Interface: Vlan10
Neighbor address: 10.1.1.2, NbrID: 1.0.0.2
First 4 hello packets sent:
2018-08-05 20:10:10:121, failed, errno: 132
2018-08-05 20:10:30:121, succeeded
2018-08-05 20:10:20:121, succeeded
2018-08-05 20:10:40:121, succeeded
Last 4 hello packets sent before Full->Init at 2018-08-06 11:16:20:171
2018-08-06 11:15:20:121, succeeded
2018-08-06 11:15:30:121, succeeded
2018-08-06 11:15:40:121, succeeded
2018-08-06 11:15:50:121, succeeded
Table 9 Command output
Field |
Description |
Interface |
Interface that sends the hello packets. |
Neighbor address |
IP address of the neighbor. |
NbrID |
Router ID of the neighbor. |
First 4 hello packets sent |
Time and result (succeeded or failed) for sending the first four hello packets. For a packet failed to be sent, an error code is displayed in the errno field. Error codes and corresponding failure reasons are as follows: · 4—EINTR. Interrupted system call. · 9—EBADF. Bad file descriptor. · 11—EAGAIN. Resource temporarily unavailable. · 12—ENOMEM. Cannot allocate memory. · 32—EPIPE. Broken pipe. · 88—ENOTSOCK. Socket operation on non-socket. · 90—EMSGSIZE. Message too long. · 95—EOPNOTSUPP. Operation not supported. · 104—ECONNRESET. Connection reset by peer. · 107—ENOTCONN. Transport endpoint is not connected. · 113—EHOSTUNREACH. No route to host. · 132—ENOBUFS. No buffer space available. |
Last 4 hello packets sent before Full->Down at 2018-01-06 14:52:10:121 |
Time and result (succeeded or failed) for sending the last four hello packets before neighbor state change. For a packet failed to be sent, an error code is displayed in the errno field. Error codes and corresponding failure reasons are as follows: · 4—EINTR. Interrupted system call. · 9—EBADF. Bad file descriptor. · 11—EAGAIN. Resource temporarily unavailable. · 12—ENOMEM. Cannot allocate memory. · 32—EPIPE. Broken pipe. · 88—ENOTSOCK. Socket operation on non-socket. · 90—EMSGSIZE. Message too long. · 95—EOPNOTSUPP. Operation not supported. · 104—ECONNRESET. Connection reset by peer. · 107—ENOTCONN. Transport endpoint is not connected. · 113—EHOSTUNREACH. No route to host. · 132—ENOBUFS. No buffer space available. |
# Display log information for hello packets that failed to be sent.
<Sysname> display ospf event-log hello sent failed
OSPF Process 1 with Router ID 5.5.5.5
Hello Log
Date: 2018-08-06 Time: 14:51:20:121 Interface: Vlan10
Destination address: 224.0.0.5, sent failed, errno: 132
Date: 2018-08-06 Time: 11:20:20:116 Interface: Vlan11
Destination address: 10.1.1.2, sent failed, errno: 132
Table 10 Command output
Field |
Description |
Date |
Date for the hello packet sending failure, in the format of YYYY-MM-DD. YYYY represents the year, MM represents the month, and DD represents the day. |
Time |
Time for the hello packet sending failure, in the format of hh:mm:ss:xxx. hh represents the hours, mm represents the minutes, and ss represents the seconds, and xxx represents the milliseconds. |
Interface |
Interface that sends the hello packet. |
Destination address |
Destination IP address of the hello packet. |
errno |
Error code for the hello packet sending failure. Options include: · 4—EINTR. Interrupted system call. · 9—EBADF. Bad file descriptor. · 11—EAGAIN. Resource temporarily unavailable. · 12—ENOMEM. Cannot allocate memory. · 32—EPIPE. Broken pipe. · 88—ENOTSOCK. Socket operation on non-socket. · 90—EMSGSIZE. Message too long. · 95—EOPNOTSUPP. Operation not supported. · 104—ECONNRESET. Connection reset by peer. · 107—ENOTCONN. Transport endpoint is not connected. · 113—EHOSTUNREACH. No route to host. · 132—ENOBUFS. No buffer space available. |
# Display log information for abnormal hello packets sent.
<Sysname> display ospf event-log hello sent abnormal
OSPF Process 1 with Router ID 5.5.5.5
Hello Log
Date: 2018-08-06 Time: 11:21:12:121 Interface: Vlan12
Destination address: 224.0.0.5, last one sent: 2018-08-06 11:20:51:916
Date: 2018-08-06 Time: 11:56:21:312 Interface: Vlan12
Destination address: 10.1.1.2, last one sent: 2018-08-06 11:56:02:691
Table 11 Command output
Field |
Description |
Date |
Date for sending the abnormal hello packet, in the format of YYYY-MM-DD. YYYY represents the year, MM represents the month, and DD represents the day. |
Time |
Time for sending the abnormal hello packet, in the format of hh:mm:ss:xxx. hh represents the hours, mm represents the minutes, and ss represents the seconds, and xxx represents the milliseconds. |
Interface |
Interface that sends the abnormal hello packet. |
Destination address |
Destination IP address of the abnormal hello packet. |
last one sent |
Time for sending the last hello packet before sending the abnormal hello packet. |
# Display log information for received hello packets.
<Sysname> display ospf event-log hello received
OSPF Process 1 with Router ID 5.5.5.5
Hello Log
Interface: Vlan10
Neighbor address: 10.1.1.2, NbrID: 1.0.0.2
First 4 hello packets received:
2018-08-05 20:11:10:121
2018-08-05 20:11:30:121
2018-08-05 20:11:20:121
2018-08-05 20:11:40:121
Last 4 hello packets received before Exchange->Down at 2018-08-06 14:52:10:121
2018-08-06 14:51:10:121
2018-08-06 14:51:30:121
2018-08-06 14:51:20:121
2018-08-06 14:51:40:121
Interface: Vlan10
Neighbor address: 10.1.1.1, NbrID: 1.0.0.1
First 4 hello packets received:
2018-08-06 19:11:15:121
2018-08-06 19:11:35:121
2018-08-06 19:11:25:121
2018-08-06 19:11:45:121
Last 4 hello packets received before Full->Init at 2018-08-06 21:16:20:171
2018-08-06 21:15:45:121
2018-08-06 21:15:55:121
2018-08-06 21:16:05:121
2018-08-06 21:16:15:121
Table 12 Command output
Field |
Description |
Interface |
Interface that receives the hello packets. |
Neighbor address |
IP address of the neighbor. |
NbrID |
Router ID of the neighbor. |
First 4 hello packets received |
Time for receiving the first four hello packets. |
Last 4 hello packets received before Full->Init at 2018-01-06 21:16:20:171 |
Time for receiving the last four hello packets before neighbor state change, in the format of YYYY-MM-DD hh:mm:ss:xxx. YYYY represents the year, MM represents the month, and DD represents the day. hh represents the hours, mm represents the minutes, and ss represents the seconds, and xxx represents the milliseconds. |
# Display log information for received hello packets that were dropped.
<Sysname> display ospf event-log hello received dropped
OSPF Process 1 with Router ID 5.5.5.5
Hello Log
Date: 2018-08-06 Time: 14:51:22:791 Interface: Vlan10
Source address: 10.1.1.1, NbrID: 1.0.0.1, area: 0.0.0.1
Drop reason: Hello-time mismatch
Date: 2018-08-06 Time: 14:51:20:121 Interface: Vlan10
Source address: 10.1.1.2, NbrID: 1.0.0.2, area: 0.0.0.1
Drop reason: NP-bit mismatch
Table 13 Command output
Field |
Description |
Date |
Date for dropping the received hello packet, in the format of YYYY-MM-DD. YYYY represents the year, MM represents the month, and DD represents the day. |
Time |
Time for dropping the received hello packet, in the format of hh:mm:ss:xxx. hh represents the hours, mm represents the minutes, and ss represents the seconds, and xxx represents the milliseconds. |
Interface |
Interface that receives the hello packet. |
Source address |
Source IP address of the received hello packet. |
NbrID |
Router ID of the neighbor. |
area |
Area to which the neighbor interface belongs. |
Drop reason |
Reason for dropping the hello packet: · Area under reset—The area is in the reset progress. · Router ID conflict—Route ID conflict. · Area mismatch—Area ID mismatch. · Unknown virtual link—The hello packet is from an unknown virtual link. · Authentication failure—Authentication check failure. · Peer address check failure—Neighbor address check failure. · Not DR or BDR—The destination IP address of the hello packet is 224.0.0.6, but the interface is not a DR or BDR. · Unknown unicast peer—The hello packet is from an unknown unicast neighbor. · Option mismatch—Option mismatch. · Subnet mask mismatch—Subnet mask mismatch. · Address mismatch—Address range mismatch. · Hello timer mismatch—Hello timer mismatch. · Dead timer mismatch—Dead timer mismatch. · Peer change—The source IP address or router ID has changed. · FilterLSA—Peer disconnection occurs because LSA filter settings have changed or the ACL used by the LSA filter has changed. |
# Display log information for abnormal hello packets received.
<Sysname> display ospf event-log hello received abnormal
OSPF Process 1 with Router ID 5.5.5.5
Hello Log
Date: 2018-08-06 Time: 10:12:22:121 Interface: Vlan10
Source address: 10.1.1.2, NbrID: 1.0.0.2, area: 0.0.0.1
Last one received: 2018-08-06 10:12:04:212
Date: 2018-08-06 Time: 14:51:20:121 Interface: Vlan10
Source address: 10.1.1.2, NbrID: 1.0.0.2, area: 0.0.0.1
Last one received: 2018-08-06 14:51:05:113
Table 14 Command output
Field |
Description |
Date |
Date for receiving the abnormal hello packet, in the format of YYYY-MM-DD. YYYY represents the year, MM represents the month, and DD represents the day. |
Time |
Time for receiving the abnormal hello packet, in the format of hh:mm:ss:xxx. hh represents the hours, mm represents the minutes, and ss represents the seconds, and xxx represents the milliseconds. |
Interface |
Interface that receives the abnormal hello packet. |
Source address |
Source IP address of the received abnormal hello packet. |
NbrID |
Router ID of the neighbor. |
area |
Area to which the neighbor interface belongs. |
last one sent |
Time for receiving the last hello packet before receiving the abnormal hello packet. |
Related commands
reset ospf event-log hello
display ospf hostname-table
Use display ospf hostname-table to display the router ID-to-host name mapping table.
Syntax
display ospf [ process-id ] hostname-table
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify an OSPF process, this command displays the router ID-to-host name mapping tables for all OSPF processes.
Examples
# Display the router ID-to-host name mapping tables for all OSPF processes.
<Sysname> display ospf hostname-table
OSPF Process 1 with Router ID 192.168.56.21
Hostname Table Information
Area: 0.0.0.1
Router ID Hostname
192.168.56.21 RouterA
display ospf interface
Use display ospf interface to display OSPF interface information.
Syntax
display ospf [ process-id ] interface [ interface-type interface-number | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process ID in the range of 1 to 65535. If you do not specify this argument, the command displays the OSPF interface information for all OSPF processes.
interface-type interface-number: Specifies an interface by its type and number.
verbose: Displays detailed OSPF information for all interfaces.
Usage guidelines
If you do not specify the interface-type interface-number argument or the verbose keyword, this command displays OSPF brief information for all interfaces.
Examples
# Display all OSPF interface brief information.
<Sysname> display ospf interface
OSPF Process 1 with Router ID 192.168.1.1
Interfaces
Area: 0.0.0.0
IP Address Type State Cost Pri DR BDR
192.168.1.1 PTP P-2-P 1562 1 0.0.0.0 0.0.0.0
Area: 0.0.0.1
IP Address Type State Cost Pri DR BDR
172.16.0.1 Broadcast DR 1 1 172.16.0.1 0.0.0.0
Table 15 Command output
Field |
Description |
Area |
Area ID of the interface. |
IP Address |
Interface IP address (regardless of whether TE is enabled or not). |
Type |
Interface network type: PTP (P2P), PTMP (P2MP), Broadcast, or NBMA. |
State |
Interface state: · Down—No protocol traffic can be sent or received on the interface. · Loopback—The interface is in loopback state and it cannot forward traffic. · Waiting—The interface starts sending and receiving Hello packets. The router is trying to determine the identity of the (Backup) designated router for the network. · P-2-P—The interface will send Hello packets at the hello interval, and try to establish an adjacency with the neighbor. · DR—The router is the designated router on the network. · BDR—The router is the backup designated router on the network. · DROther—The router is a DR Other router on the attached network. |
Cost |
Interface cost. |
Pri |
Router priority. |
DR |
DR on the interface's network segment. |
BDR |
BDR on the interface's network segment. |
# Display detailed information about VLAN-interface 10.
<Sysname> display ospf interface vlan-interface 10
OSPF Process 1 with Router ID 192.168.1.1
Interfaces
Area: 0.0.0.0
Interface: 172.16.0.1 (Vlan-interface10)
Cost: 1 State: DR Type: Broadcast MTU: 1500
Priority: 1
Designated router: 172.16.0.1
Backup designated router: 0.0.0.0
Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit Delay 1
FRR backup: Enabled
FRR TI-LFA: Enabled
FRR remote-lfa: Enabled
Primary path detection mode: BFD ctrl
Enabled by interface configuration (including secondary IP addresses)
BFD: echo
Cryptographic authentication: Enabled, inherited
The last key is 1.
LDP state: No-LDP
LDP sync state: Achieved
Prefix-SID type: Index
Value: 876, Explicit-null, N-flag-clear
Process ID: ospf 1
Prefix-SID validity: Invalid
Table 16 Command output
Field |
Description |
Interface |
Information about the interface, such as the IP address. |
Timers |
OSPF timers (in seconds): Hello, Dead, Poll, and Retransmit. |
Transmit Delay |
LSA transmission delay on the interface, in seconds. |
FRR backup |
Whether LFA calculation is enabled on an interface. |
FRR remote-LFA |
Whether remote LFA calculation is enabled on an interface. |
FRR TI-LFA |
Whether TI-LFA calculation is enabled on an interface. |
Primary path detection mode |
Primary link detection mode: · BFD ctrl—BFD control packet mode. · BFD echo—BFD echo packet mode. |
Enabled by interface configuration (including secondary IP addresses) |
OSPF is enabled on the interface (including secondary IP addresses). |
BFD |
BFD session mode enabled on the interface: · ctrl—BFD control packet mode. · echo—BFD echo packet mode. |
Keychain authentication: Enabled (xx), inherited |
Keychain authentication is enabled. The name of the keychain is xx. If the interface uses the authentication mode specified for the area to which the interface belongs, this field displays inherited after the authentication mode. |
Simple authentication: Enabled, inherited |
The interface uses the simple authentication mode. The inherited attribute indicates that the interface uses the authentication mode specified for the area to which the interface belongs. |
No authentication is required |
None authentication is enabled. |
Cryptographic authentication: Enabled, inherited |
Cryptographic authentication mode (MD5, HMAC-MD5, or HMAC-SHA-256) is used by the interface. The inherited attribute indicates that the interface uses the authentication mode specified for the area to which the interface belongs. |
The last key is xx |
The most recent MD5/HMAC-MD5/HMAC-SHA-256 authentication key ID is xx. |
The rollover is in progress, xx neighbor(s) left. |
Key rollover for MD5/HMAC-MD5/HMAC-SHA-256 authentication is in progress. The number of neighbors that have not completed rollover is xx. |
LDP state |
LDP state: · Init—Initialization state. LDP has not been delivered. · No-LDP—LDP is not configured. · Not ready—LDP sessions have not been established. · Ready—LDP sessions have been established. |
LDP sync state |
LDP IGP synchronization state: · Init—Initialization state. · Achieved—LDP has been synchronized. · Max cost—OSPF advertises the maximum cost in LSAs. |
Prefix-SID type |
Prefix SID type: · Absolute—Absolute value of the prefix SID. · Index—Index value of the prefix SID. |
Nexthop |
Next hop address. This field displays 0.0.0.0 for a P2P network. |
Type |
Adjacency SID type: · Absolute—Absolute value of the adjacency SID. · Index—Index value of the adjacency SID. |
Result |
Adjacency SID application result: · Succeeded—Applied for adjacency SID successfully. · Conflicting—Adjacency SID conflict occurred. · Init—Adjacency SID application is in progress or adjacency SID assignment is not enabled. |
Value |
Prefix SID value and flag information: · Explicit-null—The upstream neighbor uses an explicit null flag to replace the prefix SID. · N-flag-clear—The prefix SID is the SID to a group of SR nodes. |
ProcessID |
OSPF process ID specified during prefix SID configuration. |
Prefix-SID validity |
Whether the prefix SID is valid: · Invalid—The prefix SID is invalid. Possible reasons include: ¡ The prefix SID is out of the SRGB range. ¡ The OSPF process ID configured on the loopback interface is different from the OSPF process ID specified during prefix SID configuration. · Valid—The prefix SID is valid. |
display ospf interface hello
Use display ospf interface hello to display information about hello packets sent by OSPF interfaces.
Syntax
display ospf [ process-id ] interface [ interface-type interface-number ] hello
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process ID in the range of 1 to 65535. If you do not specify this argument, the command displays hello packet information for all OSPF processes.
interface-type interface-number: Specifies an interface by its type and number. If you do not specify this argument, the command displays information about the hello packets sent by all OSPF interfaces.
Usage guidelines
This command displays information for only the hello packets sent in multicast.
Examples
# Display information about hello packets sent by all OSPF interfaces.
<Sysname> display ospf interface hello
OSPF Process 1 with Router ID 192.168.1.1
Interfaces
Area: 0.0.0.0
Interface: 172.16.0.1 (Vlan-interface10)
First 4 hello packets sent:
2018-08-05 11:05:10:121, succeeded
2018-08-05 11:05:20:121, succeeded
2018-08-05 11:05:30:121, succeeded
2018-08-05 11:05:40:121, succeeded
Last 4 hello packets sent:
2018-08-06 11:15:10:121, succeeded
2018-08-06 11:15:20:121, succeeded
2018-08-06 11:15:30:121, succeeded
2018-08-06 11:15:40:121, succeeded
Table 17 Command output
Field |
Description |
Area |
Area to which the interface belongs. |
Interface |
IP address of the interface. |
First 4 hello packets sent |
Time and result (succeeded or failed) for sending the first four hello packets. |
Last 4 hello packets sent |
Time and result (succeeded or failed) for sending the last four hello packets when the command is executed. |
display ospf lsdb
Use display ospf lsdb to display OSPF LSDB information.
Syntax
display ospf [ process-id ] lsdb [ brief | originate-router advertising-router-id | self-originate ] [ age { max-value max-age-value | min-value min-age-value } * ] [ resolve-hostname ]
display ospf [ process-id ] lsdb hostname host-name [ age { max-value max-age-value | min-value min-age-value } * ]
display ospf [ process-id ] lsdb { ase | opaque-as } [ link-state-id ] [ originate-router advertising-router-id | self-originate ] [ age { max-value max-age-value | min-value min-age-value } * ] [ resolve-hostname ]
display ospf [ process-id ] lsdb { ase | opaque-as } [ link-state-id ] hostname host-name [ age { max-value max-age-value | min-value min-age-value } * ]
display ospf [ process-id ] [ area area-id ] lsdb { asbr | network | nssa | opaque-area | opaque-link | router | summary } [ link-state-id ] [ originate-router advertising-router-id | self-originate ] [ age { max-value max-age-value | min-value min-age-value } * ] [ resolve-hostname ]
display ospf [ process-id ] [ area area-id ] lsdb { asbr | network | nssa | opaque-area | opaque-link | router | summary } [ link-state-id ] hostname host-name [ age { max-value max-age-value | min-value min-age-value } * ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays LSDB information for all OSPF processes.
age: Displays LSAs whose ages are in the specified range. If you do not specify this keyword, the command displays all LSAs in the LSDB.
max-value max-age-value: Specifies the maximum age of LSAs, in the range of 0 to 3600 seconds. The default value is 3600.
min-value min-age-value: Specifies the minimum age of LSAs, in the range of 0 to 3600 seconds. The default value is 0. The min-age-value cannot be greater than the max-age-value.
area area-id: Specifies an OSPF area by its ID. The area ID is an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format. If you do not specify this option, the command displays LSDB information for all OSPF areas.
brief: Displays brief LSDB information.
asbr: Displays Type-4 LSA (ASBR Summary LSA) information in the LSDB.
ase: Displays Type-5 LSA (AS External LSA) information in the LSDB.
network: Displays Type-2 LSA (Network LSA) information in the LSDB.
nssa: Displays Type-7 LSA (NSSA External LSA) information in the LSDB.
opaque-area: Displays Type-10 LSA (Opaque-area LSA) information in the LSDB.
opaque-as: Displays Type-11 LSA (Opaque-AS LSA) information in the LSDB.
opaque-link: Displays Type-9 LSA (Opaque-link LSA) information in the LSDB.
router: Displays Type-1 LSA (Router LSA) information in the LSDB.
summary: Displays Type-3 LSA (Network Summary LSA) information in the LSDB.
link-state-id: Specifies a link state ID in the IP address format.
originate-router advertising-router-id: Specifies an advertising router by its ID.
self-originate: Displays information about self-originated LSAs.
hostname host-name: Displays LSAs advertised by the router with the specified host name. If you do not specify this option, the command displays all LSAs in the OSPF LSDB.
resolve-hostname: Displays host names in OSPF LSDB information. If you do not specify this keyword, the OSPF LSDB information does not include host names.
Examples
# Display OSPF LSDB information.
<Sysname> display ospf lsdb
OSPF Process 1 with Router ID 192.168.0.1
Link State Database
Area: 0.0.0.0
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 192.168.0.2 192.168.0.2 474 36 80000004 0
Router 192.168.0.1 192.168.0.1 21 36 80000009 0
Network 192.168.0.1 192.168.0.1 321 32 80000003 0
Sum-Net 192.168.1.0 192.168.0.1 321 28 80000002 1
Sum-Net 192.168.2.0 192.168.0.2 474 28 80000002 1
Area: 0.0.0.1
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 192.168.0.1 192.168.0.1 21 36 80000005 0
Sum-Net 192.168.2.0 192.168.0.1 321 28 80000002 2
Sum-Net 192.168.0.0 192.168.0.1 321 28 80000002 1
Type 9 Opaque (Link-Local Scope) Database
Flags: * -Vlink interface LSA
Type LinkState ID AdvRouter Age Len Sequence Interfaces
*Opq-Link 3.0.0.0 7.2.2.1 8 14 80000001 10.1.1.2
*Opq-Link 3.0.0.0 7.2.2.2 8 14 80000001 20.1.1.2
# Display OSPF LSDB information, including the host names of the advertising routers.
<Sysname> display ospf lsdb resolve-hostname
OSPF Process 1 with Router ID 2.2.2.2
Link State Database
Area: 0.0.0.0
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 1.1.1.1 1.1.1.1 1419 36 80000004 0
Router 2.2.2.2 RouterB 1420 36 80000004 0
Network 192.168.12.2 RouterB 1420 32 80000001 0
Sum-Net 192.168.13.0 1.1.1.1 1456 28 80000001 1
Area: 0.0.0.1
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 3.3.3.3 3.3.3.3 1416 36 80000003 0
Router 1.1.1.1 1.1.1.1 1415 36 80000003 0
Network 192.168.13.2 3.3.3.3 1416 32 80000001 0
Sum-Net 192.168.12.0 1.1.1.1 1456 28 80000001 1
Type 10 Opaque (Area-Local Scope) Database
Type LinkState ID AdvRouter Age Len Sequence Area
Opq-Area 4.0.0.0 RouterB 470 32 80000001 0.0.0.0
Table 18 Command output
Field |
Description |
Area |
LSDB information for the area. |
Type |
LSA type. |
LinkState ID |
Link state ID. |
AdvRouter |
Advertising router. |
Age |
Age of the LSA. |
Len |
Length of the LSA. |
Sequence |
Sequence number of the LSA. |
Metric |
Cost of the LSA. |
*Opq-Link |
Opaque LSA generated by a virtual link. |
Opq-Area |
Received Type-10 LSA. |
# Display OSPF brief LSDB information.
<Sysname> display ospf lsdb brief
OSPF Process 1 with Router ID 1.1.1.1
LS Database Statistics
Area ID Router Network S-Net S-ASBR Type-7 | SubTotal
0.0.0.0 2 1 1 0 0 | 4
0.0.0.1 2 1 3 0 2 | 8
Total 4 2 4 0 2 |
-------------------------------------------------------------+---------
Area ID Opq-9 Opq-10 | SubTotal
0.0.0.0 0 9 | 9
0.0.0.1 0 4 | 4
Total 0 13 |
-------------------------------------------------------------+---------
ASE Opq-11 | SubTotal
Total 1 0 | 1
-------------------------------------------------------------+---------
| Total
| 26
Table 19 Command output
Field |
Description |
Router |
Number of Type-1 LSAs. |
Network |
Number of Type-2 LSAs. |
S-Net |
Number of Type-3 LSAs. |
S-ASBR |
Number of Type-4 LSAs. |
Type-7 |
Number of Type-7 LSAs. |
Opq-9 |
Number of Type-9 LSAs. |
Opq-10 |
Number of Type-10 LSAs. |
ASE |
Number of Type-5 LSAs. |
Opq-11 |
Number of Type-11 LSAs. |
SubTotal |
Total number of LSAs in the same area. |
Total |
Total number of LSAs that are of the same type, or total number of LSAs. |
# Display Type-2 LSA information in the LSDB.
<Sysname> display ospf 1 lsdb network
OSPF Process 1 with Router ID 192.168.1.1
Link State Database
Area: 0.0.0.0
Type : Network
LS ID : 192.168.0.2
Adv Rtr : 192.168.2.1
LS age : 922
Len : 32
Options : E
Seq# : 80000003
Checksum : 0x8d1b
Net Mask : 255.255.255.0
Attached Router 192.168.1.1
Attached Router 192.168.2.1
Area: 0.0.0.1
Type : Network
LS ID : 192.168.1.2
Adv Rtr : 192.168.1.2
LS age : 782
Len : 32
Options : NP
Seq# : 80000003
Checksum : 0x2a77
Net Mask : 255.255.255.0
Attached Router 192.168.1.1
Attached Router 192.168.1.2
# Display Type-2 LSA information in the LSDB, including the host names of the advertising routers.
<Sysname> display ospf 1 lsdb network resolve-hostname
OSPF Process 1 with Router ID 2.2.2.2
Link State Database
Area: 0.0.0.0
Type : Network
LS ID : 192.168.12.2
Adv Rtr : 2.2.2.2
Hostname : RouterB
LS age : 1552
Len : 32
Options : O E
Seq# : 80000001
Checksum : 0xbdd0
Net Mask : 255.255.255.0
Attached Router 1.1.1.1
Attached Router 2.2.2.2
Area: 0.0.0.1
Type : Network
LS ID : 192.168.13.2
Adv Rtr : 3.3.3.3
LS age : 1548
Len : 32
Options : O E
Seq# : 80000001
Checksum : 0xc6be
Net Mask : 255.255.255.0
Attached Router 1.1.1.1
Attached Router 3.3.3.3
Table 20 Command output
Field |
Description |
Type |
LSA type. |
LS ID |
DR IP address. |
Adv Rtr |
Router that advertised the LSA. |
Hostname |
Host name of the advertising router. |
LS age |
LSA age time. |
Len |
LSA length. |
Options |
LSA options: · O—Opaque LSA advertisement capability. · E—AS External LSA reception capability. · EA—External extended LSA reception capability. · DC—On-demand link support. · NP—N indicates support for NSSA external LSAs. P indicates the capability of an NSSA ABR to translate Type-7 LSAs into Type-5 LSAs. |
Seq# |
LSA sequence number. |
Checksum |
LSA checksum. |
Net Mask |
Network mask. |
Attached Router |
ID of the router that established adjacency with the DR, and ID of the DR itself. |
# Display Type-9 LSA information in the LSDB for OSPF process 1.
<Sysname> display ospf 1 lsdb opaque-link
OSPF Process 1 with Router ID 1.1.1.1
Link State Database
Area: 0.0.0.0
Type : Opq-Link
LS ID : 3.0.0.0
Adv Rtr : 1.1.1.1
LS age : 2
Len : 44
Options : O E
Seq# : 80000001
Checksum : 0x31cf
Opaque type: 3(Grace LSA)
Opaque ID: 0
IETF Graceful Restart Period: 120
Restart Reason: 1 - software restart
Neighbor Interface Address : 192.168.12.1
# Display Type-10 LSA information in the LSDB for OSPF process 1.
<Sysname> display ospf 1 lsdb opaque-area
OSPF Process 1 with Router ID 2.2.2.2
Link State Database
Area: 0.0.0.0
Type : Opq-Area
LS ID : 4.0.0.0
Adv Rtr : 1.1.1.1
LS age : 1311
Len : 52
Options : O E
Seq# : 8000015c
Checksum : 0x4323
Opaque type: 4(Router information)
Opaque ID: 0
Router information TLV:
Length : 4
Capabilities:
All Capability Bits: 0x60000000
Graceful restart helper capable
Stub router capable
Segment routing algorithm TLV:
Length : 1
Algorithm: 0
Segment routing range TLV:
Length: 12
Range : 1001
SID sub-TLV:
Length: 3
Label : 16000
Type : Opq-Area
LS ID : 7.0.0.0
Adv Rtr : 1.1.1.1
LS age : 1311
Len : 44
Options : O E
Seq# : 8000012f
Checksum : 0xabcf
Opaque type: 7(Extended prefix)
Opaque ID: 0
Extended prefix TLV:
Length : 20
Route type: 1
AF : 0
Flags : N
Prefix : 23.1.1.1/32
SID sub-TLV:
Length : 8
Flags : NP/-/E/-/-
MTID : 0
Algorithm : 0
SID index : 101
LAN adj sub-TLV:
Length : 11
Flags (B/V/L/G/P): 0/1/1/0/0
MTID : 0
Weight : 0
Neighbor ID: 1.1.1.1
Label : 1279
# Display Type-11 LSA information in the LSDB for OSPF process 1.
<Sysname> display ospf lsdb opaque-as
OSPF Process 1 with Router ID 1.1.1.1
Link State Database
Type : Opq-AS
LS ID : 4.0.0.0
Adv Rtr : 1.1.1.1
LS Age : 10
Len : 32
Options : O E
Seq# : 80000001
Checksum : 0x3ca5
Opaque Type: 4(Router Information)
Opaque ID: 0
HostName: device1
Table 21 Command output
Field |
Description |
Type |
LSA type: · Opq-Link—Type-9 LSA, which is flooded on the local link. · Opq-Area—Type-10 LSA, which is flooded within an area. · Opq-AS—Type-11 LSA, which is flooded within an AS. |
LS ID |
LSA link state ID, a combination of the opaque type and the opaque ID. The first 8 bits indicates the opaque type and the last 24 bits indicates the opaque ID. |
Adv Rtr |
Router that advertised the LSA. |
Hostname |
Host name of the router that advertised the LSA. |
LS age |
LSA aging time. |
Len |
LSA length. |
Options |
· O—Opaque LSA advertisement capability. · E—AS External LSA reception capability. · L—Signaling capability of the local link. · DC—On-demand link support. · NP—N indicates support for NSSA external LSAs. P indicates the capability of an NSSA ABR to translate Type-7 LSAs into Type-5 LSAs. |
Seq# |
LSA sequence number. |
Checksum |
LSA checksum. |
Opaque type |
Opaque type: · 1(Traffic Engineering)—Opaque LSAs used for MPLS TE. · 3(Grace LSA)—Opaque LSAs used for GR. · 4(Router information)—Opaque LSAs used for route capability advertisement. · 7(Extended prefix)—Opaque LSAs used for SID or MPLS label advertisement. · 8(Extended link)—Opaque LSAs used for extended link information advertisement. |
Opaque ID |
Opaque ID |
IETF Graceful Restart Period |
GR restart interval in seconds. |
Restart Reason |
GR restart reason: · 0 - unknown. · 1 - software restart. · 2 - software reload/upgrade. · 3 - switch to redundant control processor. |
Neighbor Interface Address |
IP address of the local interface used for neighbor relationship establishment. |
Router information TLV |
Router capability TLV information. |
Length |
TLV length in bytes. |
Range size |
Number of continuous SIDs to allocate. |
Capabilities |
Router capabilities. |
All capability bits |
All capability bits, indicating the features that the device supports. |
Algorithm |
Prefix related algorithm. |
Range |
Label range. |
SID sub-TLV |
Prefix SID sub-TLV. |
Label |
Minimum label value. |
Route type |
Route type: · 1—Intra-area route. · 3—Inter-area route. |
AF |
Address family information. |
Flags |
Prefix SID flag: · A—Attach flag (A-Flag), indicating the inter-area prefix is generated by the ABR. · N—Node flag (N-Flag), indicating the prefix SID is the SID to an SR node. |
Prefix |
Prefix information. |
SID sub-TLV |
Prefix SID sub-TLV length. |
Flags |
Flag carried in the prefix SID sub-TLV: · NP—No-PHP flag. The penultimate node cannot pop the prefix SID. · E—Explicit null flag. The upstream neighbor must replace the SID with an explicit null flag before forwarding the packets. · V—Value/Index flag. The value of the prefix SID is an absolute value. |
MTID |
Multi-topology ID. |
Algorithm |
Prefix related algorithm. |
SID index |
Index value of the prefix SID |
Local block TLV |
SRLB TLV. |
Length |
TLV length in bytes. |
SRLB base |
Minimum label value in the SRLB range. |
SRLB range |
Number of labels in the SRLB range. |
LAN adj sub-TLV |
LAN adjacency SID advertisement sub-TLV: · Length—Sub-TLV length in bytes. · Flags—Flag information: ¡ B—Backup flag. If this bit is set, the adjacency SID is used to protect other nodes. ¡ V—Value/index flag. This field displays V if this bit is set, which indicates that the adjacency SID carries the label value. ¡ L—Local/global flag. If this bit is set, the value/index in the adjacency SID has local significance. ¡ G—Group flag. If this bit is set, The adjacency SID represents an adjacency group. ¡ P—Persistent flag. If this bit is set, the ADJ-SID is valid permanently. · MTID—Multi-topology ID. · Weight—Weight. · Neighbor ID—Router ID of the neighbor. · Label—Label value. |
display ospf nexthop
Use display ospf nexthop to display OSPF next hop information.
Syntax
display ospf [ process-id ] nexthop
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays next hop information for all OSPF processes.
Examples
# Display OSPF next hop information.
<Sysname> display ospf nexthop
OSPF Process 1 with Router ID 1.1.1.2
Neighbor Nexthop Information
NbrID Nexthop Interface RefCount Status
192.168.12.1 0.0.0.0 Vlan10 4 Valid
192.168.12.2 192.168.12.2 Vlan10 3 Valid
192.168.12.1 0.0.0.0 Loop100 1 Valid
Table 22 Command output
Field |
Description |
NbrID |
Neighbor router ID. |
Nexthop |
Next hop address. |
Interface |
Output interface. |
RefCount |
Reference count (routes that use the next hop). |
Status |
Next hop status: · Valid. · Invalid. · Valid-SR—The next hop type is SR tunnel that has taken effect. · Invalid-SR—The next hop type is SR tunnel that has not taken effect. |
display ospf peer
Use display ospf peer to display information about OSPF neighbors.
Syntax
display ospf [ process-id ] peer [ hello | verbose ] [ interface-type interface-number ] [ [ neighbor-id ] [ resolve-hostname ] | hostname host-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by ID in the range of 1 to 65535. If you do not specify this argument, the command displays OSPF neighbor information for all OSPF processes.
hello: Displays information about the hello packets sent to and received from neighbor routers. In scenarios where hello packets are sent in multicast, the command displays information for only the hello packets received from neighbor routers.
verbose: Displays detailed neighbor information. If you do not specify this keyword, the command displays brief OSPF neighbor information.
interface-type interface-number: Specifies an interface by its type and number. If you do not specify this argument, the command displays neighbor information for all interfaces.
neighbor-id: Specifies a neighbor router ID. If you do not specify this argument, the command displays all neighbor information.
resolve-hostname: Resolves the host names of the neighbor routers. If you do not specify this keyword, the command cannot resolve the host names of the neighbor routers.
hostname host-name: Specifies a neighbor router by its host name, a case-sensitive string of 1 to 255 characters. If you do not specify this option, the command displays information for all neighbors.
Examples
# Display detailed OSPF neighbor information.
<Sysname> display ospf peer verbose
OSPF Process 1 with Router ID 1.1.1.1
Neighbors
Area 0.0.0.0 interface 1.1.1.1(Vlan-interface100)'s neighbors
Router ID: 1.1.1.2 Address: 1.1.1.2 GR State: Normal
State: Full Mode: Nbr is master Priority: 1
DR: 1.1.1.2 BDR: 1.1.1.1 MTU: 0
Options is 0x02 (-|-|-|-|-|-|E|-)
Dead timer due in 33 sec
Neighbor is up for 02:03:35
Authentication Sequence: [ 0 ]
Neighbor state change count: 6
BFD status: Disabled
Adjacency SID: 24253
Last Neighbor Down Event:
Router ID: 22.22.22.22
Local Address: 11.11.11.11
Remote Address: 22.22.22.22
Time: Apr 9 03:18:19 2014
Reason: Ospf_ifachange
# Display detailed OSPF neighbor information and resolve the host names of the neighbor routers.
<Sysname> display ospf peer verbose resolve-hostname
Area 0.0.0.1 interface 1.1.1.2(Vlan-interface100)'s neighbors
Router ID: 3.3.3.3 Address: 13.1.1.2 GR State: Normal
Hostname: RouterA
State: Full Mode: Nbr is slave Priority: 1
DR: 13.1.1.2 BDR: 13.1.1.1 MTU: 0
Options is 0x42 (-|O|-|-|-|-|E|-)
Dead timer due in 31 sec
Neighbor is up for 00:04:42
Authentication sequence: [ 0 ]
Neighbor state change count: 5
BFD status: Disabled
Adjacency SID: 24253
Last Neighbor Down Event:
Router ID: 3.3.3.3
Local Address: 13.1.1.1
Remote Address: 13.1.1.2
Time: Jun 15 16:13:29 2016
Reason: Reset ospf command was performed
Table 23 Command output
Field |
Description |
Area areaID interface IPAddress(InterfaceName)'s neighbors |
Neighbor information for the interface in the specified area: · areaID—Area to which the neighbor belongs. · IPAddress—Interface IP address. · InterfaceName—Interface name. |
Router ID |
Neighbor router ID. |
Address |
Neighbor router address. |
GR State |
GR state: · Normal. · Restarter. · Complete. · Helper. |
Hostname |
Host name of the neighbor router. |
State |
Neighbor state: · Down—Initial state of a neighbor conversation. · Init—The router has received a Hello packet from the neighbor. However, the router has not established bidirectional communication with the neighbor. The router did not appear in the neighbor's hello packet. · Attempt—Available only in an NBMA network. In this state, the OSPF router has not received any information from a neighbor for a period. The router can send Hello packets at a longer interval to keep the neighbor relationship. · 2-Way—Communication between the two routers is bidirectional. The local router appears in the neighbor's Hello packet. · Exstart—The goal of this state is to decide which router is the master, and to decide upon the initial Database Description (DD) sequence number. · Exchange—The router is sending DD packets to the neighbor, describing its entire link-state database. · Loading—The router sends LSRs packets to the neighbor, requesting more recent LSAs. · Full—The neighboring routers are fully adjacent. |
Mode |
Neighbor mode for LSDB synchronization. |
Priority |
Neighboring router priority. |
DR |
DR on the interface's network segment. |
BDR |
BDR on the interface's network segment. |
MTU |
Interface MTU. |
Options |
LSA options: · O—Opaque LSA advertisement capability. · E—AS External LSA reception capability. · EA—External extended LSA reception capability. · DC—On-demand link support. · N/P—N indicates support for NSSA external LSAs. P indicates the capability of an NSSA ABR to translate Type-7 LSAs into Type-5 LSAs. |
Dead timer due in 33 sec |
This dead timer will expire in 33 seconds. |
Neighbor is up for 02:03:35 |
The neighbor has been up for 02:03:35. |
Authentication Sequence |
Authentication sequence number. |
Neighbor state change count |
Count of neighbor state changes. |
BFD status |
BFD status: · Disabled. · Enabled (Control mode). · Enabled (Echo mode). |
Adjacency SID |
SID advertised by the adjacency path. |
Last Neighbor Down Event |
The most recent neighbor down event. |
Time |
Time when the neighbor went down, in MM DD hh:mm:ss YYYY format. · MM—Represents the month. · DD—Represents the day. · hh—Represents the hours. · mm—Represents the minutes. · ss—Represents the seconds. · YYYY—Represents the year. |
Reason |
Reason for the neighbor down event: · Ospf_resetconnect—The neighbor relationship was down due to memory insufficiency. · Ospf Interface Parameters Changed—The interface settings were changed. · VLINK Interface Parameters Changed—The virtual link settings were changed. · SHAMLINK Interface Parameters Changed—The sham link settings were changed. · Reset ospf command was performed—The reset ospf process command was executed. · Undo ospf command was performed—The undo ospf command was executed. · Undo area command was performed—The undo area command was executed. · Undo network—The undo network command was executed. · Silent Interface—The silent interface command was executed. · Ospf_iflchange—The logical attribute of the interface was changed. · Ospf_ifachange—The physical attribute of the interface was changed. · Ospf_ifvchange—The virtual link attribute of the interface was changed. · Vlink down—The virtual link went down. · Shamlink down—The sham link went down. · DeadInterval timer expired—The dead timer expired. · Configuring stub area—The stub area settings were changed. · Configuring nssa area—The NSSA area settings were changed. · Area Authentication-mode changed—The area authentication mode was changed. · Opaque-Capability changed—The Opaque capability was changed. · Too many retransmissions—Excessive retransmissions. · Link-local-Signaling Capability changed—The LLS capability was changed. · Out-Of-Band Resynchronazition Capability changed—The OOB capability was changed. · Graceful-Restart Capability changed—The GR capability was changed. · BFD session down—The BFD session associated with OSPF went down. · Database-filter or referenced ACL changed—The LSA filter settings on the specified interface were changed or the ACL used by the LSA filter was changed. · shutdown—The shutdown process command is executed. |
# Display brief OSPF neighbor information.
<Sysname> display ospf peer
OSPF Process 1 with Router ID 1.1.1.1
Neighbor Brief Information
Area: 0.0.0.0
Router ID Address Pri Dead-Time State Interface
1.1.1.2 1.1.1.2 1 40 Full/DR Vlan10
Sham link: 11.11.11.11 -> 22.22.22.22
Router ID Address Pri Dead-Time State
22.22.22.22 22.22.22.22 1 36 Full
# Display brief OSPF neighbor information and resolve the host names of the neighbor routers.
<Sysname> display ospf peer resolve-hostname
OSPF Process 1 with Router ID 1.1.1.1
Neighbor Brief Information
Area: 0.0.0.0
Router ID Address Pri Dead-Time State Interface
RouterA 1.1.1.2 1 34 Full/DR Vlan10
Sham link: 11.11.11.11 -> 22.22.22.22
Router ID Address Pri Dead-Time State
22.22.22.22 22.22.22.22 1 36 Full
Table 24 Command output
Field |
Description |
Area |
Neighbor area. |
Router ID |
ID or host name of the neighbor router. |
Address |
Neighbor interface address. |
Pri |
Neighboring router priority. |
Dead-Time |
Dead interval remained. |
Interface |
Interface connected to the neighbor. |
State |
Neighbor state: Down, Init, Attempt, 2-Way, Exstart, Exchange, Loading, or Full. |
Sham link 11.11.11.11 -> 22.22.22.22 |
Sham link from 11.11.11.11 to 22.22.22.22. |
# Display information about the hello packets sent to and received from neighbor routers.
<Sysname> display ospf peer hello
OSPF Process 1 with Router ID 1.1.1.1
Neighbors
Area 0.0.0.0 interface 1.1.1.1(Vlan-interface10)'s neighbors
Router ID: 1.1.1.2 Address: 1.1.1.2
First 4 hello packets received:
2018-01-06 09:12:10:121
2018-01-06 09:12:20:121
2018-01-06 09:12:30:121
2018-01-06 09:12:40:121
Last 4 hello packets received:
2018-01-06 11:15:10:121
2018-01-06 11:15:20:121
2018-01-06 11:15:30:121
2018-01-06 11:15:40:121
First 4 hello packets sent:
2018-01-06 09:12:12:121, failed, errno:132
2018-01-06 09:12:22:121, succeeded
2018-01-06 09:12:32:121, succeeded
2018-01-06 09:12:42:121, succeeded
Last 4 hello packets sent:
2018-01-06 11:15:12:121, succeeded
2018-01-06 11:15:22:121, succeeded
2018-01-06 11:15:32:121, failed, errno:132
2018-01-06 11:15:42:121, failed, errno:132
Table 25 Command output
Field |
Description |
Router ID |
Router ID of the neighbor. |
Address |
IP address of the neighbor interface. |
First 4 hello packets received |
Time for receiving the first four hello packets from neighbors. |
Last 4 hello packets received |
Time for receiving the last four hello packets from neighbors. |
First 4 hello packets sent |
Time and result (succeeded or failed) for sending the first four hello packets to neighbors. For a packet failed to be sent, an error code is displayed in the errno field. Error codes and corresponding failure reasons are as follows: · 4—EINTR. Interrupted system call. · 9—EBADF. Bad file descriptor. · 11—EAGAIN. Resource temporarily unavailable. · 12—ENOMEM. Cannot allocate memory. · 32—EPIPE. Broken pipe. · 88—ENOTSOCK. Socket operation on non-socket. · 90—EMSGSIZE. Message too long. · 95—EOPNOTSUPP. Operation not supported. · 104—ECONNRESET. Connection reset by peer. · 107—ENOTCONN. Transport endpoint is not connected. · 113—EHOSTUNREACH. No route to host. · 132—ENOBUFS. No buffer space available. This field is not displayed in scenarios where hello packets are sent in multicast. |
Last 4 hello packets sent |
Time and result (succeeded or failed) for sending the last four hello packets to neighbors when the command is executed. For a packet failed to be sent, an error code is displayed in the errno field. Error codes and corresponding failure reasons are as follows: · 4—EINTR. Interrupted system call. · 9—EBADF. Bad file descriptor. · 11—EAGAIN. Resource temporarily unavailable. · 12—ENOMEM. Cannot allocate memory. · 32—EPIPE. Broken pipe. · 88—ENOTSOCK. Socket operation on non-socket. · 90—EMSGSIZE. Message too long. · 95—EOPNOTSUPP. Operation not supported. · 104—ECONNRESET. Connection reset by peer. · 107—ENOTCONN. Transport endpoint is not connected. · 113—EHOSTUNREACH. No route to host. · 132—ENOBUFS. No buffer space available. This field is not displayed in scenarios where hello packets are sent in multicast. |
display ospf peer statistics
Use display ospf peer statistics to display OSPF neighbor statistics.
Syntax
display ospf [ process-id ] peer statistics
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays OSPF neighbor statistics for all OSPF processes.
Examples
# Display OSPF neighbor statistics.
<Sysname> display ospf peer statistics
OSPF Process 1 with Router ID 10.3.1.1
Neighbor Statistics
Area ID Down Attempt Init 2-Way ExStart Exchange Loading Full Total
0.0.0.0 0 0 0 0 0 0 0 1 1
0.0.0.2 0 0 0 0 0 0 0 1 1
Total 0 0 0 0 0 0 0 2 2
Sham links' neighbors (Total: 1):
Down: 0, Init: 0, 2-Way: 0, ExStart: 0, Exchange: 0, Loading: 0, Full: 1
Table 26 Command output
Field |
Description |
Area ID |
The state statistics for all the routers in the area to which the router belongs is displayed. |
Down |
Number of neighboring routers in Down state in the same area. |
Attempt |
Number of neighboring routers in Attempt state in the same area. |
Init |
Number of neighboring routers in Init state in the same area. |
2-Way |
Number of neighboring routers in 2-Way state in the same area. |
ExStart |
Number of neighboring routers in ExStart state in the same area. |
Exchange |
Number of neighboring routers in Exchange state in the same area. |
Loading |
Number of neighboring routers in Loading state in the same area. |
Full |
Number of neighboring routers in Full state in the same area. |
Total |
Total number of neighbors in the same state: Down, Attempt, Init, 2-Way, ExStart, Exchange, Loading, or Full. |
Sham links' neighbors |
Statistics about sham links' neighbors. |
display ospf request-queue
Use display ospf request-queue to display OSPF request queue information.
Syntax
display ospf [ process-id ] request-queue [ interface-type interface-number ] [ neighbor-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays the OSPF request queue information for all OSPF processes.
interface-type interface-number: Specifies an interface by its type and number. If you do not specify this argument, the command displays the OSPF request queue information for all interfaces.
neighbor-id: Specifies a neighbor's router ID. If you do not specify this argument, the command displays the OSPF request queue information for all OSPF neighbors.
Examples
# Display OSPF request queue information.
<Sysname> display ospf request-queue
OSPF Process 100 with Router ID 192.168.1.59
Link State Request List
The Router's Neighbor is Router ID 2.2.2.2 Address 10.1.1.2
Interface 10.1.1.1 Area 0.0.0.0
Request list:
Type LinkState ID AdvRouter Sequence Age
Router 2.2.2.2 1.1.1.1 80000004 1
Network 192.168.0.1 1.1.1.1 80000003 1
Sum-Net 192.168.1.0 1.1.1.1 80000002 2
Table 27 Command output
Field |
Description |
The Router's Neighbor is Router ID |
Neighbor router ID. |
Address |
Neighbor interface IP address. |
Interface |
Local interface IP address. |
Area |
Area ID. |
Retransmit list |
Request list information. |
Type |
LSA type. |
LinkState ID |
Link state ID. |
AdvRouter |
Advertising router. |
Sequence |
LSA sequence number. |
Age |
LSA age. |
display ospf retrans-queue
Use display ospf retrans-queue to display retransmission queue information.
Syntax
display ospf [ process-id ] retrans-queue [ interface-type interface-number ] [ neighbor-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays retransmission queue information for all OSPF processes.
interface-type interface-number: Specifies an interface by its type and number. If you do not specify this argument, the command displays retransmission queue information for all interfaces.
neighbor-id: Specifies a neighbor's router ID. If you do not specify this argument, the command displays retransmission queue information for all neighbors.
Examples
# Display OSPF retransmission queue information.
<Sysname> display ospf retrans-queue
OSPF Process 100 with Router ID 192.168.1.59
Link State Retransmission List
The Router's Neighbor is Router ID 2.2.2.2 Address 10.1.1.2
Interface 10.1.1.1 Area 0.0.0.0
Retransmit list:
Type LinkState ID AdvRouter Sequence Age
Router 2.2.2.2 2.2.2.2 80000004 1
Network 12.18.0.1 2.2.2.2 80000003 1
Sum-Net 12.18.1.0 2.2.2.2 80000002 2
Table 28 Command output
Field |
Description |
The Router's Neighbor is Router ID |
Neighbor router ID. |
Address |
Neighbor interface IP address. |
Interface |
Interface address of the router. |
Area |
Area ID. |
Retrans List |
Retransmission list. |
Type |
LSA type. |
LinkState ID |
Link state ID. |
AdvRouter |
Advertising router. |
Sequence |
LSA sequence number. |
Age |
LSA age. |
display ospf routing
Use display ospf routing to display OSPF routing information.
Syntax
display ospf [ process-id ] routing [ ip-address { mask-length | mask } ] [ interface interface-type interface-number ] [ nexthop nexthop-address ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays the routing information for all OSPF processes.
ip-address: Specifies a destination IP address.
mask-length: Specifies mask length in the range of 0 to 32.
mask: Specifies the mask in dotted decimal notation.
interface interface-type interface-number: Displays routes passing the specified output interface. If you do not specify this option, the command displays OSPF routing information for all interfaces.
nexthop nexthop-address: Displays routes passing the specified next hop. If you do not specify this option, the command displays all OSPF routing information.
verbose: Displays detailed OSPF routing information. If you do not specify this keyword, the command displays brief OSPF routing information.
Examples
# Display OSPF routing information.
<Sysname> display ospf routing
OSPF Process 1 with Router ID 192.168.1.2
Routing Table
Routing for network
Destination Cost Type NextHop AdvRouter Area
192.168.1.0/24 1562 Stub 192.168.1.2 192.168.1.2 0.0.0.0
172.16.0.0/16 1563 Inter 192.168.1.1 192.168.1.1 0.0.0.0
Total nets: 2
Intra area: 1 Inter area: 1 ASE: 0 NSSA: 0
Table 29 Command output
Field |
Description |
Destination |
Destination network. |
Cost |
Cost to destination. |
Type |
Route type: transit, stub, inter, Type-1, and Type-2. |
NextHop |
Next hop address. |
AdvRouter |
Advertising router. |
Area |
Area ID. |
Total nets |
Total networks. |
Intra area |
Total intra-area routes. |
Inter area |
Total inter-area routes. |
ASE |
Total ASE routes. |
NSSA |
Total NSSA routes. |
# Display detailed OSPF routing information.
<Sysname> display ospf routing verbose
OSPF Process 2 with Router ID 192.168.1.112
Routing Table
Routing for network
Destination: 192.168.1.0/24
Priority: Low Type: Stub
AdvRouter: 192.168.1.2 Area: 0.0.0.0
SubProtoID: 0x1 Preference: 10
NextHop: 192.168.1.2 BkNextHop: N/A
IfType: Broadcast BkIfType: N/A
Interface: Vlan100 BkInterface: N/A
NibID: 0x1300000c Status: Normal
Cost: 1562
InLabel: 4294967295 Tunnel type: -
OutLabel: 4294967295 OutLabel flag: -
BkOutLabel: 4294967295 BkOutLabel flag: -
Destination: 172.16.0.0/16
Priority: Low Type: Inter
AdvRouter: 192.168.1.1 Area: 0.0.0.0
SubProtoID: 0x1 Preference: 10
NextHop: 192.168.1.1 BkNextHop: N/A
IfType: Broadcast BkIfType: N/A
Interface: Vlan101 BkInterface: N/A
NibID: 0x1300000c Status: Normal
Cost: 1563
InLabel: 4294967295 Tunnel type: -
OutLabel: 4294967295 OutLabel flag: -
BkOutLabel: 4294967295 BkOutLabel flag: -
Destination: 91.1.0.0/16
Priority: Low Type: Type2
AdvRouter: 2.2.2.2 Tag: 0
SubProtoID: 0x8 Preference: 150
NextHop: 21.41.0.2 BkNextHop: N/A
IfType: PTP BkIfType: N/A
Interface: Vlan300 BkInterface: N/A
NibID: 0x13000003 Status: Normal
Cost: 1 ECMP group: 0x1300001a
InLabel: 4294967295 Tunnel type: -
OutLabel: 4294967295 OutLabel flag: -
BkOutLabel: 4294967295 BkOutLabel flag: -
Destination: 91.1.0.0/16
Priority: Low Type: Type2
AdvRouter: 3.3.3.3 Tag: 0
SubProtoID: 0x8 Preference: 150
NextHop: 31.41.0.3 BkNextHop: N/A
IfType: PTP BkIfType: N/A
Interface: Vlan200 BkInterface: N/A
NibID: 0x13000005 Status: Normal
Cost: 1 ECMP group: 0x1300001a
InLabel: 4294967295 Tunnel type: -
OutLabel: 4294967295 OutLabel flag: -
BkOutLabel: 4294967295 BkOutLabel flag: -
Total nets: 4
Intra area: 2 Inter area: 0 ASE: 2 NSSA: 0
Table 30 Command output
Field |
Description |
Priority |
Prefix priority: critical, high, medium, and low. |
Type |
Route type: Transit, Stub, Inter, Type1, or Type2. |
AdvRouter |
Advertising router. |
Area |
Area ID. |
SubProtoID |
Sub protocol ID. |
Preference |
OSPF route preference. |
NextHop |
Primary next hop IP address. |
BkNextHop |
Backup next hop IP address. |
IfType |
Type of the network to which the primary next hop belongs. |
BkIfType |
Type of the network to which the backup next hop belongs. |
Interface |
Output interface. |
BkInterface |
Backup output interface. |
NibID |
Next hop ID. |
Status |
Route status: · Local—The route is on the local end and is not sent to the route management module. · Invalid—The next hop is invalid. · Stale—The next hop is stale. · Normal—The route is available. · Delete—The route is deleted. · Host-Adv—The route is a host route. · Rely—The route is a recursive route. |
Cost |
Cost to destination. |
ECMP group |
ECMP route group ID. This field is displayed only when ECMP route groups exist. |
InLabel |
Incoming label of the route. For invalid incoming labels, this field displays 4294967295. |
Tunnel type |
Tunnel type. Only SR (which means SR tunnel) is supported in the current software version. |
OutLabel |
Outgoing label of the route. For invalid outgoing labels, this field displays 4294967295. |
OutLabel flag |
Outgoing label flag: · E—Explicit null flag. The upstream neighbor must replace the SID with an explicit null flag before forwarding the packets. · I—Implicit null flag. The upstream neighbor must replace the SID with an implicit null flag before forwarding the packets. This flag is not supported in the current software version. · N—Normal flag. · P—SR label preferred flag. |
BkOutLabel |
Backup outgoing label of the route. For invalid backup outgoing labels, this field displays 4294967295. |
BkOutLabel flag |
Backup outgoing label flag: · E—Explicit null flag. The upstream neighbor must replace the SID with an explicit null flag before forwarding the packets. · I—Implicit null flag. The upstream neighbor must replace the SID with an implicit null flag before forwarding the packets. · N—Normal flag. · P—SR label preferred flag. |
LabelSrc |
Label source: · SR—Assigned by an SR node. · SRMS—Assigned by the Segment Routing Mapping Server (SRMS). |
DelayFlag |
Microloop avoidance delay flag: · D—Microloop avoidance is configured. Route convergence is delayed. · N/A—Microloop avoidance is not configured or the microloop avoidance delay timer has expired. Route convergence is in progress. |
MALsIndex |
SR microloop avoidance label stack index. |
MALabelStack |
SR microloop avoidance label stack (from top to bottom). |
Remote-LFA back Info |
Remote LFA backup information. |
PQPrefix |
PQ node prefix. |
PQAdvID |
Router ID of the PQ node. |
LsIndex |
Label stack index. |
LabelStack |
Label stack. |
TI-LFA backup info |
TI-LFA backup information. |
PNodePrefix |
P node prefix. |
QNodeAdvID |
Router ID of the Q node. |
display ospf spf-tree
Use display ospf spf-tree to display SPF tree information.
Syntax
display ospf [ process-id ] [ area area-id ] spf-tree [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify a process, this command displays SPF tree information for all OSPF processes.
area area-id: Specifies an OSPF area by its ID. The area ID is an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format. If you do not specify an area, this command displays SPF tree information for all OSPF areas.
verbose: Displays detailed SPF tree information. If you do not specify this keyword, the command displays brief SPF tree information.
Examples
# Display brief SPF tree information for Area 0 in OSPF process 1.
<Sysname> display ospf 1 area 0 spf-tree
OSPF Process 1 with Router ID 100.0.0.4
Flags: S-Node is on SPF tree R-Node is directly reachable
I-Node or Link is init D-Node or Link is to be deleted
P-Neighbor is parent A-Node is in candidate list
C-Neighbor is child T-Node is tunnel destination
H-Nexthop changed N-Link is a new path
V-Link is involved G-Link is in change list
Area: 0.0.0.0 Shortest Path Tree
SpfNode Type Flag SpfLink Type Cost Flag
>192.168.119.130 Network S R
-->114.114.114.111 NET2RT 0 C
-->100.0.0.4 NET2RT 0 P
>114.114.114.111 Router S
-->192.168.119.130 RT2NET 65535 P
>100.0.0.4 Router S
-->192.168.119.130 RT2NET 10 C
Table 31 Command output
Field |
Description |
SpfNode |
SPF node, represented by a router ID when the node type is Router, or the IP address of the DR when the node type is Network. Node flag: · I—The node is in initialization state. · A—The node is on the candidate list. · S—The node is on the SPF tree. · R—The node is directly connected to the root node. · D—The node is to be deleted. · T—The node is the tunnel destination. |
SpfLink |
SPF link, representing the peer node. Link type: · RT2RT—Router to router. · NET2RT—Network to router. · RT2NET—Router to network. Link flag: · I—The link is in initialization state. · P—The peer is the parent node. · C—The peer is the child node. · D—The link is to be deleted. · H—The next hop is changed. · V—When the peer node is deleted or added, the peer node is not on the SPF tree or is deleted. · N—The link is newly added, and both end nodes are on the SPF tree. · G—The link is on the area change list. |
# Display detailed SPF tree information for Area 0 in OSPF process 1.
<Sysname> display ospf 1 area 0 spf-tree verbose
OSPF Process 1 with Router ID 100.0.0.4
Flags: S-Node is on SPF tree R-Node is directly reachable
I-Node or Link is init D-Node or Link is to be deleted
P-Neighbor is parent A-Node is in candidate list
C-Neighbor is child T-Node is tunnel destination
H-Nexthop changed N-Link is a new path
V-Link is involved G-Link is in change list
Area: 0.0.0.0 Shortest Path Tree
>LsId(192.168.119.130)
AdvId : 100.0.0.4 NodeType : Network
Mask : 255.255.255.0 SPFLinkCnt : 2
Distance : 10
VlinkData: 0.0.0.0 ParentLinkCnt: 1 NodeFlag: S R
NextHop : 1
192.168.119.130 Interface: Vlan100 Flag: -
BkNextHop: 1
0.0.0.0 Interface: Vlan100 Flag: -
-->LinkId(114.114.114.111)
AdvId : 100.0.0.4 LinkType : NET2RT
LsId : 192.168.119.130 LinkCost : 0 NextHopCnt: 1
LinkData: 0.0.0.0 LinkNewCost: 0 LinkFlag : C
-->LinkId(100.0.0.4)
AdvId : 100.0.0.4 LinkType : NET2RT
LsId : 192.168.119.130 LinkCost : 0 NextHopCnt: 1
LinkData: 0.0.0.0 LinkNewCost: 0 LinkFlag : P
Table 32 Command output
Field |
Description |
LsId |
Link state ID. |
AdvId |
ID of the advertising router. |
NodeType |
Node type: · Network—Network node. · Router—Router node. |
Mask |
Network mask. Its value is 0 for a router node. |
SPFLinkCnt |
Number of SPF links. |
Distance |
Cost to the root node. |
VlinkData |
Destination address of virtual link packets. |
ParentLinkCnt |
Number of parent links. |
NodeFlag |
Node flag: · I—The node is in initialization state. · A—The node is on the candidate list. · S—The node is on the SPF tree. · R—The node is directly connected to the root node. · D—The node is to be deleted. · T—The node is the tunnel destination. |
NextHop |
Next hop. |
Interface |
Output interface. |
Flag |
Identifies the type of the next hop. SR means SR tunnel. For other types, this field displays a hyphen (-). |
Remote-LFA |
Remote LFA backup information. |
RLFAAdvId |
Router ID of the remote LFA backup next hop. |
RLFAInterface |
Output interface of the remote LFA backup next hop. |
RLFANexthop |
Remote LFA backup next hop information. |
PQNode AdvID |
Router ID of the PQ node. |
PQNode prefix |
PQ node prefix. |
TI-LFA |
TI-LFA information. |
TiLfaAdvId |
Advertised node router ID after TI-LFA is enabled. |
TiLfaInterface |
TI-LFA interface. |
TiLfaNexthop |
TI-LFA next hop address. |
PNode AdvID |
Router ID of the P node. |
QNode AdvID |
Router ID of the Q node. |
PNode prefix |
Prefix of the P node. |
PNode SidIndex |
SID index of the P node. |
Protect |
Traffic protection type: Link or Node. |
Label stack |
Label stack. |
BkNextHop |
Backup next hop. |
LinkId |
Link ID. |
LinkType |
Link type: · RT2RT—Router to router. · NET2RT—Network to router. · RT2NET—Router to network. |
LinkCost |
Link cost. |
NextHopCnt |
Number of next hops. |
LinkData |
Link data. |
LinkNewCost |
New link cost. |
LinkFlag |
Link flag: · I—The link is in initialization state. · P—The peer is the parent node. · C—The peer is the child node. · D—The link is to be deleted. · H—The next hop is changed. · V—When the peer node is deleted or added, the peer node is not on the SPF tree or is deleted. · N—The link is newly added, and both end nodes are on the SPF tree. · G—The link is on the area change list. |
display ospf statistics
Use display ospf statistics to display OSPF statistics.
Syntax
display ospf [ process-id ] statistics [ error | packet [ hello | interface-type interface-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays OSPF statistics for all OSPF processes.
error: Displays error statistics. If you do not specify this keyword, the command displays OSPF packet, LSA, and route statistics.
packet: Displays OSPF packet statistics.
hello: Displays statistics of the sent and received hello packets. If you do not specify this keyword, the command displays statistics of all types of sent and received packets.
interface-type interface-number: Specifies an interface by its type and number. If you do not specify this argument, the command displays statistics for all interfaces.
Examples
# Display OSPF statistics.
<Sysname> display ospf statistics
OSPF Process 1 with Router ID 2.2.2.2
Statistics
I/O statistics
Type Input Output
Hello 61 122
DB Description 2 3
Link-State Req 1 1
Link-State Update 3 3
Link-State Ack 3 2
LSAs originated by this router
Router : 4
Network : 0
Sum-Net : 0
Sum-Asbr: 0
External: 0
NSSA : 0
Opq-Link: 0
Opq-Area: 0
Opq-As : 0
LSAs originated: 4 LSAs received: 7
Routing table:
Intra area: 2 Inter area: 3 ASE/NSSA: 0
Table 33 Command output
Field |
Description |
I/O statistics |
Statistics about input/output packets and LSAs. |
Type |
OSPF packet type. |
Input |
Packets received. |
Output |
Packets sent. |
Hello |
Hell packet. |
DB Description |
Database Description packet. |
Link-State Req |
Link-State Request packet. |
Link-State Update |
Link-State Update packet. |
Link-State Ack |
Link-State Acknowledge packet. |
LSAs originated by this router |
LSAs originated by this router. |
Router |
Number of Type-1 LSAs originated. |
Network |
Number of Type-2 LSAs originated. |
Sum-Net |
Number of Type-3 LSAs originated. |
Sum-Asbr |
Number of Type-4 LSAs originated. |
External |
Number of Type-5 LSAs originated. |
NSSA |
Number of Type-7 LSAs originated. |
Opq-Link |
Number of Type-9 LSAs originated. |
Opq-Area |
Number of Type-10 LSAs originated. |
Opq-As |
Number of Type-11 LSAs originated. |
LSA originated |
Number of LSAs originated. |
LSA received |
Number of LSAs received. |
Routing table |
Routing table information. |
Intra area |
Number of intra-area routes. |
Inter area |
Number of inter-area routes. |
ASE/NSSA |
Number of ASE/NSSA routes. |
# Display OSPF error statistics.
<Sysname> display ospf statistics error
OSPF Process 1 with Router ID 192.168.1.112
OSPF Packet Error Statistics
0 : Router ID confusion 0 : Bad packet
0 : Bad version 0 : Bad checksum
0 : Bad area ID 0 : Drop on unnumbered link
0 : Bad virtual link 0 : Bad authentication type
0 : Bad authentication key 0 : Packet too small
0 : Neighbor state low 0 : Transmit error
0 : Interface down 0 : Unknown neighbor
0 : HELLO: Netmask mismatch 0 : HELLO: Hello-time mismatch
0 : HELLO: Dead-time mismatch 0 : HELLO: Ebit option mismatch
0 : DD: MTU option mismatch 0 : DD: Unknown LSA type
0 : DD: Ebit option mismatch 0 : ACK: Bad ack
0 : ACK: Unknown LSA type 0 : REQ: Empty request
0 : REQ: Bad request 0 : UPD: LSA checksum bad
0 : UPD: Unknown LSA type 0 : UPD: Less recent LSA
Table 34 Command output
Field |
Description |
Router ID confusion |
Packets with duplicate router ID. |
Bad packet |
Packets illegal. |
Bad version |
Packets with wrong version. |
Bad checksum |
Packets with wrong checksum. |
Bad area ID |
Packets with invalid area ID. |
Drop on unnumbered link |
Packets dropped on the unnumbered interface. |
Bad virtual link |
Packets on wrong virtual links. |
Bad authentication type |
Packets with invalid authentication type. |
Bad authentication key |
Packets with invalid authentication key. |
Packet too small |
Packets too small in length. |
Neighbor state low |
Packets received in low neighbor state. |
Transmit error |
Packets with error when being transmitted. |
Interface down |
Shutdown times of the interface. |
Unknown neighbor |
Packets received from unknown neighbors. |
HELLO: Netmask mismatch |
Hello packets with mismatched mask. |
HELLO: Hello-time mismatch |
Hello packets with mismatched hello timer. |
HELLO: Dead-time mismatch |
Hello packets with mismatched dead timer. |
HELLO: Ebit option mismatch |
Hello packets with mismatched E-bit in the option field. |
DD: MTU option mismatch |
DD packets with mismatched MTU. |
DD: Unknown LSA type |
DD packets with unknown LSA type. |
DD: Ebit option mismatch |
DD packets with mismatched E-bit in the option field. |
ACK: Bad ack |
Bad LSAck packets for LSU packets. |
ACK: Unknown LSA type |
LSAck packets with unknown LSA type. |
REQ: Empty request |
LSR packets with no request information. |
REQ: Bad request |
Bad LSR packets. |
UPD: LSA checksum bad |
LSU packets with wrong LSA checksum. |
UPD: Unknown LSA type |
LSU packets with unknown LSA type. |
UPD: Less recent LSA |
LSU packets without the most recent LSA. |
# Display OSPF packet statistics for all processes and interfaces.
<Sysname> display ospf statistics packet
OSPF Process 100 with Router ID 192.168.1.59
Packet Statistics
Waiting to send packet count: 0
Hello DD LSR LSU ACK Total
Input : 489 6 2 44 40 581
Output: 492 8 2 45 40 587
Area: 0.0.0.1
Interface: 20.1.1.1 (Vlan-interface100)
DD LSR LSU ACK Total
Input : 0 0 0 0 0
Output: 0 0 0 0 0
Interface: 100.1.1.1 (Vlan-interface100)
DD LSR LSU ACK Total
Input : 3 1 22 16 42
Output: 2 1 19 20 42
Table 35 Command output
Field |
Description |
Waiting to send packet count |
Number of packets waiting to be sent. |
Total |
Total number of packets. |
Input |
Number of received packets. |
Output |
Number of sent packets. |
Area |
Area ID. |
Interface |
Interface address and interface name. |
# Display statistics of the sent and received hello packets.
<Sysname> display ospf statistics packet hello
OSPF Process 1 with Router ID 1.1.1.1
Hello statistics
Total sent : 201
Total sent failed : 0
Sent after one and a half intervals : 0
Total received : 221
Total received dropped : 0
Received after one and a half intervals: 0
Table 36 Command output
Field |
Description |
Total sent |
Total number of hello packets sent. |
Total sent failed |
Total number of hello packets that failed to be sent. |
Sent after one and a half intervals |
Total number of hello packets sent at intervals greater than 1.5 times the hello interval. |
Total received |
Total number of hello packets received. |
Total received dropped |
Total number of received hello packets that were dropped. |
Received after one and a half intervals |
Total number of hello packets received at intervals greater than 1.5 times the hello interval. |
Related commands
reset ospf statistics
display router id
Use display router id to display the global router ID.
Syntax
display router id
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display the global router ID.
<Sysname> display router id
Configured router ID is 1.1.1.1
fast-reroute
Use fast-reroute to configure OSPF FRR.
Use undo fast-reroute to restore the default.
Syntax
fast-reroute { lfa [ abr-only ] | route-policy route-policy-name }
undo fast-reroute
Default
OSPF FRR is disabled.
Views
OSPF view
Predefined user roles
network-admin
Parameters
lfa: Uses the LFA algorithm to calculate a backup next hop for all routes.
abr-only: Uses the next hop of the route to the ABR as the backup next hop.
route-policy route-policy-name: Uses a routing policy to designate a backup next hop. The route-policy-name argument is a case-sensitive string of 1 to 63 characters.
Usage guidelines
When both OSPF FRR and PIC are configured, OSPF FRR takes effect.
Do not use the fast-reroute lfa command together with the vlink-peer command.
Examples
# Enable FRR to calculate a backup next hop for all routes by using LFA algorithm in OSPF process 1.
<Sysname> system-view
[Sysname] ospf 1
[Sysname-ospf-1] fast-reroute lfa
hostname
Use hostname to enable the OSPF dynamic host name mapping feature.
Use undo hostname to disable the OSPF dynamic host name mapping feature.
Syntax
hostname [ host-name ]
undo hostname
Default
The OSPF dynamic host name mapping feature is disabled.
Views
OSPF view
Predefined user roles
network-admin
Parameters
host-name: Specifies the host name mapped to the router ID of the OSPF process, a case-sensitive string of 1 to 255 characters. If you do not specify this argument, the device name is mapped to the router ID of the OSPF process.
Usage guidelines
OSPF uses Type-10 LSAs and Type-11 LSAs to carry information about the dynamic host name attribute. Therefore, make sure the opaque LSA reception and advertisement capability is enabled.
Examples
# Enable the dynamic host name mapping feature for OSPF process 1, and specify the host name mapped to the router ID as red.
<Sysname> system-view
[Sysname] ospf 1
[Sysname-ospf-1] hostname red
Related commands
display ospf hostname-table
opaque-capability enable
network
Use network to enable OSPF on the interface attached to the specified network in the area.
Use undo network to disable OSPF for the interface attached to the specified network in the area.
Syntax
network ip-address wildcard-mask
undo network ip-address wildcard-mask
Default
OSPF is not enabled for any interface.
Views
OSPF area view
Predefined user roles
network-admin
Parameters
ip-address: Specifies the IP address of a network.
wildcard-mask: Specifies the wildcard mask of the IP address. For example, the wildcard mask of mask 255.0.0.0 is 0.255.255.255.
Usage guidelines
This command enables OSPF on the interface attached to the specified network. The interface's primary IP address must be in the specified network. If only the interface's secondary IP address is on the network, the interface cannot run OSPF.
Examples
# Specify the interface whose primary IP address is on network 131.108.20.0/24 to run OSPF in Area 2.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 2
[Sysname-ospf-100-area-0.0.0.2] network 131.108.20.0 0.0.0.255
Related commands
ospf
opaque-capability enable
Use opaque-capability enable to enable opaque LSA advertisement and reception.
Use undo opaque-capability to disable opaque LSA advertisement and reception.
Syntax
opaque-capability enable
undo opaque-capability
Default
The feature is enabled.
Views
OSPF view
Predefined user roles
network-admin
Usage guidelines
After the opaque LSA advertisement and reception capability is enabled, OSPF can receive and advertise Type-9, Type-10, and Type-11 opaque LSAs.
Examples
# Disable opaque LSA advertisement and reception.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] undo opaque-capability
ospf
Use ospf to enable OSPF and enter OSPF view.
Use undo ospf to disable OSPF.
Syntax
ospf [ process-id | router-id { auto-select | router-id } ] *
undo ospf [ process-id ] [ router-id ]
Default
OSPF is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
router-id: Specifies an OSPF router ID. If you do not specify an OSPF router ID, the global router ID is used.
auto-select: Automatically obtains an OSPF router ID.
router-id: Manually specifies an OSPF router ID in dotted decimal notation. The value range is from 0.0.0.1 to 255.255.255.255.
Usage guidelines
Enable an OSPF process before performing other tasks.
You can enable multiple OSPF processes on a router and specify different router IDs for them.
If you specify the auto-select keyword, the OSPF process obtains a router ID in the following ways:
· During the startup of the OSPF process, the primary IPv4 address of the first interface that runs the process is specified as the router ID.
· During the reboot of the router, the primary IPv4 address of the first interface that runs the process is specified as the router ID.
· During the restart of the OSPF process, the highest primary IPv4 address of the loopback interface that runs the process is specified as the router ID. If no loopback address is available, the highest primary IPv4 address of the interface that runs the process is used, regardless of the interface state (up or down).
If you do not specify the router-id keyword, the undo ospf command shuts down an OSPF process. If you specify the router-id keyword, the undo ospf command specifies the global router ID as the router ID. The setting takes effect after the OSPF process restarts.
For correct OSPF neighbor relationship establishment, do not bind an OSPF-enabled VLAN interface to an OpenFlow instance.
After you create multiple non-default vSystems on the device, enabling OSPF in these vSystems might cause memory insufficiency. To resolve this issue, specify the lite keyword when you use this command to enable OSPF in a non-default vSystem. Compared with traditional processes, lightweight processes use less memory resources.
To configure a traditional OSPF process as a lightweight process, perform the following tasks:
1. Use the undo ospf command to disable the process.
2. Use the ospf command with the lite keyword specified to enable the process.
When you use this command to enter the view of an existing lightweight OSPF process, you do not need to specify the lite keyword.
Examples
# Enable OSPF process 100 and specify router ID 10.10.10.1.
<Sysname> system-view
[Sysname] ospf 100 router-id 10.10.10.1
[Sysname-ospf-100]
ospf area
Use ospf area to enable OSPF on an interface.
Use undo ospf area to disable OSPF on an interface.
Syntax
ospf process-id area area-id [ exclude-subip ]
undo ospf process-id area [ exclude-subip ]
Default
OSPF is not enabled on an interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
area-id: Specifies an area by its ID, an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format.
exclude-subip: Excludes secondary IP addresses. If you do not specify this keyword, the command enables OSPF also on secondary IP addresses.
Usage guidelines
The ospf area command has a higher priority than the network command.
If the specified process and area do not exist, the command creates the process and area. Disabling an OSPF process on an interface does not delete the OSPF process or the area.
Examples
# Enable OSPF process 1 on VLAN-interface 10 that is in Area 2 and exclude secondary IP addresses.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf 1 area 2 exclude-subip
Related commands
network
reset ospf event-log
Use reset ospf event-log to clear OSPF log information.
Syntax
reset ospf [ process-id ] event-log [ lsa-flush | peer | spf ]
Views
User view
Predefined user roles
network-admin
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command clears OSPF log information for all OSPF processes.
lsa-flush: Clears LSA aging log information.
peer: Clears neighbor state change log information.
spf: Clears route calculation log information.
Usage guidelines
If you do not specify a log type, this command clears all log information.
Examples
# Clear OSPF route calculation log information for all OSPF processes.
<Sysname> reset ospf event-log spf
Related commands
display ospf event-log
reset ospf event-log hello
Use reset ospf event-log hello to clear OSPF log information about received or sent hello packets.
Syntax
reset ospf [ process-id ] event-log hello { received [ abnormal | dropped ] | sent [ abnormal | failed ] }
Views
User view
Predefined user roles
network-admin
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command clears OSPF log information for all processes.
received: Specifies log information for received hello packets.
sent: Specifies log information for sent hello packets.
abnormal: Specifies log information for abnormal hello packets received or sent at intervals greater than or equal to 1.5 times the hello interval.
dropped: Specifies log information for received hello packets that were dropped.
failed: Specifies log information for hello packets that failed to be sent.
Examples
# Clear sent hello packet log information for all OSPF processes.
<Sysname> reset ospf event-log hello sent
Related commands
display ospf event-log hello
reset ospf process
Use reset ospf process to restart all OSPF processes or a specified process.
Syntax
reset ospf [ process-id ] process [ graceful-restart ]
Views
User view
Predefined user roles
network-admin
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify a process, this command restarts all OSPF processes.
graceful-restart: Resets the OSPF process by using GR.
Usage guidelines
The reset ospf process command performs the following actions:
· Clears all invalid LSAs without waiting for their timeouts.
· Makes a newly configured router ID take effect.
· Starts a new DR/BDR election.
· Keeps previous OSPF configurations.
The system prompts you to select whether to restart OSPF process upon execution of this command.
Examples
# Restart all OSPF processes.
<Sysname> reset ospf process
Reset OSPF process? [Y/N]:y
reset ospf statistics
Use reset ospf statistics to clear OSPF statistics.
Syntax
reset ospf [ process-id ] statistics
Views
User view
Predefined user roles
network-admin
Parameters
process-id: Clears the statistics for an OSPF process specified by its ID in the range of 1 to 65535.
Examples
# Clear OSPF statistics for all processes.
<Sysname> reset ospf statistics
Related commands
display ospf statistics
router id
Use router id to configure a global router ID.
Use undo router id to restore the default.
Syntax
router id router-id
undo router id
Default
No global router ID is configured.
Views
System view
Predefined user roles
network-admin
Parameters
router-id: Specifies the router ID, in the format of an IPv4 address.
Usage guidelines
OSPF uses a router ID to identify a device. If no router ID is specified, the global router ID is used.
If no global router ID is configured, the highest loopback interface IP address is used as the router ID. If no loopback interface IP address is available, the highest physical interface IP address is used, regardless of the interface status (up or down).
During an active/standby process switchover, the new active process checks whether the previously backed up router ID is valid. If not, the process selects a new router ID.
A new router ID is selected only when the interface IP address used as the router ID is removed or changed. Other events will not trigger a router ID re-selection. For example, router ID re-selection is not triggered in the following situations:
· The interface goes down.
· You change the router ID to the address of a loopback interface after a physical interface address is selected as the router ID.
· A higher interface IP address is configured as the router ID.
After a router ID is changed, you must use the reset command to enable it.
Examples
# Configure a global router ID as 1.1.1.1.
<Sysname> system-view
[Sysname] router id 1.1.1.1