- Table of Contents
-
- 07-Layer 3—IP Routing Command Reference
- 00-Preface
- 01-Basic IP routing commands
- 02-Static routing commands
- 03-RIP commands
- 04-OSPF commands
- 05-IS-IS commands
- 06-Basic BGP commands
- 07-Advanced BGP commands
- 08-Policy-based routing commands
- 09-IPv6 static routing commands
- 10-RIPng commands
- 11-OSPFv3 commands
- 12-IPv6 policy-based routing commands
- 13-Routing policy commands
- 14-DCN commands
- Related Documents
-
Title | Size | Download |
---|---|---|
11-OSPFv3 commands | 555.73 KB |
Contents
display ospfv3 global-statistics
display ospfv3 graceful-restart
display ospfv3 non-stop-routing
graceful-restart helper enable
graceful-restart helper strict-lsa-checking
ospfv3 fast-reroute lfa-backup exclude
ospfv3 primary-path-detect bfd
OSPFv3 commands
abr-summary
Use abr-summary to configure route summarization on an ABR.
Use undo abr-summary to remove the configuration.
Syntax
abr-summary ipv6-address prefix-length [ not-advertise ] [ cost cost-value ]
undo abr-summary ipv6-address prefix-length
Default
Route summarization is not configured on an ABR.
Views
OSPFv3 area view
Predefined user roles
network-admin
Parameters
ipv6-address: Specifies the destination IPv6 address of the summary route.
prefix-length: Specifies the prefix length of the destination IPv6 address, in the range of 1 to 128. This argument specifies the number of consecutive 1s of the prefix, which defines the network ID.
not-advertise: Specifies not to advertise the summary IPv6 route. If you do not specify this keyword, the command advertises the IPv6 summary route.
cost cost-value: Specifies the cost of the summary route, in the range of 1 to 16777215. The default cost is the largest cost value among routes that are summarized.
Usage guidelines
This command applies only to an ABR to summarize multiple contiguous networks into one network.
To enable ABR to advertise specific routes that have been summarized, use the undo abr-summary command.
Examples
# Summarize networks 2000:1:1:1::/64 and 2000:1:1:2::/64 in Area 1 into 2000:1:1::/48.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] area 1
[Sysname-ospfv3-1-area-0.0.0.1] abr-summary 2000:1:1:: 48
area
Use area to create an OSPFv3 area and enter OSPFv3 area view.
Use undo area to remove an OSPFv3 area.
Syntax
area area-id
undo area area-id
Default
No OSPFv3 areas exist.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is translated into the IPv4 address format.
Examples
# Create OSPFv3 Area 0 and enter its view.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] area 0
[Sysname-ospfv3-1-area-0.0.0.0]
asbr-summary
Use asbr-summary to configure route summarization on an ASBR.
Use undo asbr-summary to remove the configuration.
Syntax
asbr-summary ipv6-address prefix-length [ cost cost-value | not-advertise | nssa-only | tag tag ] *
undo asbr-summary ipv6-address prefix-length
Default
Route summarization is not configured on an ASBR.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
ipv6-address: Specifies the destination IPv6 address of the summary route.
prefix-length: Specifies the prefix length in the range of 1 to 128.
cost cost-value: Specifies the cost of the summary route, in the range of 1 to 16777214. If you do not specify this option, the largest cost among the summarized routes applies. If the routes in Type-5 LSAs translated from Type-7 LSAs are Type-2 external routes, the largest cost among the summarized routes plus 1 applies.
not-advertise: Disables advertising the summary route. If you do not specify this keyword, the command advertises the route.
nssa-only: Limits the route advertisement to the NSSA area by setting the P-bit of Type-7 LSAs to 0. By default, the P-bit of Type-7 LSAs is set to 1. If the ASBR is also an ABR and FULL state neighbors exist in the backbone area, the P-bit of Type-7 LSAs originated by the ASBR is set to 0. This keyword applies to the NSSA ASBR.
tag tag: Specifies a tag for the summary route, in the range of 0 to 4294967295.
Usage guidelines
An ASBR can summarize routes in the following LSAs:
· Type-5 LSAs.
· Type-7 LSAs in an NSSA area.
· Type-5 LSAs translated by the ASBR (also an ABR) from Type-7 LSAs in an NSSA area.
If the ASBR (ABR) is not a translator, it cannot summarize routes in Type-5 LSAs translated from Type-7 LSAs.
To enable ASBR to advertise specific routes that have been summarized, use the undo asbr-summary command.
Examples
# Configure a summary route 2000::/16, and specify a cost of 100 and a tag value of 2 for the summary route.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] asbr-summary 2000:: 16 cost 100 tag 2
authentication-mode
Use authentication-mode to specify an authentication mode for an OSPFv3 area.
Use undo authentication-mode to restore the default.
Syntax
For HMAC-SHA-256/HMAC-SM3 authentication:
authentication-mode { hmac-sha-256 | hmac-sm3 } key-id { cipher | plain } string
undo authentication-mode
For keychain authentication:
authentication-mode keychain keychain-name
undo authentication-mode
Default
No authentication is performed for an area.
Views
OSPFv3 area view
Predefined user roles
network-admin
Parameters
hmac-sha-256: Specifies the HMAC-SHA-256 authentication mode.
hmac-sm3: Specifies the HMAC-SM3 authentication mode.
key-id: Specifies a key ID in the range of 0 to 65535.
cipher: Specifies a key in encrypted form.
plain: Specifies a key in plaintext form. For security purposes, the key specified in plaintext form will be stored in encrypted form.
string: Specifies the key. This argument is case sensitive. The key in plaintext form is a string of 1 to 255 characters, and the key in encrypted form is a string of 33 to 373 characters.
keychain: Specifies the keychain authentication mode.
keychain-name: Specifies a keychain by its name, a case-sensitive string of 1 to 63 characters.
Usage guidelines
To establish or maintain adjacencies, routers in the same area must use the same authentication mode and key. An OSPFv3 area supports only one authentication mode.
The authentication mode specified for an OSPFv3 interface has a higher priority than the mode specified for an OSPFv3 area.
When keychain authentication is configured for an OSPFv3 area, OSPFv3 performs the following operations before sending a packet:
1. Obtains a valid send key from the keychain.
OSPFv3 does not send the packet if it fails to obtain a valid send key.
2. Uses the key ID, authentication algorithm, and key string to authenticate the packet.
If the key ID is greater than 65535, OSPFv3 does not send the packet.
When keychain authentication is configured for an OSPFv3 area, OSPFv3 performs the following operations after receiving a packet:
1. Uses the key ID carried in the packet to obtain a valid accept key from the keychain.
OSPFv3 discards the packet if it fails to obtain a valid accept key.
2. Uses the authentication algorithm and key string for the valid accept key to authenticate the packet.
If the authentication fails, OSPFv3 discards the packet.
OSPFv3 supports only the HMAC-SHA-256 and HMAC-SM3 authentication algorithms.
The ID of keys used for authentication can only be in the range of 0 to 65535.
Examples
# Configure OSPFv3 Area 1 to use keychain test for packet authentication.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] area 1
[Sysname-ospfv3-1-area-0.0.0.1] authentication-mode keychain test
bandwidth-reference
Use bandwidth-reference to set a reference bandwidth value for link cost calculation.
Use undo bandwidth-reference to restore the default.
Syntax
bandwidth-reference value
undo bandwidth-reference
Default
The reference bandwidth value is 100 Mbps for link cost calculation.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
value: Specifies the reference bandwidth value for link cost calculation, in the range of 1 to 4294967 Mbps.
Usage guidelines
You can configure an OSPFv3 cost for an interface with one of the following methods:
· Configure the cost value in interface view.
· Configure a bandwidth reference value. OSPFv3 computes the cost automatically based on the bandwidth reference value by using the following formula: Interface OSPFv3 cost = Bandwidth reference value / Interface bandwidth.
¡ If the calculated cost is greater than 65535, the value of 65535 is used.
¡ If the calculated cost is smaller than 1, the value of 1 is used.
If no cost value is configured for an interface, OSPFv3 computes the interface cost value automatically.
Examples
# Set the reference bandwidth value to 1000 Mbps.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] bandwidth-reference 1000
default tag
Use default tag to set a tag for redistributed routes.
Use undo default tag to restore the default.
Syntax
default tag tag
undo default tag
Default
The tag of redistributed routes is 1.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
tag: Specifies a tag for redistributed routes, in the range of 0 to 4294967295.
If you do not set a tag for redistributed routes by using the default-route-advertise, import-route, or route-tag command, the tag specified by the default tag command applies.
Examples
# Set the tag for redistributed routes to 2.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] default tag 2
Related commands
default-route-advertise
import-route
route-tag (MPLS Command Reference)
default-cost
Use default-cost to set a cost for the default route advertised to the stub area or NSSA area.
Use undo default-cost to restore the default.
Syntax
default-cost cost
undo default-cost
Default
The cost is 1.
Views
OSPFv3 area view
Predefined user roles
network-admin
Parameters
value: Specifies a cost for the default route advertised to the stub area or NSSA area, in the range of 0 to 16777214.
Usage guidelines
This command takes effect only on the ABR of a stub area or the ABR or ASBR of an NSSA area.
Examples
# Configure Area 1 as a stub area, and set the cost of the default route advertised to the stub area to 60.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] area 1
[Sysname-ospfv3-1-area-0.0.0.1] stub
[Sysname-ospfv3-1-area-0.0.0.1] default-cost 60
Related commands
nssa
stub
default-route-advertise
Use default-route-advertise to redistribute a default route into the OSPFv3 routing domain.
Use undo default-route-advertise to restore the default.
Syntax
default-route-advertise [ [ always | permit-calculate-other ] | cost cost-value | route-policy route-policy-name | tag tag | type type ] *
undo default-route-advertise
Default
No default route is redistributed into the OSPFv3 routing domain.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
always: Redistributes a default route in an AS-external-LSA into the OSPFv3 routing domain regardless of whether a default route exists in the routing table. If you do not specify this keyword, the router redistributes a default route in an AS-external-LSA into the OSPFv3 routing domain only when the default route exists in the routing table.
permit-calculate-other: Enables OSPFv3 to calculate default routes received from other routers. If you do not specify this keyword, OSPFv3 does not calculate default routes from other routers. If the router does not redistribute any default route in an AS-external-LSA into the OSPFv3 routing domain, the router calculates default routes from other routers. It calculates these routes regardless of whether this keyword is specified.
cost cost-value: Specifies a cost for the default route, in the range of 0 to 16777214. The default is 1.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. When the routing policy is matched and one of the following conditions is met, the command redistributes a default route in an AS-external-LSA into the OSPFv3 routing domain:
· A default route exists in the routing table.
· The always keyword is specified.
The routing policy modifies values in the AS-external-LSA.
tag tag: Specifies a tag for the default route, in the range of 0 to 4294967295. If you do not specify this option, the tag specified by the default tag command applies.
type type: Specifies a type for the AS-external-LSA, 1 or 2. The default is 2.
Usage guidelines
This command redistributes a default route in an AS-external-LSA, which cannot be redistributed with the import-route command. If the local routing table has no default route, you must provide the always keyword for the command.
Examples
# Redistribute a default route into the OSPFv3 routing domain. (The default route does not exist in the local router.)
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] default-route-advertise always
Related commands
import-route
display ospfv3
Use display ospfv3 to display OSPFv3 process information.
Syntax
display ospfv3 [ process-id ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays information about all OSPFv3 processes.
verbose: Displays detailed OSPFv3 process information. If you do not specify this keyword, the command displays brief OSPFv3 process information.
Examples
# Display detailed information about all OSPFv3 processes.
<Sysname> display ospfv3 verbose
OSPFv3 Process 1 with Router ID 1.1.1.1
RouterID: 1.1.1.1 Router type: ABR ASBR NSSA
IPv6 RouterID: 86::86
Route tag: 0
Route tag check: Disabled
Multi-VPN-Instance: Disabled
Type value of extended community attributes:
Domain ID : 0x0005
Route type: 0x0306
Router ID : 0x0107
Domain-id: 0.0.0.0
DN-bit check: Enabled
DN-bit set: Enabled
Isolation: Disabled
Originating router-LSAs with maximum metric
Condition: Always, State: Active
Advertise summary-LSAs with metric 16711680
Advertise external-LSAs with metric 16711680
Advertise intra-area-prefix-LSAs with maximum metric
ISPF: Enabled
SPF-schedule-interval: 5 50 200
LSA generation interval: 5
LSA arrival interval: 1000
Transmit pacing: Interval: 20 Count: 3
Default ASE parameters: Tag: 1
Route preference: 10
ASE route preference: 150
FRR backup mode: LFA
Node-Protecting Preference: 40
Lowest-cost Preference: 20
SPF calculation count: 0
External LSA count: 0
LSA originated count: 0
LSA received count: 0
SNMP trap rate limit interval: 10 Count: 7
Area count: 2 Stub area count: 0 NSSA area count: 1
ExChange/Loading neighbors: 0
End.X SID deletion delay:
State : Enabled
Delay time: 1800 sec
Max equal cost paths: 32
Up interfaces: 1
Full neighbors: 1
Normal areas with up interfaces: 1
Calculation trigger type: Full
Current calculation type: SPF calculation
Current calculation phase: Calculation area topology
Redistribute timer: Off
Redistribute schedule type: RIB
Redistribute route count: 0
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, S-N/A, C-N/A, R-N/A
IPv6 segment routing: Disabled
Fast-reroute TI-LFA: Disabled
SR microloop-avoidance: Disabled
SR microloop-avoidance RIB-update-delay: 5000 ms
Area: 0.0.0.0 (MPLS TE not enabled)
Area flag: Normal
SPF scheduled count: 0
ExChange/Loading neighbors: 0
LSA count: 0
Up interfaces: 0
MTU: 1440
Default cost: 1
Created by Vlink
Process reset state: N/A
Current reset type: N/A
Reset prepare message replied: -/-/-/-
Reset process message replied: -/-/-/-
Reset phase of module:
M-N/A, P-N/A, S-N/A, C-N/A, R-N/A
Area: 0.0.0.2 (MPLS TE not enabled)
Area flag: Normal
SPF scheduled count: 0
ExChange/Loading neighbors: 0
LSA count: 0
Keychain authentication: Enabled (test)
Up interfaces: 1
MTU: 1500
Default cost: 1
Process reset state: N/A
Current reset type: N/A
Reset prepare message replied: -/-/-/-
Reset process message replied: -/-/-/-
Reset phase of module:
M-N/A, P-N/A, S-N/A, C-N/A, R-N/A
Area: 0.0.0.3 (MPLS TE not enabled)
Area flag: NSSA
7/5 translator state: Disabled
7/5 translate stability timer interval: 0
SPF Scheduled Count: 0
ExChange/Loading neighbors: 0
LSA Count: 0
Up interfaces: 0
MTU: 1440
Default cost: 1
Process reset flag: N/A
Current reset type: N/A
Reset prepare message replied: -/-/-/-
Reset process message replied: -/-/-/-
Reset phase of module:
M-N/A, P-N/A, S-N/A, C-N/A, R-N/A
Table 1 Command output
Field |
Description |
OSPFv3 Process 1 with Router ID 1.1.1.1 |
OSPFv3 process is 1, and router ID is 1.1.1.1. |
Router type |
Router type: · ABR. · ASBR. · NSSA. · Null. |
Process state |
OSPFv3 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 the routes redistributed into the OSPFv3 process. |
Route tag check |
Whether the check is enabled for the route tag in OSPFv3 LSAs of the OSPFv3 process. |
Multi-VPN-Instance |
Whether the OSPFv3 process supports PE or multiple VPN instances: · Multi-VPN-Instance: Disabled—The process does not support multiple VPN instances. · Multi-VPN-Instance: Enabled—The process supports multiple VPN instances. · PE Router, Multi-VPN-Instance: Enabled—The local device is a PE. |
DN-bit check |
Whether the check is enabled for the DN bit in OSPFv3 LSAs of the OSPFv3 process. |
DN-bit set |
Whether the DN bit is set for OSPFv3 LSAs in the OSPFv3 process. |
Isolation |
Whether OSPFv3 isolation is enabled. |
Condition |
Time when the router acts as a stub router: · Always. · 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 |
State of the stub router: · Active. · Inactive. |
ISPF |
Whether OSPFv3 ISPF is enabled: · Enabled. · Disabled. |
SPF-schedule-interval |
Interval for SPF calculations. If the SPF calculation interval is fixed, this field also displays in milliseconds enclosed with brackets. |
Transmit pacing |
LSU advertisement rate: · Interval—Specifies the interval for sending LSUs. · Count—Specifies the maximum number of LSUs sent at each interval. |
Default ASE parameters |
Default parameters of redistributed routes. Tag represents the route tag of the redistributed routes. |
Route preference |
Internal route preference. |
ASE route preference |
AS-external route preference. |
FRR backup mode |
FRR backup mode: · LFA—Uses the LFA algorithm to calculate a backup next hop for all routes. LFA ABR-only indicates that only the next hop of the route to the ABR can be used as the backup next hop. · route-policy route-policy-name—Specifies a backup next hop by using a routing policy. · ECMP-shared—Uses the LFA algorithm to calculate a backup next hop for all routes, including ECMP routes. |
Node-Protecting Preference |
Priority of the node-protection backup path selection policy. |
Lowest-cost Preference |
Priority of the lowest-cost backup path selection policy. |
LSA originated count |
Number of originated LSAs. |
LSA received count |
Number of received LSAs. |
SNMP trap rate limit interval: 10 Count: 7 |
OSPFv3 can output a maximum of 7 SNMP notifications within 10 seconds. |
Area count |
Total number of areas. |
Stub area count |
Number of stub areas. |
NSSA area count |
Number of NSSA areas. |
ExChange/Loading neighbors |
Neighbors in ExChange/Loading state. |
End.X SID deletion delay |
End.X SID deletion delay information: · State—End.X SID deletion delay state. · Delay time——End.X SID deletion delay timer in seconds. |
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. · 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. · Nexthop calculation—Calculation of next hops 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. · 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. · 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. · Calculation ASBR—Calculating routes on ASBRs. · Calculation inter AS—Calculating AS-external routes. · Calculation end—Ending phase of calculation. · N/A—Route calculation is not triggered. |
Redistribute timer |
Route redistribution timer status: on or off. |
Redistribute schedule type |
Route redistribution scheduling type: · RIB—Redistribute routes through the RIB table. · Self—Redistribute routes through the routing table. · N/A—Route redistribution is not triggered. |
Redistribute route count |
Number of redistributed routes. |
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 RIB routes. |
Current reset type |
Current process reset type: · N/A—The process is not reset. · GR quit—Normal reset when GR quits abnormally. · Delete—Delete OSPFv3 process. · Undo router-id—Delete router ID. · Set router-id—Set router ID. |
Next reset type |
Next process reset type: · N/A—The process is not reset. · GR quit—Normal reset when GR quits abnormally. · Delete—Delete OSPFv3 process. · Undo router-id—Delete router ID. · Set router-id—Set router ID. |
Reset prepare message replied |
Modules that reply reset prepare messages: · P—Neighbor maintenance module. · S—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. · S—LSDB synchronization module. · C—Route calculation module. · R—Route redistribution module. |
Reset phase of module |
Reset phase of each module: · LSDB synchronization (S) module: ¡ N/A—Not reset. ¡ Delete ASE—Delete all ASE LSAs. ¡ Delete area LSA—Delete LSAs from an area. ¡ Delete area IF—Delete interfaces from an area. · 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 ASBR—Delete ASBR routes. · Route redistribution (R) module: ¡ N/A—Not reset. ¡ Delete import—Delete redistributed routes. |
IPv6 segment routing |
IPv6 segment routing state: Disabled or Enabled. |
Fast-reroute TI-LFA |
Topology independent LFA (TI-LFA) FRR status: Disabled or Enabled. |
SR microloop-avoidance |
SR microloop avoidance status: Disabled or Enabled. |
SR microloop-avoidance RIB-update-delay |
SR microloop avoidance delay timer in milliseconds. |
Area (MPLS TE xxx) |
Area information. The information in parentheses indicates whether the area is enabled with MPLS TE. |
Cryptographic authentication: HMAC-SHA-256, key ID: xx |
HMAC-SHA-256 authentication is enabled for the area, and the key ID is xx. |
Cryptographic authentication: HMAC-SM3, key ID: xx |
HMAC-SM3 authentication is enabled for the area, and the key ID is xx. |
Keychain authentication: Enabled (test) |
Keychain authentication is enabled for the area, and the keychain test is used. |
Created by Vlink |
The area is created through virtual link. |
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 (in seconds) for Type-7 LSA-to-Type-5 LSA translation. |
display ospfv3 abr-asbr
Use display ospfv3 abr-asbr to display information about the routes to OSPFv3 ABR and ASBR.
Syntax
display ospfv3 [ process-id ] abr-asbr
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays information about all the routes to the OSPFv3 ABR and ASBR.
Examples
# Display information about all the routes to the OSPFv3 ABR and ASBR.
<Sysname> display ospfv3 abr-asbr
OSPFv3 Process 1 with Router ID 1.1.1.1
Destination : 1.1.1.2 Rtr Type : ABR
Area : 0.0.0.0 Path Type: Intra
Interface : HGE1/0/2 BkInterface: HGE1/0/1
NextHop : FE80:1:1::1
BkNexthop : FE80:1:2::2
Cost : 1
Destination : 1.1.1.3 Rtr Type : ASBR
Area : 0.0.0.0 Path Type: Intra
Interface : HGE1/0/3 BkInterface: HGE1/0/4
NextHop : FE80:2:1::1
BkNexthop : FE80:1:2::4
Cost : 1
Table 2 Command output
Field |
Description |
OSPFv3 Process 1 with Router ID 1.1.1.1 |
OSPFv3 process is 1, and router ID is 1.1.1.1. |
Destination |
Router ID of an ABR or ASBR. |
Rtr Type |
Router type: ABR or ASBR. |
Area |
Area ID of the next hop. |
Path Type |
Type of the route to the ABR or ASBR: · Intra—Intra-area route. · Inter—Inter-area route. |
Interface |
Output interface. |
BkInterface |
Backup output interface. |
NextHop |
Next hop address. |
BkNexthop |
Backup next hop address. |
Cost |
Cost from the router to the ABR or ASBR. |
display ospfv3 abr-summary
Use display ospfv3 abr-summary to display ABR summary route information.
Syntax
display ospfv3 [ process-id ] [ area area-id ] abr-summary [ ipv6-address prefix-length ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 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 OSPFv3 processes.
area area-id: Specifies an OSPFv3 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 OSPFv3 areas.
ipv6-address prefix-length: Specifies an IPv6 address. The ipv6-address argument specifies an IPv6 prefix. The prefix-length argument specifies a prefix length in the range of 1 to 128. If you do not specify this argument, the command displays information about all summary routes on the ABR.
verbose: Displays detailed ABR summary route information. If you do not specify this keyword, the command displays brief ABR summary route information.
Examples
# Display brief ABR summary route information in OSPFv3 process 1.
<Sysname> display ospfv3 1 abr-summary
OSPFv3 Process 1 with Router ID 2.2.2.2
Area: 1.1.1.1
Total summary addresses: 1
Prefix : 1000:4::/32
Status : Advertise
NULL0 : Active
Cost : 1 (Configured)
Routes count: 2
Table 3 Command output
Field |
Description |
Area |
Area to which the summary routes belong. |
Total summary addresses |
Total number of summary routes. |
Prefix |
Prefix of the summary route. |
Status |
Advertisement status of the summary route. |
NULL0 |
Null 0 route. |
Cost |
Cost of the summary route. |
Routes count |
Number of summarized routes. |
# Display detailed ABR summary route information in OSPFv3 process 1.
<Sysname> display ospfv3 1 abr-summary verbose
OSPFv3 Process 1 with Router ID 2.2.2.2
Area: 1.1.1.1
Total summary addresses: 1
Prefix : 1000:4::/32
Status : Advertise
NULL0 : Active
Cost : 1 (Configured)
Routes count: 2
Destination Metric
1000:4:10:3::/96 1
1000:4:11:3::/96 1
Table 4 Command output
Field |
Description |
Destination |
Destination address of a summarized route. |
Metric |
Metric of a summarized route. |
display ospfv3 asbr-summary
Use display ospfv3 asbr-summary to display ASBR summary route information.
Syntax
display ospfv3 [ process-id ] asbr-summary [ ipv6-address prefix-length ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 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 OSPFv3 processes.
ipv6-address prefix-length: Specifies an IPv6 address. The ipv6-address argument specifies an IPv6 prefix. The prefix-length argument specifies a prefix length in the range of 1 to 128. If you do not specify this argument, the command displays information about all ASBR summary routes.
verbose: Displays detailed ASBR summary route information. If you do not specify this keyword, the command displays brief ASBR summary route information.
Examples
# Display brief ASBR summary route information in OSPFv3 process 1.
<Sysname> display ospfv3 1 asbr-summary
OSPFv3 Process 1 with Router ID 2.2.2.2
Total summary addresses: 1
Prefix : 1000:4::/32
Status : Advertise
NULL0 : Active
Cost : 1 (Configured)
Tag : (Not configured)
Nssa-only : (Not configured)
Routes count: 2
Table 5 Command output
Field |
Description |
Total summary addresses |
Total number of summary routes. |
Prefix |
Prefix and prefix length of the summary route. |
Status |
Advertisement status of the summary route: · Advertise—The summary route has been advertised. · Not-advertise—The summary route has not been advertised. |
NULL0 |
Status of the Null 0 route: · Active. · Inactive. |
Cost |
Cost of the summary route: · Configured. · Not configured. |
Tag |
Tag of the summary route: · Configured. · Not configured. |
Nssa-only |
Whether the nssa-only attribute is configured: · Configured. · Not configured. |
Routes count |
Number of summarized routes. |
# Display detailed ASBR summary route information in OSPFv3 process 1.
<Sysname> display ospfv3 1 asbr-summary verbose
OSPFv3 Process 1 with Router ID 2.2.2.2
Total summary addresses: 1
Prefix : 1000:4::/32
Status : Advertise
NULL0 : Active
Cost : 1 (Configured)
Tag : (Not configured)
Nssa-only : (Not configured)
Routes count: 2
Destination Protocol Process Type Metric
1000:4:10:3::/96 Static 0 2 1
1000:4:11:3::/96 Static 0 2 1
Table 6 Command output
Field |
Description |
Destination |
Prefix and prefix length of the summarized route. |
Protocol |
Routing protocol from which the route was redistributed. |
Process |
Process of the routing protocol from which the route was redistributed. |
Type |
Type of the summarized route. |
Metric |
Metric of the summarized route. |
display ospfv3 event-log
Use display ospfv3 event-log to display OSPFv3 log information.
Syntax
display ospfv3 [ process-id ] event-log { lsa-flush | peer | spf }
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays OSPFv3 log information for all processes.
lsa-flush: Specifies LSA aging log information.
peer: Specifies neighbor log information.
spf: Specifies route calculation log information.
Usage guidelines
Route calculation logs show the number of routes newly installed in the IPv6 routing table.
Neighbor logs include information about the following events:
· The OSPFv3 neighbor state goes down.
· The OSPFv3 neighbor state goes backward because the local end receives BadLSReq, SeqNumberMismatch, and 1-Way events.
Examples
# Display OSPFv3 LSA aging log information for OSPFv3 process 1.
<Sysname>display ospfv3 1 event-log lsa-flush
OSPFv3 Process 1 with Router ID 1.3.3.3
2019-09-02 07:55:25 Received MaxAge LSA from 1.1.1.1
Type: 3 LS ID: 0.0.0.2 AdvRtr: 1.1.1.1 Seq#: 80000001
2019-09-02 07:55:22 Flushed MaxAge LSA by itself
Type: 3 LS ID: 0.0.0.2 AdvRtr: 1.3.3.3 Seq#: 80000001
2019-09-02 07:55:07 Flushed MaxAge LSA by itself
Type: 3 LS ID: 0.0.0.40 AdvRtr: 1.3.3.3 Seq#: 80000001
2019-09-02 07:55:07 Flushed MaxAge LSA by itself
Type: 3 LS ID: 0.0.0.39 AdvRtr: 1.3.3.3 Seq#: 80000001
Table 7 Command output
Field |
Description |
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 itself |
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 OSPFv3 route calculation log information for OSPFv3 process 1.
<Sysname>display ospfv3 1 event-log spf
OSPFv3 Process 1 with Router ID 1.3.3.3
Date Time Duration Intra Inter External Reason
2020-12-17 07:55:30 0.258827 0 0 0 Intra-area LSA
2020-12-17 07:55:30 0.679 0 0 0 Intra-area LSA
2020-12-17 07:55:30 0.51576 0 0 0 Intra-area LSA
2020-12-17 07:55:30 0.372 0 0 0 Intra-area LSA
2020-12-17 07:55:25 4.948353 0 0 0 Intra-area LSA
2020-12-17 07:55:25 0.5288 0 0 0 Area 0 full neighbor
2020-12-17 07:55:21 1.66013 0 0 0 Intra-area LSA
2020-12-17 07:55:20 0.450905 0 0 0 Intra-area LSA
2020-12-17 07:55:15 0.253688 0 0 0 Interface state change
2020-12-17 07:55:15 0.5693 0 0 0 Intra-area LSA
2020-03-02 07:47:54 0.156 0 0 0 Intra-area SRv6 tunnel
Table 8 Command output
Field |
Description |
Date |
Date when the route calculation starts, in YYYY-MM-DD format. YYYY represents the year, MM represents the month, and DD represents the day. |
Time |
Time when the route calculation starts, in hh:mm:ss format. hh represents the hour, mm represents the minutes, and ss represents the seconds. |
Duration |
Duration of the route calculation, in seconds. |
Intra |
Number of intra-area routes newly installed in the IPv6 routing table. |
Inter |
Number of inter-area routes newly installed in the IPv6 routing table. |
External |
Number of external routes newly installed in the IPv6 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. · 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. · Intra-area SRv6 tunnel—Intra-area SRv6 tunnel changes. · Others—Other reasons. |
# Display OSPFv3 neighbor log information for OSPFv3 process 1.
<Sysname> display ospfv3 1 event-log peer
OSPFv3 Process 1 with Router ID 1.1.1.1
Date Time Router ID Reason InstID Interface
2019-09-02 16:39:13 1.3.3.3 IntPhyChange 0 HGE1/0/1
2019-09-02 16:36:46 1.3.3.3 IntPhyChange 0 HGE1/0/1
2019-09-02 16:34:49 1.3.3.3 BFDDown 0 HGE1/0/1
2019-09-02 10:08:45 1.3.3.3 DeadExpired 0 HGE1/0/2
2019-09-02 10:08:39 1.3.3.3 DeadExpired 0 VLINK1
2019-09-02 10:08:08 1.3.3.3 BFDDown 0 HGE1/0/1
Table 9 Command output
Field |
Description |
Date |
Date when the neighbor state changes, in YYYY-MM-DD format. YYYY represents the year, MM represents the month, and DD represents the day. |
Time |
Time when the neighbor state changes, in hh:mm:ss format. hh represents the hour, mm represents the minutes, and ss represents the seconds. |
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. · ResetOspfv3—The OSPFv3 process is reset. · UndoOspfv3—The OSPFv3 process is deleted. · UndoArea—The OSPFv3 area is deleted. · UndoInt—The interface is disabled. · IntLogChange—The logical attribute of the interface has changed. · IntPhyChange—The physical attribute of the interface has changed. · DeadExpired—The dead timer expires. · Retrans—Excessive retransmissions. · BFDDown—The interface is shut down by BFD. · SilentInt—The interface is configured as a silent interface. · ConfStubArea—The interface is configured with stub area parameters. · ConfNssaArea—The interface is configured with NSSA area parameters. · VlinkDown—The virtual link goes down. · ShamlinkDown—The sham link goes down. · BadLSReq—The interface receives BadLSReq events. · SeqMismatch—The interface receives SeqNumberMismatch events. · Way—The interface receives 1-Way events. |
InstID |
Instance ID for an interface. |
Interface |
Interface name. |
display ospfv3 global-statistics
Use display ospfv3 global-statistics to display global OSPFv3 statistics.
Syntax
display ospfv3 global-statistics [ public | vpn-instance vpn-instance-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
public: Specifies the public network.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Usage guidelines
If you do not specify the public keyword or the vpn-instance vpn-instance-name option, this command displays global OSPFv3 statistics for the public network and all VPN instances.
Examples
# Display global OSPFv3 statistics.
<Sysname> display ospfv3 global-statistics
OSPFv3 global statistics
Instance count : 1
Process count : 2
Interface information
Down : 1
Up : 1
Neighbor information
Down : 0
Init : 0
Attempt : 0
2-Way : 0
ExStart : 0
Exchange : 0
Loading : 0
Full : 0
Packets sent : 0
Packets received : 0
LSA count : 2
Route count : 1
Table 10 Command output
Field |
Description |
Instance count |
This field displays the number of VPN instances and public network that are configured with OSPFv3. · If OSPFv3 is configured only for the public network, the value is fixed at 1. · If OSPFv3 is configured only for VPN instances, the value equals the number of the VPN instances. · If OSPFv3 is configured for both the public network and VPN instances, the value equals the number of VPN instances plus 1. |
Process count |
Number of OSPFv3 processes. |
Interface information |
Statistics about interface status. |
Down |
Number of interfaces in Down status. |
Up |
Number of interfaces in Up status. |
Neighbor information |
Statistics about neighbor status. |
Down |
Number of neighbor routers in Down status. |
Attempt |
Number of neighbor routers in Up status. |
Init |
Number of neighbor routers in Init status. |
2-Way |
Number of neighbor routers in 2-Way status. |
ExStart |
Number of neighbor routers in ExStart status. |
Exchange |
Number of neighbor routers in Exchange status. |
Loading |
Number of neighbor routers in Loading status. |
Full |
Number of neighbor routers in Full status. |
Packets sent |
Number of OSPFv3 packets sent. |
Packets received |
Number of OSPFv3 packets received. |
LSA count |
Total number of LSAs in the LSDB. |
Route count |
Total number of OSPFv3 routes. |
display ospfv3 graceful-restart
Use display ospfv3 graceful-restart to display GR information.
Syntax
display ospfv3 [ process-id ] graceful-restart [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays GR information for all processes.
verbose: Displays detailed GR information. If you do not specify this keyword, the command displays brief GR information.
Examples
# Display brief GR information for all OSPFv3 processes (GR restarter).
<Sysname> display ospfv3 graceful-restart
OSPFv3 Process 1 with Router ID 3.3.3.3
Graceful-restart capability : Enable
Graceful-restart support : Planned and unplanned, Partial
Helper capability : Enable
Helper support : Planned and unplanned
Current GR state : Normal
Graceful-restart period : 120 seconds
Number of neighbors under helper: 0
Number of restarting neighbors : 0
Last exit reason:
Restarter: None
Helper : None
Table 11 Command output
Field |
Description |
OSPFv3 Process 1 with Router ID 3.3.3.3 |
The GR status of OSPFv3 process 1 with router ID 3.3.3.3 is displayed. |
Graceful-restart capability |
Whether OSPFv3 GR is enabled: · Enabled. · Disabled. |
Graceful-restart support |
GR modes that the process supports (displayed only when GR is enabled): · Planned and unplanned—Supports both planned and unplanned GR. · Planned only—Supports only planned GR. · Partial—Supports partial GR. · Global—Supports global GR. |
Helper capability |
Whether OSPFv3 GR helper is enabled: · Enabled. · Disabled. |
Helper support |
Policies and GR modes that the GR helper supports: · Strict LSA check—The GR helper supports strict LSA checking. · Planned and unplanned—The GR helper supports both planned and unplanned GR. · Planned only—The GR helper supports only planned GR. |
Current GR state |
GR status: · Normal—GR is not in progress or has completed. · Under GR—GR is in progress. · Under Helper—The process is acting as GR helper. |
Graceful-restart period |
GR restart interval. |
Number of neighbors under helper |
Number of neighbors in GR helper status. |
Number of restarting neighbors |
Number of neighbors in GR restarter status. |
Last exit reason |
Last exit reason: · Restarter—Reason that the restarter exited most recently: ¡ None. ¡ Completed—GR is completed. ¡ Interval timer is fired—The GR timer expires. ¡ Interface state change—An interface state change occurs. ¡ Received 1-way hello—The device receives 1-way hello packets from the neighbor. ¡ Reset neighbor—The neighbor is reset. ¡ DR or BDR change—The DR or BDR changes. · Helper—Reason that the helper exited most recently: ¡ None. ¡ Completed—GR is completed. ¡ Received 1-way hello—The device receives 1-way hello packets from the neighbor. ¡ Grace Period timer is fired—The GR timer expires. ¡ Lsa check failed—An LSA change on the GR helper is detected. ¡ Reset neighbor—The neighbor is reset. ¡ Received MAXAGE gracelsa but neighbor is not full—The device receives Grace-LSAs that reached the maximum age, but the neighbor is not in Full state. |
# Display detailed GR information for all OSPFv3 processes (GR restarter).
<Sysname> display ospfv3 graceful-restart verbose
OSPFv3 Process 1 with Router ID 3.3.3.3
Graceful-restart capability : Enable
Graceful-restart support : Planned and unplanned, Partial
Helper capability : Enable
Helper support : Planned and unplanned
Current GR state : Normal
Graceful-restart period : 120 seconds
Number of neighbors under helper: 0
Number of restarting neighbors : 0
Last exit reason:
Restarter: None
Helper : None
Area: 0.0.0.0
Area flag: Normal
Area up interface count: 1
Virtual-link Neighbor-ID: 100.1.1.1, Neighbor-state: Full
Restarter state: Normal State: P-2-P Type: Virtual
Interface: 6696 (HundredGigE1/0/2), Instance-ID: 0
Local IPv6 address: 200:1:FFFF::1
Remote IPv6 address: 201:FFFF::2
Transit area: 0.0.0.1
Last exit reason:
Restarter: None
Helper : None
Neighbor GR state Last helper exit reason
100.1.1.1 Normal None
Area: 0.0.0.1
Area flag: Transit
Area up interface count: 3
Interface: 5506 (HundredGigE1/0/3), Instance-ID: 0
Restarter state: Normal State: DR Type: Broadcast
Last exit reason:
Restarter: None
Helper : None
Neighbor count of this interface: 0
Number of neighbors under helper: 0
Interface: 6696 (HundredGigE1/0/2), Instance-ID: 0
Restarter state: Normal State: DR Type: Broadcast
Last exit reason:
Restarter: None
Helper : None
Neighbor count of this interface: 1
Number of neighbors under helper: 0
Neighbor GR state Last helper exit reason
100.1.1.1 Normal None
Area: 0.0.0.5
Area flag: NSSANoSummaryNoImportRoute
7/5 translator state: Disabled
7/5 translate stability timer interval: 0
Area up interface count: 0
Table 12 Command output
Field |
Description |
Area |
Area ID. |
Area flag |
Type of the area: · Normal. · Transit. · Stub. · StubNoSummary—Totally stub area. · NSSA. · NSSANoSummary—Totally NSSA area. · NSSANoSummaryNoImportRoute—Totally NSSA area with the no-import-route keyword configured. |
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 (in seconds) for Type-7 LSA-to-Type-5 LSA translation. |
Area up interface count |
Number of up interfaces in the area. |
Interface |
Interface in the area, or the output interface of the virtual link. |
Restarter state |
Restarter state on the interface. |
State |
Interface state. |
Type |
Interface network type. |
Neighbor count of this interface |
Number of neighbors on the interface. |
Neighbor |
Neighbor router ID. |
GR state |
Neighbor GR state: · Normal—GR is not in progress or has completed. · Under GR—GR is in process. · Under Helper—The process is acting as GR helper. |
Last helper exit reason |
Reason that the helper exited most recently. |
Virtual-link Neighbor-ID |
Router ID of the virtual link's neighbor. |
Neighbor-State |
Neighbor or virtual link state: Down, Init, 2-Way, ExStart, Exchange, Loading, and Full. |
Local IPv6 address |
Local IPv6 address of the neighbor relationship. |
Remote IPv6 address |
Peer IPv6 address of the neighbor relationship. |
Transit area |
Transit area ID. |
display ospfv3 interface
Use display ospfv3 interface to display OSPFv3 interface information.
Syntax
display ospfv3 [ process-id ] interface [ interface-type interface-number | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.
interface-type interface-number: Specifies an interface by its type and number.
verbose: Displays detailed information about all OSPFv3 interfaces.
Usage guidelines
If you do not specify a process, this command displays brief OSPFv3 interface information for all processes.
If you do not specify the interface-type interface-number argument or the verbose keyword, this command displays brief information about all OSPFv3 interfaces.
Examples
# Display OSPFv3 information about HundredGigE 1/0/1.
<Sysname> display ospfv3 interface hundredgige 1/0/1
OSPFv3 Process 1 with Router ID 1.1.1.1
Area: 0.0.0.0
-------------------------------------------------------------------------
HundredGigE1/0/1 is up, line protocol is up
Interface ID 3 Instance ID 0
IPv6 prefixes
FE80::200:12FF:FE34:1 (Link-Local address)
2001::1
Cost: 1 State: BDR Type: Broadcast MTU: 1500
Cost source: Default
Priority: 1
Designated router: 2.2.2.2
Backup designated router: 1.1.1.1
Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit delay 1
FRR backup: Enabled
FRR TI-LFA: Enabled
Neighbor count is 1, Adjacent neighbor count is 1
Primary path detection mode: BFD echo
Keychain authentication: Enabled (test), inherited
Exchanging/Loading neighbors: 0
BFD: control
Wait timer: Off, LsAck timer: Off
Prefix-suppression is enabled
Table 13 Command output
Field |
Description |
Area |
Area ID that the interface belongs to. |
Interface ID |
Interface ID. |
Instance ID |
Instance ID. |
IPv6 prefixes |
IPv6 prefix. |
Cost |
Cost value of the interface. |
State |
Interface state: · DOWN—No protocol traffic can be sent or received on the interface. · 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. |
Type |
Network type of the interface: PTP (P2P), PTMP (P2MP), Broadcast, or NBMA. |
MTU |
MTU value of the interface. |
Cost source |
Link cost source of the interface: · Default—Default link cost. · Manual—Manually specified link cost. · Track—Interface cost applied when the state of the track entry associated with the interface becomes negative. |
Priority |
DR priority of the interface. |
Designated router |
DR on this link. |
Backup designated router |
BDR on this link. |
Timers |
Time intervals in seconds configured on the interface: · Hello—Hello interval. · Dead—Dead interval. · Poll—Polling interval on an NBMA network. · Retransmit—LSA retransmission interval. |
Transmit Delay |
LSA transmission delay on the interface, in seconds. |
FRR backup |
Whether LFA calculation is enabled on an interface: · Enabled. · Disabled. |
FRR TI-LFA |
TI-LFA calculation status: · Disabled. · Enabled. |
Neighbor count |
Number of neighbors on the interface. |
Primary path detection mode |
Primary link detection mode: · BFD ctrl—BFD control packet mode. · BFD echo—BFD echo packet mode. |
Adjacent neighbor count |
Number of adjacencies on the interface. |
Cryptographic authentication: HMAC-SM3, key ID: xx, inherited |
HMAC-SM3 authentication is enabled for the interface, and the key ID is xx. The inherited attribute indicates that the interface is using the authentication mode specified for the area to which the interface belongs. |
Cryptographic authentication: HMAC-SHA-256, key ID: xx, inherited |
HMAC-SHA-256 authentication is enabled for the interface, and the key ID is xx. The inherited attribute indicates that the interface is using the authentication mode specified for the area to which the interface belongs. |
Keychain authentication: Enabled (test), inherited |
Keychain authentication is enabled for the interface, and the keychain test is used. The inherited attribute indicates that the interface is using the authentication mode specified for the area to which the interface belongs. |
BFD |
BFD is enabled for the interface. control represents the BFD control packet mode. |
Exchanging/Loading neighbors |
Number of neighbors in Exchanging or Loading state. |
Wait timer |
Wait timer state. |
LsAck timer state. |
display ospfv3 lsdb
Use display ospfv3 lsdb to display OSPFv3 LSDB information.
Syntax
display ospfv3 [ process-id ] lsdb [ { e-router | external | grace | inter-prefix | inter-router | intra-prefix | intra-te | link | locator | network | nssa | router | router-information | unknown [ type ] } [ link-state-id ] [ originate-router router-id | self-originate ] | statistics | total | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 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 processes.
e-router: Displays E-Router LSAs (Type-33 LSAs).
external: Displays AS external LSAs (Type-5 LSAs).
grace: Displays Grace-LSAs (Type-11 LSAs).
inter-prefix: Displays Inter-area-prefix LSAs (Type-3 LSAs).
inter-router: Displays Inter-area-router LSAs (Type-4 LSAs).
intra-prefix: Displays Intra-area-prefix LSAs (Type-9 LSAs).
intra-te: Displays Intra-area-TE LSAs (Type-10 LSAs).
link: Displays Link-LSAs (Type-8 LSAs).
locator: Displays Locator LSAs (Type-42 LSAs).
network: Displays Network-LSAs (Type-2 LSAs).
nssa: Displays NSSA LSAs (Type-7 LSAs).
router: Displays Router-LSAs (Type-1 LSAs).
router-information: Displays Router-Information LSAs (Type-12 LSAs).
unknown: Displays unknown LSAs.
type: Specifies an LSA type, a hexadecimal string of 0 to ffff. If you do not specify this argument, the command displays all unknown LSAs.
link-state-id: Specifies a link state ID in IPv4 address format.
originate-router router-id: Specifies an advertising router by its ID.
self-originate: Displays locally originated LSAs.
statistics: Displays LSA statistics.
total: Displays the total number of LSAs in the LSDB.
verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.
Examples
# Display OSPFv3 LSDB information.
<Sysname> display ospfv3 lsdb
OSPFv3 Process 1 with Router ID 1.1.1.1
Link-LSA (Interface HundredGigE1/0/1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum Prefix
0.15.0.8 2.2.2.2 0691 0x80000041 0x8315 1
0.0.0.3 1.1.1.1 0623 0x80000001 0x0fee 1
Router-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum Link
0.0.0.0 1.1.1.1 0013 0x80000068 0x5d5f 2
0.0.0.0 2.2.2.2 0024 0x800000ea 0x1e22 0
Network-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum
0.15.0.8 2.2.2.2 0019 0x80000007 0x599e
Intra-Area-Prefix-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum Prefix Reference
0.0.0.2 2.2.2.2 3600 0x80000002 0x2eed 2 Network-LSA
0.0.0.1 2.2.2.2 0018 0x80000001 0x1478 1 Network-LSA
Intra-Area-TE-LSA (Area 0.0.0.0)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum
0.0.0.1 2.2.2.2 0114 0x80000001 0xb542
0.0.0.0 2.2.2.2 0197 0x80000001 0xe79f
Router-Information-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum
0.0.0.0 1.1.1.1 0011 0x80000034 0x0370
0.0.0.0 2.2.2.2 0011 0x8000002e 0x0570
E-Router-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum
0.0.0.0 1.1.1.1 0011 0x80000034 0x0370
0.0.0.0 2.2.2.2 0011 0x8000002e 0x0570
Locator-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum
0.0.0.0 1.1.1.1 0011 0x80000034 0x0370
0.0.0.0 2.2.2.2 0011 0x8000002e 0x0570
Table 14 Command output
Field |
Description |
Origin router |
Originating router. |
Age |
Age of LSAs. |
SeqNumber |
LSA sequence number. |
Checksum |
LSA checksum. |
Prefix |
Number of prefixes. |
Link |
Number of links. |
Reference |
Type of referenced LSA. |
# Display Link LSA information in the LSDB.
<Sysname> display ospfv3 lsdb link
OSPFv3 Process 1 with Router ID 1.1.1.1
Link-LSA (Interface HundredGigE1/0/1)
-------------------------------------------------------------------------
LS age : 833
LS type : Link-LSA
Link state ID : 0.15.0.8
Originating router: 2.2.2.2
LS seq number : 0x80000041
Checksum : 0x8315
Length : 56
Priority : 1
Options : 0x000013 (-|R|-|x|E|V6)
Link-Local address: fe80::200:5eff:fe00:100
Number of prefixes: 1
Prefix : 1001::/64
Prefix options: 0 (-|R|-|x|E|V6)
Table 15 Command output
Field |
Description |
LS age |
Age of LSA. |
LS type |
Type of LSA. |
Link state ID |
Link state ID. |
Originating router |
Originating router. |
LS seq number |
LSA sequence number. |
Checksum |
LSA checksum. |
Length |
LSA length. |
Priority |
Router priority. |
Options |
Options. |
Link-Local address |
Link-local address. |
Number of prefixes |
Number of prefixes. |
Prefix |
Address prefix. |
Prefix options |
Prefix options. |
# Display information about Intra-Area-TE LSAs.
<Sysname> display ospfv3 lsdb intra-te
OSPFv3 Process 1 with Router ID 1.1.1.1
Intra-Area-TE-LSA (Area 0.0.0.0)
-------------------------------------------------------------------------
LS age : 191
LS type : Intra-Area-TE-LSA
Link state ID : 0.0.0.1
Originating router : 1.1.1.1
LS seq number : 0x80000001
Checksum : 0xB542
Length : 64
Link state information :
Link type : Broadcast
Neighbor interface ID : 1
Neighbor router ID : 2.2.2.2
Local interface address : 1001::1
Remote interface address : 1001::2
TE Metric : 1
Maximum Bandwidth : 1250000 bytes/sec
Maximum Reservable BW : 625000 bytes/sec
Administrative Group : 0x0
IGP Metric : 1
Unreserved Bandwidth for each TE Class:
TE class 0 = 375000 bytes/sec
TE class 1 = 375000 bytes/sec
TE class 2 = 375000 bytes/sec
TE class 3 = 375000 bytes/sec
TE class 4 = 375000 bytes/sec
TE class 5 = 375000 bytes/sec
TE class 6 = 375000 bytes/sec
TE class 7 = 375000 bytes/sec
Unreserved Bandwidth for each TE Class:
TE class 0 = 0 bytes/sec
TE class 1 = 0 bytes/sec
TE class 2 = 0 bytes/sec
TE class 3 = 0 bytes/sec
TE class 4 = 0 bytes/sec
TE class 5 = 0 bytes/sec
TE class 6 = 0 bytes/sec
TE class 7 = 0 bytes/sec
Bandwidth Constraint Model: Prestandard DS-TE RDM
Bandwidth Constraints:
BC [0] = 625000 bytes/sec
BC [1] = 0 bytes/sec
LS age : 274
LS type : Intra-Area-TE-LSA
Link state ID : 0.0.0.0
Originating router : 1.1.1.1
LS seq number : 0x80000001
Checksum : 0xE79F
Length : 40
IPv6 Router ID : 86::86
Table 16 Command output
Field |
Description |
LS age |
LSA aging time. |
LS type |
LSA type. |
Link state ID |
Link state ID. |
Originating router |
Originating router. |
LS seq number |
LSA sequence number. |
Checksum |
LSA checksum. |
Length |
LSA length. |
Link state information |
Link state information: · Link type: ¡ Point To Point. ¡ Broadcast. ¡ NBMA. ¡ Point To MultiPoint. ¡ Other type. · Neighbor interface ID. · Neighbor router ID. · Local interface address. · Remote interface address. · TE metric. · Maximum bandwidth—Maximum bandwidth that can be used to forward MPLS TE traffic. · Maximum Reservable BW—Maximum bandwidth that can be reserved. · Administrative Group. · IGP Metric. · Unreserved Bandwidth for each TE Class—Bandwidth that can be reserved for each TE class. · Bandwidth Constraint Model: ¡ Prestandard DS-TE RDM. ¡ IETF DS-TE RDM. ¡ IETF DS-TE MAM. · Bandwidth Constraints—Bandwidth constraint value. The prestandard mode supports two BCs and the IETF mode supports four BCs. |
IPv6 Router ID |
IPv6 router ID of the router. |
# Display information about Router-Information LSAs.
<Sysname> display ospfv3 lsdb router-information
OSPFv3 Process 1 with Router ID 61.61.61.61
Router-Information-LSA (Area 0.0.0.0)
-------------------------------------------------------------------------
LS age : 8
LS type : Router-Information-LSA
Link state ID : 0.0.0.0
Originating router : 61.61.61.61
LS seq number : 0x80000001
Checksum : 0xED55
Length : 52
SRv6 capability :
Flags (O) : 1
SRv6 node MSD :
Segment Left : 5
End Pop MSD : 5
T.Insert MSD : 5
T.Encaps MSD : 5
End D MSD : 5
SRv6 algorithm :
Algorithm : 0
Table 17 Command output
Field |
Description |
LS age |
LSA aging time. |
LS type |
LSA type. |
Link state ID |
Link state ID. |
Originating router |
Originating router. |
LS seq number |
LSA sequence number. |
Checksum |
LSA checksum. |
Length |
LSA length. |
SRv6 capability |
SRv6 capability. |
Flags (O) |
SRv6 capability sub-TLV information: O flag. When the O flag is set, the router supports OAM flag. |
SRv6 node MSD |
SRv6 node maximum SID Depths (MSD) sub-TLV information. |
Segment Left |
Value of the SRH segment left field. |
End Pop MSD |
Maximum number of SIDs that can be popped out by the node that supports Penultimate Segment Pop of the SRH (PSP) or Ultimate Segment Pop of the SRH (USP). |
T.Insert MSD |
Maximum number of SIDs that the transit node can insert into a packet through the SR policy. If the destination address of a packet is neither the local address of the device nor a local SID, the device is a transit node of the packet. |
T.Encaps MSD |
Maximum number of SIDs that the transit node can encapsulate into a packet through the SR policy. |
End D MSD |
Maximum number of SIDs that can be decapsulated. |
SRv6 algorithm |
SRv6 prefix-related algorithm. Options include: · 0—SPF algorithm. · 1—Strict SPF algorithm. |
# Display information about Locator LSAs.
<Sysname> display ospfv3 lsdb locator
OSPFv3 Process 1 with Router ID 2.2.2.2
Locator-LSA (Area 0.0.0.0)
-------------------------------------------------------------------------
LS age : 12
LS type : Locator-LSA
Link state ID : 0.0.0.0
Originating router : 2.2.2.2
LS seq number : 0x80000002
Checksum : 0xED57
Length : 72
SRv6 locator :
Route type : Intra-Area
Locator : 2001::/64
Metric : 0
Flags (N/A) : 1/0
Algorithm : 0
SRv6 End SID :
SID : 2001::1:0:0:0
Function type : End with PSP
Table 18 Command output
Field |
Description |
LS age |
LSA aging time. |
LS type |
LSA type. |
Link state ID |
Link state ID. |
Originating router |
Originating router. |
LS seq number |
LSA sequence number. |
Checksum |
LSA checksum. |
Length |
LSA length. |
SRv6 locator |
SRv6 Locator TLV information. |
Route type |
Route type. Options include: · Intra-Area—Intra-area route. · Inter-Area—Inter-area route. · AS External—AS-external route, which will be advertised to all areas except for the stub and NSSA areas. · NSSA External—AS-external route, which will be advertised within the NSSA area. |
Flags (N/A) |
Flag: · N—N flag. This flag is set when the locator uniquely identifies a node. · A—A flag. This flag is set when the locator is configured with anycast. |
Algorithm |
Prefix-related algorithm: · 0—SPF algorithm. · 1—Strict SPF algorithm. |
SRv6 End SID |
SRv6 end SID information. |
SRv6 End.M SID |
SRv6 End.M SID information. |
SID |
End SID value. |
Function type |
SID function type. Options include: · End (no PSP, no USP). · End with PSP. · End with USP. · End with PSP&USP. · End.X (no PSP, no USP). · End.X with PSP. · End.X with USP. · End.X with PSP&USP. · End.T (no PSP, no USP). · End.T with PSP. · End.T with USP. · End.T with PSP&USP. · End.DT6. · End.DX6. |
# Display information about E-Router LSAs.
<Sysname> display ospfv3 lsdb e-router
OSPFv3 Process 1 with Router ID 9.9.9.9
E-Router-LSA (Area 0.0.0.0)
-------------------------------------------------------------------------
LS age : 27
LS type : E-Router-LSA
Link state ID : 0.0.0.0
Originating router : 9.9.9.9
LS seq number : 0x80000002
Checksum : 0x4269
Length : 108
Options : 0x000013 (-|R|-|x|E|V6)
Link connected to : a Transit Network
Metric : 1
Interface ID : 285
Neighbor interface ID: 285
Neighbor router ID : 9.9.9.9
Link tag : 100
SRv6 LAN End.X SID TLV:
Neighbor router ID: 1.2.3.4
SID : 2001::2:0:0:0
Function type : End with PSP
Algorithm : 0
Weight : 0
Flags (B/S/P) : 0/0/0
SRv6 LAN End.X SID TLV:
Neighbor router ID: 5.5.5.5
SID : 2001::1:0:0:0
Function type : End with PSP
Algorithm : 0
Weight : 0
Flags (B/S/P) : 0/0/0
Table 19 Command output
Field |
Description |
LS age |
LSA aging time. |
LS type |
LSA type. |
Link state ID |
Link state ID. |
Originating router |
Originating router. |
LS seq number |
LSA sequence number. |
Checksum |
LSA checksum. |
Length |
LSA length. |
Options |
LSA options: · DC—On-demand links are supported. · R—Whether the router is an active router. · N—Whether NSSA-external LSAs are supported. · x—Reserved. · E—AS-external LSA receiving capability. · V6—Whether to participate in IPv6 route calculation. |
Link connected to |
Type of the network to which the link is connected: · another Router (Point To Point)—P2P network. · a Transit Network—Broadcast network. · a Virtual Link—Virtual link. · Unknown—Unknown network. |
SRv6 End.X SID TLV |
Information about the SRv6 End.X SID sub-TLV of the P2P adjacency link. |
SRv6 LAN End.X SID TLV |
Information about the SRv6 End.X SID sub-TLV of the LAN adjacency link. |
Function type |
SID function type: · End (no PSP, no USP). · End with PSP. · End with USP. · End with PSP&USP. · End.X (no PSP, no USP). · End.X with PSP. · End.X with USP. · End.X with PSP&USP. · End.T (no PSP, no USP). · End.T with PSP. · End.T with USP. · End.T with PSP&USP. · End.DT6. · End.DX6. |
Algorithm |
Prefix-related algorithm: · 0—SPF algorithm. · 1—Strict SPF algorithm. |
Flags |
SRv6 flag: · B—Backup flag. If set, the adjacency SID is eligible for link protection. · S—Set flag. If set, the adjacency SID refers to a set of adjacencies. · P—Persistence flag. If set, the adjacency SID remains unchanged. |
# Display LSA statistics.
<System> display ospfv3 lsdb statistics
OSPFv3 Process 1 with Router ID 1.1.1.1
-------------------------------------------------------------------------
Area ID Router Network IntePre InteRou IntraPre NSSA IntraTE
0.0.0.0 1 0 0 0 1 0 0
Total 1 0 0 0 1 0 0
-------------------------------------------------------------------------
Area ID ERouter Locator RtrInfo
0.0.0.0 0 0 0
Total 0 0 0
-------------------------------------------------------------------------
Link Grace ASE
Total 4 0 0
Table 20 Command output
Field |
Description |
Area ID |
Area ID. |
Router |
Number of Type-1 LSAs. |
Network |
Number of Type-2 LSAs. |
IntePre |
Number of Type-3 LSAs. |
InteRou |
Number of Type-4 LSAs. |
IntraPre |
Number of Type-9 LSAs. |
NSSA |
Number of Type-7 LSAs. |
IntraTE |
Number of Type-10 LSAs. |
ERouter |
Number of Type-33 LSAs. |
Locator |
Number of Type-42 LSAs. |
RtrInfo |
Number of Type-12 LSAs. |
Link |
Number of Type-8 LSAs. |
Grace |
Number of Type-11 LSAs. |
ASE |
Number of Type-5 LSAs. |
# Display detailed OSPFv3 LSDB information.
<Sysname> display ospfv3 lsdb verbose
OSPFv3 Process 1 with Router ID 1.1.1.1
Link-LSA (Interface HundredGigE1/0/1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum Prefix
0.15.0.8 2.2.2.2 0691 0x80000041 0x8315 1
SendCnt: 0 RxmtCnt: 0 Status: Stale
0.0.0.3 1.1.1.1 0623 0x80000001 0x0fee 1
SendCnt: 0 RxmtCnt: 0 Status: Stale
Router-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum Link
0.0.0.0 1.1.1.1 0013 0x80000068 0x5d5f 2
SendCnt: 0 RxmtCnt: 0 Status: Stale
0.0.0.0 2.2.2.2 0024 0x800000ea 0x1e22 0
SendCnt: 0 RxmtCnt: 0 Status: Stale
Network-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum
0.15.0.8 2.2.2.2 0019 0x80000007 0x599e
SendCnt: 0 RxmtCnt: 0 Status: Stale
Intra-Area-Prefix-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum Prefix Reference
0.0.0.2 2.2.2.2 3600 0x80000002 0x2eed 2 Network-LSA
SendCnt: 0 RxmtCnt: 0 Status: Stale
0.0.0.1 2.2.2.2 0018 0x80000001 0x1478 1 Network-LSA
SendCnt: 0 RxmtCnt: 0 Status: Stale
Intra-Area-TE-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum
0.0.0.1 2.2.2.2 0066 0x80000001 0x2eed
SendCnt: 0 RxmtCnt: 0 Status: Stale
0.0.0.0 2.2.2.2 0066 0x80000001 0x1478
SendCnt: 0 RxmtCnt: 0 Status: Stale
Table 21 Command output
Field |
Description |
SendCnt |
Number of interfaces to send the LSA. |
RxmtCnt |
Number of LSAs in the link state retransmission list. |
Status |
LSA status: · Normal. · Delayed. · Maxage routed—The LSA has reached its maximum age. · Self originated. · Stale—A self-originated LSA is received during the GR process. |
display ospfv3 nexthop
Use display ospfv3 nexthop to display OSPFv3 next hop information.
Syntax
display ospfv3 [ process-id ] nexthop
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 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 OSPFv3 processes.
Examples
# Display next hop information for OSPFv3 process 1.
<Sysname> display ospfv3 1 nexthop
OSPFv3 Process 1 with Router ID 1.1.1.1
Nexthop : FE80::20C:29FF:FED7:F308 Interface: HGE1/0/2
RefCount: 4 Status : Valid
NbrID : 1.1.1.1 NbrIntID : 21
Nexthop : FE80::20C:29FF:FED7:F312 Interface: HGE1/0/3
RefCount: 3 Status : Valid
NbrID : 1.1.1.1 NbrIntID : 38
Table 22 Command output
Field |
Description |
Nexthop |
Next hop address. |
Interface |
Output interface. |
RefCount |
Reference count (routes that use the next hop). |
Status |
Next hop status: valid or invalid. |
NbrId |
Neighbor router ID. |
NbrIntID |
Neighbor interface ID. |
display ospfv3 non-stop-routing
Use display ospfv3 non-stop-routing to display OSPFv3 NSR information.
Syntax
display ospfv3 [ process-id ] non-stop-routing
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays OSPFv3 NSR information for all OSPFv3 processes.
Examples
# Display OSPFv3 NSR information.
<Sysname> display ospfv3 non-stop-routing
OSPFv3 Process 1 with Router ID 3.3.3.3
Nonstop Routing capability: Enabled
Upgrade phase : Normal
Table 23 Command output
Field |
Description |
Nonstop Routing capability |
NSR status: enabled or disabled. |
Upgrade phase |
NSR phase: · Normal—Normal status. · Preparation—Upgrade preparation phase. · Smooth—Upgrade phase. · Precalculation—Route pre-calculation phase. · Calculation—Route calculation phase. · Redistribution—Route redistribution phase. |
display ospfv3 peer
Use display ospfv3 peer to display information about OSPFv3 neighbors.
Syntax
display ospfv3 [ process-id ] [ area area-id ] peer [ [ interface-type interface-number ] [ verbose ] | peer-router-id | statistics ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify a process, this command displays neighbor information for all processes.
area area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is translated into the IPv4 address format. If you do not specify an area, this command displays neighbor information for all areas.
interface-type interface-number: Specifies an interface by its type and number.
verbose: Displays detailed neighbor information.
peer-router-id: Specifies a neighbor.
statistics: Displays OSPFv3 neighbor statistics.
Usage guidelines
If you do not specify an interface and a neighbor, this command displays neighbor information for all interfaces.
Examples
# Display neighbor information for OSPFv3 process 1.
<Sysname> display ospfv3 1 peer
OSPFv3 Process 1 with Router ID 1.1.1.1
Area: 0.0.0.1
-------------------------------------------------------------------------
Router ID Pri State Dead-Time InstID Interface
2.2.2.2 1 Full/DR 00:00:33 0 HGE1/0/1
Sham link destination: 3::3
Router ID Pri State Dead-Time InstID
100.1.1.1 1 Full/ - 00:00:39 0
Table 24 Command output
Field |
Description |
Router ID |
Neighbor router ID. |
Pri |
Neighboring router priority. |
State |
Neighbor state. |
Dead-Time |
Dead time remained. |
InstID |
Instance ID. |
Interface |
Interface connected to the neighbor. |
Sham link destination |
IPv6 destination address of the OSPFv3 sham link. |
# Display detailed neighbor information for OSPFv3 process 1.
<Sysname> display ospfv3 1 peer verbose
OSPFv3 Process 1 with Router ID 1.1.1.1
Area 0.0.0.1 interface HGE1/0/2's neighbors
Router ID: 2.2.2.2 Address: FE80::200:5EFF:FE00:100
State: Full Mode: Nbr is master Priority: 1
DR: 2.2.2.2 BDR: None MTU: 1500
Options is 0x000413 (AT|-|-|-|-|-|R|-|x|E|V6)
Dead timer due in 00:00:38
Neighbor is up for 00:19:07
Authentication sequence: (high) 0, (low) 59755
Neighbor state change count: 120
Database Summary List 0
Link State Request List 0
Link State Retransmission List 3
Neighbor interface ID: 8037
GR state: Normal
Grace period: 0 Grace period timer: Off
DD Rxmt Timer: Off LS Rxmt Timer: On
Last Neighbor Down Event:
Router ID: 1.1.1.1
Local Interface Id: 1 InstId: 0
Remote Interface Id: 1
Time: Mar 27 10:04:29 2023
Reason: Ospfv3 Interface Parameters Changed
Sham link neighbor with address: 3::3
Router ID: 100.1.1.1 Area: 0.0.0.1
State: Full Mode: Nbr is slave Priority: 1
DR: None BDR: None MTU: 0
Options is 0x000013 (-|-|-|-|-|-|R|-|x|E|V6)
Dead timer due in 00:00:36
Neighbor is up for 00:13:55
Authentication sequence: (high) 0, (low) 0
Neighbor state change count: 5
Database Summary List 0
Link State Request List 0
Link State Retransmission List 0
Neighbor interface ID: 2147483649
GR state: Normal
Grace period: 0 Grace period timer: Off
DD Rxmt Timer: Off LS Rxmt Timer: Off
Table 25 Command output
Description |
|
Router ID |
Neighbor router ID. |
Address |
Link-local address of the interface. |
State |
Neighbor state. |
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: · AT—Whether the Authentication Trailer option is carried in packets. · DC—The originating router supports OSPFv3 over on-demand circuits. · R—Whether the originating router is an active router. · N—Whether the originating router supports NSSA LSAs. · x—Reserved. · E—Whether the originating router can receive AS External LSAs. · V6—Whether the originating router takes part in IPv6 route calculation. |
Dead timer due in hh:mm:ss |
Remaining time for the dead timer, in hh:mm:ss format. hh represents the hours, mm represents the minutes, and ss represents the seconds. |
Neighbor is up for hh:mm:ss |
Uptime for the neighbor, in hh:mm:ss format. hh represents the hours, mm represents the minutes, and ss represents the seconds. |
Authentication sequence: (high) 0, (low) 59755 |
Authentication sequence number carried in the received packets. The high 32-bit value is 0, and the low 32-bit value is 59755. |
Neighbor state change count |
Count of neighbor state changes. |
Database Summary List |
Number of LSAs sent in DD packet. |
Link State Request List |
Number of LSAs in the link state request list. |
Link State Retransmission List |
Number of LSAs in the link state retransmission list. |
Neighbor interface ID |
Interface ID of the neighbor. |
GR state |
GR state: · Normal—GR is not in progress. · Doing GR—Acting as the GR restarter. · Complete GR. · Helper—Acting as the GR helper. |
Grace period |
Grace-LSA sending interval. |
Grace period timer |
Grace-LSA sending interval timer. |
DD Rxmt Timer |
DD packet retransmission timer. |
LS Rxmt Timer |
LSU retransmission timer. |
Sham link neighbor with address |
IPv6 neighbor address of the OSPFv3 sham link. |
Last Neighbor Down Event |
Latest neighbor down event. |
InstId |
OSPFv3 instance ID. |
Time |
Time when the neighbor went down, in the 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: · Ospfv3_resetconnect—The neighbor relationship was down due to memory insufficiency. · Ospfv3 Interface Parameters Changed—The interface settings were changed. · Reset ospfv3 command was performed—The reset ospf process command was executed. · Undo ospfv3 command was performed—The undo ospfv3 command was executed. · Undo area command was performed—The undo area command was executed. · Undo ospfv3 interface—The OSPFv3 interface was disabled. · Ospfv3 iflchange—The logical attribute of the interface was changed. · Ospfv3 ifachange—The physical attribute of the interface was changed. · DeadInterval timer expired—The dead timer expired. · Too many retransmissions—Excessive retransmissions. · BFD session down—The BFD session associated with OSPFv3 went down. · Silent Interface—The silent interface command was executed. · Configuring stub area—The stub area settings were changed. · Vlink down—The virtual link went down. · Configuring NSSA area—The NSSA area settings were changed. · Sham-link down—The sham link went down. · 1Way—The interface received 1-Way events. · SeqMismatch—The interface received SeqNumberMismatch events. · BadLSReq—The interface received BadLSReq events. · Dbfilter—The LSA filter settings on the specified interface were changed or the ACL used by the LSA filter was changed. |
# Display OSPFv3 neighbor statistics.
<Sysname> display ospfv3 peer statistics
OSPFv3 Process 1 with Router ID 1.1.1.1
-------------------------------------------------------------------------
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
Total 0 0 0 0 0 0 0 1 1
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 |
Area ID. |
Down |
In this state, neighbor initial state, the router has not received any information from a neighboring router for a period of time. |
Attempt |
This state is available only in an NBMA network. In this state, the OSPFv3 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. |
Init |
In this state, the device received a Hello packet from the neighbor but the packet contains no router ID of the neighbor. Mutual communication is not setup. |
2-Way |
Mutual communication between the router and its neighbor is available. DR/BDR election is finished under this state (or higher). |
ExStart |
In this state, the router decides on the initial DD sequence number and active/standby relationship of the two parties. |
Exchange |
In this state, the router exchanges DD packets with the neighbor. |
Loading |
In this state, the router sends LSRs to request the neighbor for needed LSAs. |
Full |
LSDB synchronization has been accomplished between neighbors. |
Total |
Total number of neighbors under the same state. |
Sham links' neighbors(Total: xx) |
Statistics about sham links' neighbors. The Total field displays the total number of neighbors. |
display ospfv3 request-queue
Use display ospfv3 request-queue to display OSPFv3 request list information.
Syntax
display ospfv3 [ process-id ] [ area area-id ] request-queue [ interface-type interface-number ] [ neighbor-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify an OSPFv3 process, this command displays OSPFv3 request list information for all OSPFv3 processes.
area area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is translated into the IPv4 address format. If you do not specify an OSPFv3 area, this command displays OSPFv3 request list information for all areas.
interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays OSPFv3 request list information for all interfaces.
neighbor-id: Specifies a neighbor's router ID. If you do not specify a neighbor, this command displays OSPFv3 request list information for all OSPFv3 neighbors.
Examples
# Display OSPFv3 request list information.
<Sysname> display ospfv3 request-queue
OSPFv3 Process 1 with Router ID 1.1.1.1
Area: 0.0.0.0
Interface HundredGigE1/0/1
-------------------------------------------------------------------------
Nbr-ID 1.3.3.3 Request List
Type LinkState ID AdvRouter SeqNum Age CkSum
0x4005 0.0.34.127 1.3.3.3 0x80000001 0027 0x274d
0x4005 0.0.34.128 1.3.3.3 0x80000001 0027 0x2d45
0x4005 0.0.34.129 1.3.3.3 0x80000001 0027 0x333d
0x4005 0.0.34.130 1.3.3.3 0x80000001 0027 0x3935
Table 27 Command output
Field |
Description |
Area |
Area ID. |
Interface |
Interface type and sequence number. |
Nbr-ID |
Neighbor ID. |
Request list |
Request list information. |
Type |
LSA type. |
LinkState ID |
Link state ID. |
AdvRouter |
Advertising router. |
SeqNum |
LSA sequence number. |
Age |
LSA age. |
CkSum |
Checksum. |
display ospfv3 retrans-queue
Use display ospfv3 retrans-queue to display retransmission list information.
Syntax
display ospfv3 [ process-id ] [ area area-id ] retrans-queue [ interface-type interface-number ] [ neighbor-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify an OSPFv3 process, this command displays retransmission list information for all OSPFv3 processes.
area area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is translated into the IPv4 address format. If you do not specify an OSPFv3 area, this command displays retransmission list information for all OSPFv3 areas.
interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays retransmission list information for all interfaces.
neighbor-id: Specifies a neighbor's router ID. If you do not specify a neighbor, this command displays retransmission list information for all neighbors.
Examples
# Display OSPFv3 retransmission list information.
<Sysname> display ospfv3 retrans-queue
OSPFv3 Process 1 with Router ID 1.1.1.1
Area: 0.0.0.0
Interface HundredGigE1/0/1
-------------------------------------------------------------------------
Nbr-ID 1.2.2.2 Retransmit List
Type LinkState ID AdvRouter SeqNum Age CkSum
0x2009 0.0.0.0 1.3.3.3 0x80000001 3600 0x49fb
Table 28 Command output
Field |
Description |
Area |
Area ID. |
Interface |
Interface type and sequence number. |
Nbr-ID |
Neighbor ID. |
Retransmit List |
Retransmission list information. |
Type |
LSA type. |
LinkState ID |
Link state ID. |
AdvRouter |
Advertising router. |
SeqNum |
LSA sequence number. |
Age |
LSA age. |
CkSum |
Checksum. |
display ospfv3 routing
Use display ospfv3 routing to display OSPFv3 route information.
Syntax
display ospfv3 [ process-id ] routing [ ipv6-address prefix-length ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays the OSPFv3 route information for all processes.
ipv6-address prefix-length: Specifies an IPv6 address. The ipv6-address argument specifies an IPv6 prefix. The prefix-length argument specifies a prefix length in the range of 0 to 128.
Examples
# Display OSPFv3 routing information.
<Sysname> display ospfv3 routing
OSPFv3 Process 1 with Router ID 9.9.9.9
-------------------------------------------------------------------------
I - Intra area route, E1 - Type 1 external route, N1 - Type 1 NSSA route
IA - Inter area route, E2 - Type 2 external route, N2 - Type 2 NSSA route
* - Selected route
*Destination: 1::/64
Type : IA Area : 0.0.0.1
AdvRouter : 2.2.2.2 Preference : 10
NibID : 0x23000003 Cost : 2
Interface : HGE1/0/1 BkInterface: HGE1/0/2
Nexthop : FE80::6AC7:45FF:FE5C:206
BkNexthop : N/A
Status : Rely
*Destination: 23::/64
Type : I Area : 0.0.0.1
AdvRouter : 3.3.3.3 Preference : 10
NibID : 0x23000001 Cost : 1
Interface : HGE1/0/1 BkInterface: GE1/0/2
Nexthop : ::
BkNexthop : N/A
Status : Direct
*Destination: 8::/64
Type : E2 Tag : 1
AdvRouter : 1.1.1.1 Preference : 150
NibID : 0x23000004 Cost : 1
Interface : HGE1/0/1 BkInterface: GE1/0/2
Nexthop : FE80::6AC7:45FF:FE5C:206
BkNexthop : N/A
Status : Rely
Total: 3
Intra area: 3 Inter area: 0 ASE: 0 NSSA: 0
Table 29 Command output
Field |
Description |
Destination |
Destination network segment. |
Type |
Route type. ECMP-back represents ECMP backup route information. |
Area |
Area ID. |
AdvRouter |
Advertising router. |
Preference |
OSPFv3 route preference. |
NibID |
Next hop ID. |
Cost |
Route cost value. |
Interface |
Type and number of the output interface or name of the SRv6 TE policy. |
BkInterface |
Backup output interface. |
Nexthop |
Primary next hop IP address. |
BkNexthop |
Backup next hop IP address. |
Status |
Route status: · Local—The route is on the local end and is not sent to the route management module. · Invalid—The next hop of the route is invalid. · Stale—The next hop of the route is stale. · Normal—The route is available. · Delete—The route is deleted. · Direct—The route is a direct route. · Rely—The route is a recursive route. |
Mirror FRR |
Mirror FRR information. |
Interface |
Output interface. |
AdvRouter |
Advertising router. |
Area |
Area ID. |
Tag |
Tag of external routes. |
Preference |
Route preference. |
Total |
Total number of routes. |
Intra area |
Number of intra-area routes. |
Inter area |
Number of inter-area routes. |
ASE |
Number of Type-5 external routes. |
NSSA |
Number of Type-7 external routes. |
TI-LFA |
TI-LFA backup information. |
PNode End SID |
End SID of the P node. |
QNode AdvID |
Router ID of the Q node. |
LsIndex |
Label stack index. |
Backup label stack (top->bottom) |
Backup path label stack. N/A indicates that no label stack exists. |
SR microloop-avoidance label stack index |
SR microloop avoidance label stack index. |
SR microloop label stack (top->bottom) |
SR microloop label stack arranged from top to bottom. |
display ospfv3 spf-tree
Use display ospfv3 spf-tree to display OSPFv3 SPF tree information.
Syntax
display ospfv3 [ process-id ] [ area area-id ] spf-tree [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 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 OSPFv3 processes.
area area-id: Specifies an OSPFv3 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 OSPFv3 areas.
verbose: Displays detailed OSPFv3 SPF tree information. If you do not specify this keyword, the command displays brief OSPFv3 SPF tree information.
Examples
# Display brief SPF tree information for Area 0 in OSPFv3 process 1.
<Sysname> display ospfv3 1 area 0 spf-tree
OSPFv3 Process 1 with Router ID 1.1.1.1
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 H-Nexthop changed
N-Link is a new path V-Link is involved
T-Node is tunnel destination
E-Node is SRv6-TE policy endpoint
Area: 0.0.0.0 Shortest Path Tree
SPFNode Type Flag SPFLink Type Cost Flag
>1.1.1.1 Router S R
-->2.2.2.2 RT2RT 1 C
-->2.2.2.2 RT2RT 1 P
>2.2.2.2 Router S T
-->1.1.1.1 RT2RT 1 P
Table 30 Command output
Field |
Description |
SPFNode |
SPF node, represented by the advertising router ID. Node type: · Network—Network node. · Router—Router node. 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. · E—The node is the destination node in the SRv6 TE policy. |
SPFLink |
SPF link, representing the advertising router ID. 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. · L—The link is on the area change list. |
# Display detailed SPF tree information for Area 0 in OSPFv3 process 1.
<Sysname> display ospfv3 1 area 0 spf-tree verbose
OSPFv3 Process 1 with Router ID 1.1.1.1
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 H-Nexthop changed
N-Link is a new path V-Link is involved
T-Node is tunnel destination
E-Node is SRv6-TE policy endpoint
Area: 0.0.0.0 Shortest Path Tree
>SPFNode[0]
AdvID : 1.1.1.1 LsID : 0.0.0.0
NodeType : Router Distance : 1
NodeFlag : S R TunDistance: 1
SRPDistance: 1
Tunnel count : 0
Policy count : 0
Nexthop count: 1
-->NbrID : 1.1.1.1 NbrIntID : 21
Interface : HGE1/0/2 NhFlag : Valid
BkInterface: HGE1/0/3 RefCount : 4
Nexthop : FE80::20C:29FF:FED7:F308
BkNexthop : FE80::4
MADuration : N/A
MALStack : N/A
SPFLink count: 1
-->AdvID : 1.1.1.1 LsID : 0.0.0.0
IntID : 232 NbrIntID : 465
NbrID : 2.2.2.2 LinkType : RT2RT
LinkCost : 1 LinkNewCost: 1
LinkFlag : C NexthopCnt : 0
ParentLink count: 1
-->AdvID : 1.1.1.1 LsID : 0.0.0.0
IntID : 215 NbrIntID : 466
NbrID : 2.2.2.2 LinkType : RT2RT
LinkCost : 1 LinkNewCost: 1
LinkFlag : P NexthopCnt : 0
>SPFNode[2]
AdvID : 4.4.4.4 LsID : 0.0.0.0
NodeType : Router Distance : 2
NodeFlag : S T TunDistance: 1
Tunnel count : 1
Policy count : 0
Nexthop count: 2
-->NbrID : 4.4.4.4 NbrIntID : 0
Interface : Tun1 NhFlag : Valid
BkInterface: N/A RefCount : 1
Nexthop : 4::44
BkNexthop : N/A
MADuration : N/A
MALStack : N/A
-->NbrID : 2.2.2.2 NbrIntID : 258
Interface : HGE1/0/1 NhFlag : Valid
BkInterface: N/A RefCount : 5
Nexthop : FE80::362E:A7FF:FE29:616
BkNexthop : N/A
MADuration : N/A
MALStack : N/A
SPFLink count: 0
ParentLink count: 1
-->AdvID : 4.4.4.4 LsID : 0.0.0.0
IntID : 259 NbrIntID : 259
NbrID : 4.4.4.4 LinkType : RT2NET
LinkCost : 1 LinkNewCost: 1
LinkFlag : P NexthopCnt : 0
Table 31 Command output
Field |
Description |
SPFNode |
SPF node. |
AdvID |
ID of the advertising router. |
LsID |
Link state ID. |
NodeType |
Node type. |
Distance |
Cost to the root node. |
NodeFlag |
Node flag. |
TunDistance |
Cost of the tunnel next hop from the root node to this node. |
Tunnel count |
Number of tunnels from the root node to this node. |
SRPDistance |
Cost applied when the next hop from the root node to this node is an SRv6 TE policy. |
Policy count |
Number of SRv6 TE policies from the root node to this node. |
PolicyName |
SRv6 TE policy name. |
EndPoint |
Destination node in the SRv6 TE policy. |
Color |
SRv6 TE policy color. |
Auto cost |
SRv6 TE policy IGP metric. |
Final cost |
Effective cost value of the SRv6 TE policy. |
Auto route |
Auto route type. In the current software version, only shortcut is supported. |
State |
SRv6 TE policy state. |
Nexthop count |
Number of next hops. |
NbrID |
Neighbor router ID. |
NbrIntID |
Neighbor interface ID. |
Interface |
Output interface. |
NhFlag |
Next hop flag: valid or invalid. |
BkInterface |
Backup output interface. |
RefCount |
Reference count (routes that use the backup next hop). |
Nexthop |
Next hop. |
BkNexthop |
Backup next hop. |
SPFLink count |
Number of SPF links. |
IntID |
Interface ID. |
LinkType |
Link type: · RT2RT—Router to router. · NET2RT—Network to router. · RT2NET—Router to network. |
LinkCost |
Link cost. |
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. · L—The link is on the area change list. |
NexthopCnt |
Number of next hops. |
ParentLinkCnt |
Number of parent links. |
MADuration |
SR microloop avoidance duration in milliseconds. |
MALStack |
SR microloop avoidance label stack. |
TiLfaNeighbor |
ID of the TI-LFA backup next hop neighbor. |
TiLfaInterface |
Output interface of the TI-LFA backup next hop. |
TiLfaNexthop |
TI-LFA backup next hop. |
PNode SrcID |
Source ID of the P node. |
QNode SrcID |
Source ID of the Q node. |
PNode prefix |
Prefix of the P node. N/A indicates that the prefix of the destination node is not displayed in the P space. |
PNode SidIndex |
Index value of the prefix SID for the P node. N/A indicates that the prefix SID of the destination node is not displayed in the P space. |
Protect |
TI-LFA/Remote LFA traffic protection type: Link—Link protection. Node—Node protection. |
Label stack |
Label stack. N/A indicates that no label stack exists. |
display ospfv3 statistics
Use display ospfv3 statistics to display OSPFv3 statistics.
Syntax
display ospfv3 [ process-id ] statistics [ error | packet [ interface-type interface-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays OSPFv3 statistics for all processes.
error: Displays error statistics. If you do not specify this keyword, the command displays OSPFv3 packet, LSA, and route statistics.
packet: Displays packet statistics.
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 OSPFv3 statistics.
<Sysname> display ospfv3 statistics
OSPFv3 Process 1 with Router ID 1.1.1.1
Packet Statistics
----------------------------------------------------------
Type Recv Send
Hello 1746 1284
DB Description 505 941
Ls Req 252 136
Ls Upd 851 1553
Ls Ack 416 450
Local Originated LSAs Statistics
----------------------------------------------------------
Type Count
Router-LSA 192
Network-LSA 0
Inter-Area-Prefix-LSA 0
Inter-Area-Router-LSA 0
AS-external-LSA 0
NSSA-LSA 0
Link-LSA 10
Intra-Area-Prefix-LSA 112
Grace-LSA 0
Unknown-LSA 0
Total 314
Routes Statistics
----------------------------------------------------------
Type Count
Intra Area 0
Inter Area 0
ASE 0
NSSA 0
Table 32 Command output
Field |
Description |
Packet Statistics |
Statistics about inbound and outbound packets. |
Hello |
Hello packet. |
DB Description |
DB description packet. |
Ls Req |
Link state request packet. |
Ls Upd |
Link state update packet. |
Ls Ack |
Link state acknowledgment packet. |
Local Originated LSAs Statistics |
Statistics about generated LSAs. |
Router-LSA |
Number of Type-1 LSAs. |
Network-LSA |
Number of Type-2 LSAs. |
Inter-Area-Prefix-LSA |
Number of Type-3 LSAs. |
Inter-Area-Router-LSA |
Number of Type-4 LSAs. |
AS-external-LSA |
Number of Type-5 LSAs. |
NSSA-LSA |
Number of Type-7 LSAs. |
Link-LSA |
Number of Type-8 LSAs. |
Intra-Area-Prefix-LSA |
Number of Type-9 LSAs. |
Grace-LSA |
Number of Type-11 LSAs. |
Unknown-LSA |
Number of Unknown-LSAs. |
Total |
Total number. |
Routes Statistics |
Number of routes. |
Intra Area |
Intra-area routes. |
Inter Area |
Inter-area routes. |
ASE |
Type-5 external routes. |
NSSA |
Type-7 external routes. |
# Display OSPFv3 error statistics.
<Sysname> display ospfv3 statistics error
OSPFv3 Process 1 with Router ID 1.1.1.1
0 : Transmit error 0 : Neighbor state low
0 : Packet too small 0 : Bad version
0 : Bad checksum 0 : Unknown neighbor
0 : Bad area ID 0 : Bad packet
0 : Packet dest error 0 : Inactive area packet
0 : Router ID confusion 0 : Bad virtual link
0 : HELLO: Hello-time mismatch 0 : HELLO: Dead-time mismatch
0 : HELLO: Ebit option mismatch 0 : DD: Ebit option mismatch
0 : DD: Unknown LSA type 0 : DD: MTU option mismatch
0 : REQ: Empty request 0 : REQ: Bad request
0 : UPD: LSA checksum bad 0 : UPD: Unknown LSA type
0 : UPD: Less recent LSA 0 : UPD: LSA length bad
0 : UPD: LSA AdvRtr id bad 0 : ACK: Bad ack packet
0 : ACK: Invalid ack 0 : Interface down
0 : Multicast incapable 0 : Authentication failure
0 : AuthSeqNumber error
Table 33 Command output
Field |
Description |
Transmit error |
Packets with error when being transmitted. |
Neighbor state low |
Packets received in low neighbor state. |
Packet too small |
Packets too small in length. |
Bad version |
Packets with wrong version. |
Bad checksum |
Packets with wrong checksum. |
Unknown neighbor |
Packets received from unknown neighbors. |
Bad area ID |
Packets with invalid area ID. |
Bad packet |
Packets illegal. |
Packet dest error |
Packets with wrong destination addresses. |
Inactive area packet |
Packets received in inactive areas. |
Router ID confusion |
Packets with duplicate router ID. |
Bad virtual link |
Packets on wrong virtual links. |
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: Ebit option mismatch |
DD packets with mismatched E-bit in the option field. |
DD: Unknown LSA type |
DD packets with unknown LSA type. |
DD: MTU option mismatch |
DD packets with mismatched MTU. |
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. |
UPD: LSA length bad |
LSU packets with wrong LSA length. |
UPD: LSA AdvRtr id bad |
LSU packets with wrong LSA advertising router. |
ACK: Bad ack packet |
Bad LSAck packets for LSU packets. |
ACK: Invalid ack |
Invalid LSAck packets. |
Interface down |
Shutdown times of the interface. |
Multicast incapable |
Failures to join the multicast group. |
Authentication failure |
Failures to authenticate the received packets. |
AuthSeqNumber error |
Authentication sequence number errors in the received packets. |
# Display OSPFv3 packet statistics for all processes and interfaces.
<Sysname> display ospfv3 statistics packet
OSPFv3 Process 1 with Router ID 1.1.1.1
Hello DD LSR LSU ACK Total
Input : 8727 128 28 1584 929 11396
Output: 8757 159 86 987 1513 11502
Area: 0.0.0.0
Area: 0.0.0.1
Interface: HundredGigE1/0/1
DD LSR LSU ACK Total
Input : 16 0 45 7 68
Output: 17 1 7 44 69
Interface: HundredGigE1/0/2
DD LSR LSU ACK Total
Input : 41 13 720 719 1493
Output: 54 41 750 713 1558
Table 34 Command output
Field |
Description |
Total |
Total number of packets. |
Input |
Number of received packets. |
Output |
Number of sent packets. |
Area |
Area ID. |
Interface |
Interface name. |
display ospfv3 vlink
Use display ospfv3 vlink to display OSPFv3 virtual link information.
Syntax
display ospfv3 [ process-id ] vlink
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays the OSPFv3 virtual link information for all OSPFv3 processes.
Examples
# Display OSPFv3 virtual link information.
<Sysname> display ospfv3 vlink
OSPFv3 Process 1 with Router ID 1.1.1.1
Virtual-link Neighbor-ID: 12.2.2.2, Neighbor-state: Full
Interface: 2348 (HundredGigE1/0/2), Instance-ID: 0
Local IPv6 address: 3:3333::12
Remote IPv6 address: 2:2222::12
Cost: 1 State: P-2-P Type: Virtual
Transit area: 0.0.0.1
Timers: Hello 10, Dead 40, Retransmit 5, Transmit delay 1
Keychain authentication: Enabled (test), inherited
Table 35 Command output
Field |
Description |
Virtual-link Neighbor-ID |
ID of the neighbor on the virtual link. |
Neighbor-State |
Neighbor state: Down, Init, 2-Way, ExStart, Exchange, Loading, or Full. |
Interface |
Number and name of the local interface on the virtual link. |
Cost |
Interface route cost. |
State |
Interface state. |
Type |
Virtual link. |
Transit Area |
Transit area ID. This field is displayed when a virtual link is present on the interface. |
Timers |
Values of OSPFv3 timers (in seconds): Hello, Dead, and Retransmit. |
Transmit delay |
LSA transmission delay on the interface, in seconds. |
Cryptographic authentication: HMAC-SM3, key ID: xx, inherited |
HMAC-SM3 authentication is enabled for the virtual link, and the key ID is xx. The inherited attribute indicates that the virtual link is using the authentication mode specified for the backbone area. |
Cryptographic authentication: HMAC-SHA-256, key ID: xx, inherited |
HMAC-SHA-256 authentication is enabled for the virtual link, and the key ID is xx. The inherited attribute indicates that the virtual link is using the authentication mode specified for the backbone area. |
Keychain authentication: Enabled (test), inherited |
Keychain authentication is enabled for the virtual link, and the keychain test is used. The inherited attribute indicates that the virtual link is using the authentication mode specified for the backbone area. |
distribute bgp-ls
Use distribute bgp-ls to advertise OSPFv3 link state information to BGP.
Use undo distribute bgp-ls to restore the default.
Syntax
distribute bgp-ls [ instance-id instance-id ]
undo distribute bgp-ls
Default
OSPFv3 link state information cannot be advertised to BGP.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
instance-id: Specifies an instance by its ID in the range of 0 to 65535. If you do not specify an instance, this command advertises OSPFv3 link state information of instance 0 to BGP.
Usage guidelines
After the device advertises OSPFv3 link state information to BGP, BGP can advertise the information for intended applications. For more information about BGP LS, see BGP configuration in Layer 3—IP Routing Configuration Guide.
This command does not apply to OSPFv3 processes in a VPN instance.
Examples
# Advertise link state information of OSPFv3 process 1 to BGP.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] distribute bgp-ls
dscp
Use dscp to set the DSCP value for outgoing OSPFv3 packets.
Use undo dscp to restore the default.
Syntax
dscp dscp-value
undo dscp
Default
The DSCP value for outgoing OSPFv3 packets is 48.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
dscp-value: Specifies the DSCP value in the range of 0 to 63 for outgoing OSPFv3 packets.
Examples
# Set the DSCP value for outgoing OSPFv3 packets to 63 in OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] dscp 63
event-log
Use event-log to set the number of OSPFv3 logs.
Use undo event-log to remove the configuration.
Syntax
event-log { lsa-flush | peer | spf } size count
undo event-log { lsa-flush | peer | spf } size
Default
The number of LSA aging logs, neighbor logs, or route calculation logs is 10.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
lsa-flush: Specifies the number of LSA aging logs.
peer: Specifies the number of neighbor logs.
spf: Specifies the number of route calculation logs.
size count: Specifies the number of OSPFv3 logs, in the range of 0 to 65535.
Examples
# Set the number of route calculation logs to 50 in OSPFv3 process 100.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] event-log spf size 50
fast-reroute
Use fast-reroute to configure OSPFv3 FRR.
Use undo fast-reroute to restore the default.
Syntax
fast-reroute { lfa [ abr-only | ecmp-shared ] | route-policy route-policy-name }
undo fast-reroute
Default
OSPFv3 FRR is disabled.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
lfa: Uses the LFA algorithm to calculate backup next hops.
abr-only: Uses the next hop of the route to the ABR as the backup next hop.
ecmp-shared: Calculates a backup next hop through LFA calculation for all routes, including ECMP routes. ECMP routes share one backup next hop. If you do not specify this keyword, OSPFv3 calculates a backup next hop through LFA calculation only for non-ECMP routes.
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
Do not use the fast-reroute lfa command together with the vlink-peer command.
To calculate a shared backup next hop through LFA calculation for ECMP routes with the same destination address, execute this command with the ecmp-shared keyword specified. If the next hops of all ECMP routes fail, OSPF uses the shared backup next hop to forward packets. The shared backup next hop is flushed to the RIB as an ECMP route. The state of the route is ECMP-back in the output from the display ospfv3 routing command.
Examples
# Enable FRR to calculate backup next hops for all routes by using LFA algorithm in OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] fast-reroute lfa ecmp-shared
fast-reroute tiebreaker
Use fast-reroute tiebreaker to set the priority for a backup path selection policy.
Use undo fast-reroute tiebreaker to restore the default.
Syntax
fast-reroute tiebreaker { lowest-cost | node-protecting } preference preference
undo fast-reroute tiebreaker { lowest-cost | node-protecting }
Default
The priority values of the node-protection and lowest-cost backup path selection policies are 40 and 20, respectively.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
lowest-cost: Sets a priority value for the lowest-cost backup path selection policy.
node-protecting: Sets a priority value for the node-protection backup path selection policy.
preference preference: Specifies a priority value in the range of 1 to 255. A higher value indicates a higher priority.
Usage guidelines
If you execute this command multiple times for a backup path selection policy, the most recent configuration takes effect.
When you configure multiple backup path selection policies for an OSPFv3 process, OSPFv3 first uses the policy with higher priority to calculate a backup path. If the backup path calculation fails, OSPFv3 works as follows:
· If the node-protection policy has a higher priority but the backup path calculation fails, OSPFv3 uses the lowest-cost policy for further calculation. If the backup path calculation still fails, OSPFv3 does not perform further backup path calculation.
· If the lowest-cost policy has a higher priority but the backup path calculation fails, OSPFv3 does not perform further backup path calculation.
Examples
# Set the priority value of the node-protection backup path selection policy to 100 for OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] fast-reroute tiebreaker node-protecting preference 100
Related commands
fast-reroute
filter
Use filter to configure inbound/outbound Inter-Area-Prefix-LSA filtering on an ABR.
Use undo filter to remove the configuration.
Syntax
filter { ipv6-acl-number | prefix-list prefix-list-name | route-policy route-policy-name } { export | import }
undo filter { export | import }
Default
Inter-Area-Prefix-LSAs are not filtered.
Views
OSPFv3 area view
Predefined user roles
network-admin
Parameters
ipv6-acl-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter inbound/outbound Inter-Area-Prefix-LSAs.
prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter inbound/outbound Inter-Area-Prefix-LSAs.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter inbound/outbound Inter-Area-Prefix-LSAs.
export: Filters Inter-Area-Prefix-LSAs advertised to other areas.
import: Filters Inter-Area-Prefix-LSAs advertised into the local area.
Usage guidelines
This command applies only to an ABR.
When you specify an ACL, follow these guidelines:
· If the ACL does not exist or does not have any rules, the ABR does not filter Inter-Area-Prefix-LSAs.
· If a rule in the ACL is applied to a VPN instance, the rule will deny all Inter-Area-Prefix-LSAs.
To use an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL using one of the following methods:
· To deny or permit Inter-Area-Prefix-LSAs with the specified address prefix, use the rule [ rule-id ] { deny | permit } ipv6 source sour-addr sour-prefix command.
· To deny or permit Inter-Area-Prefix-LSAs with the specified address prefix and prefix length, use the rule [ rule-id ] { deny | permit } ipv6 source sour-addr sour-prefix destination dest-addr dest-prefix command.
The source keyword specifies the address prefix in an Inter-Area-Prefix LSA and the destination keyword specifies the prefix length of the address prefix. For the prefix length configuration to take effect, specify a contiguous prefix length.
Examples
# Use IPv6 prefix list my-prefix-list to filter inbound Inter-Area-Prefix-LSAs. Use IPv6 basic ACL 2000 to filter outbound Inter-Area-Prefix-LSAs in OSPFv3 Area 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] area 1
[Sysname-ospfv3-1-area-0.0.0.1] filter prefix-list my-prefix-list import
[Sysname-ospfv3-1-area-0.0.0.1] filter 2000 export
filter-policy export
Use filter-policy export to configure OSPFv3 to filter redistributed routes.
Use undo filter-policy export to remove the configuration.
Syntax
filter-policy { ipv6-acl-number | prefix-list prefix-list-name } export [ bgp4+ | direct | { isisv6 | ospfv3 | ripng } [ process-id ] | static ]
undo filter-policy export [ bgp4+ | direct | { isisv6 | ospfv3 | ripng } [ process-id ] | static ]
Default
Redistributed routes are not filtered.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
ipv6-acl-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter redistributed routes by destination address.
prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter redistributed routes by destination address.
bgp4+: Filters redistributed IPv6 BGP routes.
direct: Filters redistributed direct routes.
isisv6: Filters redistributed IPv6 IS-IS routes.
ospfv3: Filters redistributed OSPFv3 routes.
ripng: Filters redistributed RIPng routes.
process-id: Specifies a process by its ID in the range of 1 to 65535. The default value is 1.
static: Filters redistributed static routes.
Usage guidelines
When you specify an ACL, follow these guidelines:
· If the ACL does not exist or does not have any rules, OSPFv3 does not filter redistributed routes.
· If a rule in the ACL is applied to a VPN instance, the rule will deny all redistributed routes.
To use an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL in one of the following ways:
· To deny or permit a route with the specified destination, use rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix.
· To deny or permit a route with the specified destination and prefix, use rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix destination dest dest-prefix.
The source keyword specifies the destination address of a route, and the destination keyword specifies the prefix of the route. For the configuration to take effect, specify a contiguous prefix.
Using the filter-policy export command filters only routes redistributed by the import-route command. If the import-route command is not configured to redistribute routes from other protocols and other OSPFv3 processes, the filter-policy export command does not take effect.
If you do not specify a routing protocol, the command filters all redistributed routes.
Examples
# Use IPv6 prefix list abc to filter redistributed routes.
<Sysname> system-view
[Sysname] ipv6 prefix-list abc permit 2002:1:: 64
[Sysname] ospfv3
[Sysname-ospfv3-1] filter-policy prefix-list abc export
# Configure IPv6 advanced ACL 3000 to permit only route 2001::1/128. Use ACL 3000 to filter redistributed routes.
<Sysname> system-view
[Sysname] acl ipv6 advanced 3000
[Sysname-acl-ipv6-adv-3000] rule 10 permit ipv6 source 2001::1 128 destination ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 128
[Sysname-acl-ipv6-adv-3000] rule 100 deny ipv6
[Sysname-acl-ipv6-adv-3000] quit
[Sysname] ospfv3
[Sysname-ospfv3-1] filter-policy 3000 export
filter-policy import
Use filter-policy import to configure OSPFv3 to filter routes calculated using received LSAs.
Use undo filter-policy import to remove the configuration.
Syntax
filter-policy { ipv6-acl-number [ gateway prefix-list-name ] | prefix-list prefix-list-name [ gateway prefix-list-name ] | gateway prefix-list-name | route-policy route-policy-name } import
undo filter-policy import
Default
Routes calculated using received LSAs are not filtered.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
ipv6-acl-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter routes by destination.
gateway prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter routes by next hop. If you do not specify this option, the command does not filter routes by next hop.
prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter routes by destination.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter received routes.
Usage guidelines
When you specify an ACL, follow these guidelines:
· If the ACL does not exist or does not have any rules, OSPFv3 does not filter calculated routes.
· If a rule in the ACL is applied to a VPN instance, the rule will deny all calculated routes.
To use an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL in one of the following ways:
· To deny or permit a route with the specified destination, use rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix.
· To deny or permit a route with the specified destination and prefix, use rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix destination dest dest-prefix.
The source keyword specifies the destination address of a route, and the destination keyword specifies the prefix of the route. For the configuration to take effect, specify a contiguous prefix.
The filter-policy import command filters only routes computed by OSPFv3. Routes that fail to pass the filter are not added to the routing table.
Examples
# Use IPv6 prefix list abc to filter received routes.
<Sysname> system-view
[Sysname] ipv6 prefix-list abc permit 2002:1:: 64
[Sysname] ospfv3
[Sysname-ospfv3-1] filter-policy prefix-list abc import
# Configure IPv6 advanced ACL 3000 to permit only route 2001::1/128 to pass. Use ACL 3000 to filter received routes.
<Sysname> system-view
[Sysname] acl ipv6 advanced 3000
[Sysname-acl-ipv6-adv-3000] rule 10 permit ipv6 source 2001::1 128 destination ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 128
[Sysname-acl-ipv6-adv-3000] rule 100 deny ipv6
[Sysname-acl-ipv6-adv-3000] quit
[Sysname] ospfv3
[Sysname-ospfv3-1] filter-policy 3000 import
graceful-restart enable
Use graceful-restart enable to enable the GR capability for OSPFv3.
Use undo graceful-restart enable to disable the GR capability for OSPFv3.
Syntax
graceful-restart enable [ global | planned-only ] *
undo graceful-restart enable
Default
The GR capability for OSPFv3 is disabled.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
global: Enables global GR. In global GR mode, a GR process can be completed only when all GR helpers exist. A GR process fails if a GR helper fails (for example, the interface connected to the GR helper goes down). If you do not specify this keyword, the command enables partial GR. In partial GR mode, a GR process can be completed as long as one GR helper exists.
planned-only: Enables planned GR only. If you do not specify this keyword, the command enables both planned GR and unplanned GR.
Usage guidelines
GR includes planned GR and unplanned GR.
· Planned GR—Manually restarts OSPFv3 or performs an active/standby switchover. Before OSPFv3 restart or active/standby switchover, the GR restarter sends Grace-LSAs to GR helpers.
· Unplanned GR—OSPFv3 restarts or an active/standby switchover occurs because of device failure. Before OSPFv3 restart or active/standby switchover, the GR restarter does not send Grace-LSAs to GR helpers.
OSPFv3 GR and OSPFv3 NSR are mutually exclusive. Do not configure the graceful-restart enable command and the non-stop-routing command at the same time.
To prevent service interruption after a master/backup switchover, a GR restarter running OSPFv3 must perform the following tasks:
· Keep the GR restarter forwarding entries stable during reboot.
· Establish all adjacencies and obtain complete topology information after reboot.
Examples
# Enable the GR capability for OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] graceful-restart enable
Related commands
graceful-restart helper enable
graceful-restart helper enable
Use graceful-restart helper enable to enable the GR helper capability for OSPFv3.
Use undo graceful-restart helper enable to disable the GR helper capability for OSPFv3.
Syntax
graceful-restart helper enable [ planned-only ]
undo graceful-restart helper enable
Default
The GR helper capability for OSPFv3 is enabled.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
planned-only: Enables only planned GR for the GR helper. If you do not specify this keyword, the command enables both planned GR and unplanned GR for the GR helper.
Usage guidelines
Upon receiving the Grace-LSA, the neighbors with the GR helper capability enter the helper mode (and are called GR helpers). Then, the GR restarter retrieves its adjacencies and LSDB with the help of the GR helpers.
Examples
# Enable the GR helper capability for OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] graceful-restart helper enable
Related commands
graceful-restart enable
graceful-restart helper strict-lsa-checking
Use graceful-restart helper strict-lsa-checking to enable strict LSA checking for the GR helper.
Use undo graceful-restart helper strict-lsa-checking to disable strict LSA checking for the GR helper.
Syntax
graceful-restart helper strict-lsa-checking
undo graceful-restart helper strict-lsa-checking
Default
Strict LSA checking for the GR helper is disabled.
Views
OSPFv3 view
Predefined user roles
network-admin
Usage guidelines
With GR helper enabled, when an LSA change on the GR helper is detected, the GR helper device exits the GR helper mode.
Examples
# Enable strict LSA checking for the GR helper in OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] graceful-restart helper strict-lsa-checking
Related commands
graceful-restart helper enable
graceful-restart interval
Use graceful-restart interval to set the GR restart interval.
Use undo graceful-restart interval to restore the default.
Syntax
graceful-restart interval interval
undo graceful-restart interval
Default
The GR restart interval is 120 seconds.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
interval: Specifies GR restart interval in the range of 40 to 1800 seconds.
Usage guidelines
For GR restart to succeed, the value of the GR restart interval cannot be smaller than the maximum OSPFv3 neighbor dead time of all the OSPFv3 interfaces.
Examples
# Set the GR restart interval for OSPFv3 process 1 to 100 seconds.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] graceful-restart interval 100
Related commands
ospfv3 timer dead
import-route
Use import-route to enable route redistribution.
Use undo import-route to disable route redistribution.
Syntax
import-route bgp4+ [ as-number ] [ allow-ibgp ] [ [ cost cost-value | inherit-cost ] | nssa-only | route-policy route-policy-name | tag tag | type type ] *
import-route { direct | static } [ [ cost cost-value | inherit-cost ] | nssa-only | route-policy route-policy-name | tag tag | type type ] *
import-route { isisv6 | ospfv3 | ripng } [ process-id | all-processes ] [ allow-direct | [ cost cost-value | inherit-cost ] | nssa-only | route-policy route-policy-name | tag tag | type type ] *
undo import-route { bgp4+ | direct | { isis | ospf | rip } [ process-id | all-processes ] | static }
Default
OSPFv3 does not redistribute routes.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
bgp4+: Redistributes IPv6 BGP routes.
as-number: Redistributes routes from an AS specified by its number in the range of 1 to 4294967295. If you do not specify this argument, this command redistributes all IPv6 EBGP routes. As a best practice, specify an AS number to prevent the system from redistributing excessive IPv6 EBGP routes.
direct: Redistributes direct routes.
isisv6: Redistributes IPv6 IS-IS routes.
ospfv3: Redistributes OSPFv3 routes.
ripng: Redistributes RIPng routes.
process-id: Specifies a process by its ID, in the range of 1 to 65535. The default is 1.
all-processes: Redistributes routes from all processes of the specified protocol.
allow-ibgp: Redistributes IBGP routes. The import-route bgp4+ command redistributes only EBGP routes. The import-route bgp4+ allow-ibgp command redistributes both EBGP and IBGP routes, and might cause routing loops. Therefore, use it with caution.
allow-direct: Redistributes the networks of the local interfaces enabled with the specified routing protocol. If you do not specify this keyword, the networks of the local interfaces are not redistributed. If you specify both the allow-direct keyword and the route-policy route-policy-name option, make sure the if-match rule defined in the routing policy does not conflict with the allow-direct keyword. For example, if you specify the allow-direct keyword, do not configure the if-match route-type rule for the routing policy. Otherwise, the allow-direct keyword does not take effect.
cost cost-value: Specifies a cost for redistributed routes, in the range of 1 to 16777214.
inherit-cost: Uses the original cost of redistributed routes.
nssa-only: Limits the route advertisement to the NSSA area by setting the P-bit of Type-7 LSAs to 0. If you do not specify this keyword, the P-bit of Type-7 LSAs is set to 1. If the router acts as both an ASBR and an ABR and FULL state neighbors exist in the backbone area, the P-bit of Type-7 LSAs originated by the router is set to 0. This keyword applies to NSSA routers.
route-policy route-policy-name: Specifies a routing policy to filter redistributed routes. The route-policy-name argument is a case-sensitive string of 1 to 63 characters.
tag tag: Specifies a tag for external LSAs, in the range of 0 to 4294967295. If you do not specify this option, the tag specified by the default tag command applies.
type type: Specifies the type for redistributed routes, 1 or 2. The default is 2.
Usage guidelines
An external route is a route to a destination outside the OSPFv3 AS. External routes include the following types:
· Type-1 external routes—Have high credibility. The cost of Type-1 external routes is comparable with the cost of OSPFv3 internal routes. The cost of a Type-1 external route equals the cost from the router to the ASBR plus the cost from the ASBR to the external route's destination.
· Type-2 external routes—Have low credibility. OSPFv3 considers the cost from the ASBR to a Type-2 external route is much bigger than the cost from the ASBR to an OSPFv3 internal router. The cost of a Type-2 external route equals the cost from the ASBR to the Type-2 external route's destination.
The import-route command cannot redistribute default routes.
If you specify neither the cost nor inherit-cost keyword, the cost of a redistributed route is 1.
The import-route nssa-only command redistributes AS-external routes in Type-7 LSAs only into the NSSA area.
Examples
# Configure OSPFv3 process 1 to redistribute routes from RIPng and specify the type as type 2 and cost as 50.
<Sysname> system-view
[Sysname] ospfv3
[Sysname-ospfv3-1] import-route ripng 10 type 2 cost 50
# Configure OSPFv3 process 100 to redistribute the routes discovered by OSPFv3 process 160.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] import-route ospfv3 160
Related commands
default-route-advertise
isolate enable
Use isolate enable to enable OSPFv3 isolation.
Use undo isolate enable to disable OSPFv3 isolation.
Syntax
isolate enable
undo isolate enable
Default
OSPFv3 isolation is disabled.
Views
OSPFv3 view
Predefined user roles
network-admin
Usage guidelines
Isolation is a method used for network device maintenance. It gracefully removes a device from the packet forwarding path for maintenance and gracefully adds the device to the network after maintenance.
To reduce impact on traffic forwarding, you can isolate a device before upgrading it. OSPFv3 isolation works as follows:
1. After OSPFv3 isolation is enabled for a device, OSPFv3 increases the link cost in LSAs advertised by the device based on the following rules:
¡ The link cost in Type-1 LSAs (Router LSAs) is set to 65535.
¡ The link cost in Type-9 LSAs (Intra-area-prefix LSAs) that reference Type-1 LSAs is set to 65535.
¡ The link cost in the following LSAs is set to 16711680:
- Type-3 LSAs (Inter-area-prefix LSAs).
- Type-4 LSAs (Inter-area-router LSAs).
- Type-5 LSAs (AS external LSAs).
- Type-7 LSAs (NSSA LSAs).
2. Each neighbor of the device reselects an optimal route based on the LSAs and stops forwarding traffic to the device. The device is fully isolated from the network and you can upgrade the device.
3. After the maintenance, disable OSPFv3 isolation on the device to restore its link cost and gracefully add it back to the network.
Both the isolate enable and stub-router max-metric external-lsa 16711680 summary-lsa 16711680 include-stub commands can isolate the device from the network.
When you execute both the isolate enable and stub-router max-metric commands, follow these restrictions and guidelines:
· If you specify the external-lsa and summary-lsa keywords in the stub-router max-metric command, the higher one of the two link costs provided by the isolation feature and the stub router feature takes effect.
· If the on-startup keyword is specified in the stub-router max-metric command, traffic forwarding path selection is affected only by the isolation feature when the stub router feature does not take effect.
Examples
# Isolate the device from the network in OSPFv3 process 100.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] isolate enable
Related commands
stub-router
ispf enable
Use ispf enable to enable OSPFv3 Incremental SPF (ISPF).
Use undo ispf enable to disable OSPFv3 ISPF.
Syntax
ispf enable
undo ispf enable
Default
OSPFv3 ISPF is enabled.
Views
OSPFv3 view
Predefined user roles
network-admin
Usage guidelines
ISPF allows the system to recompute nodes affected by topology changes rather than the entire shortest path tree.
Examples
# Disable OSPFv3 ISPF for process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] undo ispf enable
log-peer-change
Use log-peer-change to enable logging for neighbor state changes.
Use undo log-peer-change to disable logging for neighbor state changes.
Syntax
log-peer-change
undo log-peer-change
Default
Logging for neighbor state changes is enabled.
Views
OSPFv3 view
Predefined user roles
network-admin
Usage guidelines
This feature enables the device to deliver logs about neighbor state changes to its information center. The information center processes logs according to user-defined output rules (whether and where to output logs). For more information about the information center, see information center configuration in System Management Configuration Guide.
Examples
# Disable logging for neighbor state changes for OSPFv3 process 100.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] undo log-peer-change
lsa-generation-interval
Use lsa-generation-interval to set the OSPFv3 LSA generation interval.
Use undo lsa-generation-interval to restore the default.
Syntax
lsa-generation-interval maximum-interval [ minimum-interval [ incremental-interval ] ]
undo lsa-generation-interval
Default
The maximum interval is 5 seconds, the minimum interval is 0 milliseconds, and the incremental interval is 0 milliseconds.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
maximum-interval: Specifies the maximum OSPFv3 LSA generation interval in the range of 1 to 60 seconds.
minimum-interval: Specifies the minimum OSPFv3 LSA generation interval in the range of 10 to 60000 milliseconds. The default is 0, which indicates that the minimum interval can be any value.
incremental-interval: Specifies the OSPFv3 LSA generation incremental interval in the range of 10 to 60000 milliseconds.
Usage guidelines
When network changes are infrequent, LSAs are generated at the minimum interval. If network changes become frequent, the LSA generation interval increases by the incremental interval × 2n-2 for each generation until the maximum interval is reached. The value n is the number of generation times.
The minimum interval and the incremental interval cannot be greater than the maximum interval.
Examples
# Set the maximum LSA generation interval to 2 seconds, minimum interval to 100 milliseconds, and incremental interval to 100 milliseconds.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] lsa-generation-interval 2 100 100
maximum load-balancing
Use maximum load-balancing to set the maximum number of equal-cost multi-path (ECMP) routes.
Use undo maximum load-balancing to restore the default.
Syntax
maximum load-balancing number
undo maximum load-balancing
Default
The maximum number of OSPFv3 ECMP routes equals the maximum number of ECMP routes, which is configurable by using the max-ecmp-num command.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
number: Specifies the maximum number of ECMP routes. When the maximum number is 1, OSPFv3 does not perform load balancing. The value range for this argument is 1 to 256.
Examples
# Set the maximum number of ECMP routes to 2.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] maximum load-balancing 2
mpls te enable
Use mpls te enable to enable MPLS TE for an OSPFv3 area.
Use undo mpls te enable to disable MPLS TE for an OSPFv3 area.
Syntax
mpls te enable
undo mpls te enable
Default
MPLS TE is disabled for an OSPFv3 area.
Views
OSPFv3 area view
Predefined user roles
network-admin
Usage guidelines
Configure this command to enable OSPFv3 to generate Intra-Area-TE LSAs containing TE attribute information. The TE attribute information can only be used by BGP LS. Full TE capabilities are not supported.
For this command to take effect, you must enable MPLS TE for the device.
Examples
# Enable MPLS TE for area 1 of OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] area 1
[Sysname-ospfv3-1-area-0.0.0.1] mpls te enable
Related commands
mpls te (MPLS Command Reference)
non-stop-routing
Use non-stop-routing to enable OSPFv3 NSR.
Use undo non-stop-routing to disable OSPFv3 NSR.
Syntax
non-stop-routing
undo non-stop-routing
Default
OSPFv3 NSR is disabled.
Views
OSPFv3 view
Predefined user roles
network-admin
Usage guidelines
This command takes effect only for the current process. As a best practice, enable OSPFv3 NSR for each process if multiple OSPFv3 processes exist.
OSPFv3 NSR and OSPFv3 GR are mutually exclusive. Do not configure the non-stop-routing command and the graceful-restart enable command at the same time.
Examples
# Enable NSR for OSPFv3 process 100.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] non-stop-routing
nssa
Use nssa to configure an area as an NSSA area.
Use undo nssa to restore the default.
Syntax
nssa [ default-route-advertise [ cost cost-value | nssa-only | route-policy route-policy-name | tag tag | type type ] * | no-import-route | no-summary | [ translate-always | translate-never ] | suppress-fa | translator-stability-interval value ] *
undo nssa
Default
No area is configured as an NSSA area.
Views
OSPFv3 area view
Predefined user roles
network-admin
Parameters
default-route-advertise: Used on an NSSA ABR or an ASBR only. If it is configured on an NSSA ABR, the ABR redistributes a default route in a Type-7 LSA into the NSSA area. It redistributes a default route regardless of whether a default route exists in the routing table. If it is configured on an ASBR, the ASBR redistributes a default route in a Type-7 LSA only when the default route exists in the routing table.
cost cost-value: Specifies a cost for the default route, in the range of 0 to 16777214. If you do not specify this option, the default cost specified by the default-cost command applies.
nssa-only: Limits the default route advertisement to the NSSA area by setting the P-bit of Type-7 LSAs to 0. If you do not specify this keyword, the P-bit of Type-7 LSAs is set to 1. If the router acts as both an ASBR and an ABR and FULL state neighbors exist in the backbone area, the P-bit is set to 0.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. When the specified routing policy is matched, the command redistributes a default route in a Type-7 LSA into the OSPFv3 routing domain. The routing policy modifies values in the Type-7 LSA.
tag tag: Specifies a tag for the default route, in the range of 0 to 4294967295.
type type: Specifies a type for the Type-7 LSA, 1 or 2. The default is 2.
no-import-route: Used on an NSSA ABR to control the import-route command to not redistribute routes into the NSSA area.
no-summary: Used only on an ABR to advertise a default route in a Type-3 summary LSA into the NSSA area and to not advertise other summary LSAs into the area. The area is a totally NSSA area.
translate-always: Always translates Type-7 LSAs to Type-5 LSAs. This keyword takes effect only on an NSSA ABR.
translate-never: Never translates Type-7 LSAs to Type-5 LSAs. This keyword takes effect only on an NSSA ABR.
suppress-fa: Suppresses the forwarding address in the Type-7 LSAs from being placed in the Type-5 LSAs.
translator-stability-interval value: Specifies the stability interval of the translator. During the interval, the translator can maintain its translating capability after another device becomes the new translator. The value argument is the stability interval in the range of 0 to 900 seconds. The default interval is 0. A value of 0 means the translator does not maintain its translating capability when a new translator arises.
Usage guidelines
All routers attached to an NSSA area must be configured with the nssa command in area view.
Examples
# Configure Area 1 as an NSSA area.
[Sysname] ospfv3 120
[Sysname-ospfv3-120] area 1
[Sysname-ospfv3-120-area-0.0.0.1] nssa
Related commands
default-cost
ospfv3
Use ospfv3 to enable an OSPFv3 process and enter OSPFv3 view.
Use undo ospfv3 to disable an OSPFv3 process.
Syntax
ospfv3 [ process-id | vpn-instance vpn-instance-name ] *
undo ospfv3 [ process-id ]
Default
No OSPFv3 process is enabled.
Views
System view
Predefined user roles
network-admin
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. The default process ID is 1.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the OSPFv3 process runs on the public network.
Usage guidelines
Specify a router ID for the OSPFv3 process. Otherwise, the OSPFv3 process cannot generate LSAs.
Examples
# Enable OSPFv3 process 120 and set the router ID to 1.1.1.1.
<Sysname> system-view
[Sysname] ospfv3 120
[Sysname-ospfv3-120] router-id 1.1.1.1
ospfv3 area
Use ospfv3 area to enable an OSPFv3 process on an interface and specify an area for the interface.
Use undo ospfv3 area to disable an OSPFv3 process on an interface.
Syntax
ospfv3 process-id area area-id [ instance instance-id ]
undo ospfv3 process-id area area-id [ instance instance-id ]
Default
No OSPFv3 processes are enabled on an interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.
area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is translated into the IPv4 address format.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Examples
# Configure HundredGigE 1/0/1 to run instance 1 of OSPFv3 process 1 in Area 1.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 1 area 1 instance 1
ospfv3 authentication-mode
Use ospfv3 authentication-mode to specify an authentication mode for an OSPFv3 interface.
Use undo ospfv3 authentication-mode to remove the configuration.
Syntax
For HMAC-SHA-256/HMAC-SM3 authentication:
ospfv3 authentication-mode { hmac-sha-256 | hmac-sm3 } key-id { cipher | plain } string [ instance instance-id ]
undo ospfv3 authentication-mode [ instance instance-id ]
For keychain authentication:
ospfv3 authentication-mode keychain keychain-name [ instance instance-id ]
undo ospfv3 authentication-mode [ instance instance-id ]
Default
No authentication is performed for an OSPFv3 interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
hmac-sha-256: Specifies HMAC-SHA-256 authentication.
hmac-sm3: Specifies HMAC-SM3 authentication.
key-id: Specifies a key ID in the range of 0 to 65535.
cipher: Specifies a key in encrypted form.
plain: Specifies a key in plaintext form. For security purposes, the key specified in plaintext form will be stored in encrypted form.
string: Specifies the key. This argument is case sensitive. The key in plaintext form is a string of 1 to 255 characters, and the key in encrypted form is a string of 33 to 373 characters.
keychain: Specifies keychain authentication.
keychain-name: Specifies a keychain by its name, a case-sensitive string of 1 to 63 characters.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines
To establish or maintain adjacencies, interfaces attached to the same network segment must have the same authentication mode and key. An OSPFv3 interface supports only one authentication mode.
The authentication mode specified for an OSPFv3 interface has a higher priority than the mode specified for the OSPFv3 area to which that OSPFv3 interface belongs.
When keychain authentication is configured for an OSPFv3 interface, OSPFv3 performs the following operations before sending a packet:
1. Obtains a valid send key from the keychain.
OSPFv3 does not send the packet if it fails to obtain a valid send key.
2. Uses the key ID, authentication algorithm, and key string to authenticate the packet.
If the key ID is greater than 65535, OSPFv3 does not send the packet.
When keychain authentication is configured for an OSPFv3 interface, OSPFv3 performs the following operations after receiving a packet:
1. Uses the key ID carried in the packet to obtain a valid accept key from the keychain.
OSPFv3 discards the packet if it fails to obtain a valid accept key.
2. Uses the authentication algorithm and key string for the valid accept key to authenticate the packet.
If the authentication fails, OSPFv3 discards the packet.
OSPFv3 supports only the HMAC-SHA-256 and HMAC-SM3 authentication algorithms.
The ID of keys used for authentication can only be in the range of 0 to 65535.
Examples
# Configure HundredGigE 1/0/1 to use the keychain test for OSPFv3 packet authentication.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 authentication-mode keychain test
ospfv3 bfd enable
Use ospfv3 bfd enable to enable BFD on an OSPFv3 interface.
Use undo ospfv3 bfd enable to disable BFD on an OSPFv3 interface.
Syntax
ospfv3 bfd enable [ instance instance-id ]
undo ospfv3 bfd enable [ instance instance-id ]
Default
BFD is disabled on an OSPFv3 interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines
BFD provides a mechanism to quickly detect the connectivity of links between OSPFv3 neighbors, improving the convergence speed of OSPFv3.
OSPFv3 uses BFD to implement bidirectional control detection.
Examples
# Enable BFD on HundredGigE 1/0/1 in instance 1.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 bfd enable instance 1
ospfv3 cost
Use ospfv3 cost to set an OSPFv3 cost for an interface in an instance.
Use undo ospfv3 cost to remove the configuration.
Syntax
ospfv3 cost cost-value [ instance instance-id ]
undo ospfv3 cost [ instance instance-id ]
Default
The cost is 1 for a VLAN interface, is 0 for a loopback interface, and is computed according to the interface bandwidth for other interfaces.
Views
Interface view
Predefined user roles
network-admin
Parameters
cost-value: Specifies an OSPFv3 cost in the range of 0 to 65535 for a loopback interface, and in the range of 1 to 65535 for other interfaces.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Examples
# Set the OSPFv3 cost to 33 for HundredGigE 1/0/1 in instance 1.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 cost 33 instance 1
ospfv3 dr-priority
Use ospfv3 dr-priority to set the router priority for an interface in an instance.
Use undo ospfv3 dr-priority to remove the configuration.
Syntax
ospfv3 dr-priority priority [ instance instance-id ]
undo ospfv3 dr-priority [ instance instance-id ]
Default
An interface has a router ID of 1.
Views
Interface view
Predefined user roles
network-admin
Parameters
priority: Specifies a router priority in the range of 0 to 255.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines
An interface's router priority determines its privilege in DR/BDR selection.
Examples
# Set the router priority for HundredGigE 1/0/1 in instance 1 to 8.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 dr-priority 8 instance 1
ospfv3 fast-reroute lfa-backup exclude
Use ospfv3 fast-reroute lfa-backup exclude to disable LFA on an interface.
Use undo ospfv3 fast-reroute lfa-backup exclude to remove the configuration.
Syntax
ospfv3 fast-reroute lfa-backup exclude [ instance instance-id ]
undo ospfv3 fast-reroute lfa-backup exclude [ instance instance-id ]
Default
LFA is enabled on an interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines
An interface enabled with LFA can be selected as a backup interface. After you disable LFA on the interface, it cannot be selected as a backup interface.
Examples
# Disable HundredGigE 1/0/1 from calculating a backup next hop by using the LFA algorithm.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 fast-reroute lfa-backup exclude
ospfv3 mib-binding
Use ospfv3 mib-binding to bind MIB to an OSPFv3 process.
Use undo ospfv3 mib-binding to restore the default.
Syntax
ospfv3 mib-binding process-id
undo ospfv3 mib-binding
Default
MIB is bound to the OSPFv3 process with the smallest process ID.
Views
System view
Predefined user roles
network-admin
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.
Usage guidelines
If the specified process ID does not exist, the MIB binding configuration fails.
Deleting an OSPFv3 process that has been bound to MIB unbinds the OSPFv3 process from MIB, and re-binds MIB to the OSPFv3 process with the smallest process ID.
Examples
# Bind MIB to OSPFv3 process 100.
<Sysname> system-view
[Sysname] ospfv3 mib-binding 100
ospfv3 mtu-ignore
Use ospfv3 mtu-ignore to configure an interface to ignore MTU check during DD packet exchange.
Use undo ospfv3 mtu-ignore to remove the configuration.
Syntax
ospfv3 mtu-ignore [ instance instance-id ]
undo ospfv3 mtu-ignore [ instance instance-id ]
Default
An interface performs MTU check during DD packet exchange.
Views
Interface view
Predefined user roles
network-admin
Parameters
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines
A neighbor relationship can be established only if the interface's MTU is the same as that of the peer.
Examples
# Configure HundredGigE 1/0/1 that belongs to instance 1 to ignore MTU check during DD packet exchange.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 mtu-ignore instance 1
ospfv3 network-type
Use ospfv3 network-type to specify the network type for an OSPFv3 interface.
Use undo ospfv3 network-type to remove the configuration.
Syntax
ospfv3 network-type { broadcast | nbma | p2mp [ unicast ] | p2p } [ instance instance-id ]
undo ospfv3 network-type [ instance instance-id ]
Default
The network type of an OSPFv3 interface depends on its link layer protocol:
· For Ethernet and FDDI, the default network type is broadcast.
· For ATM, FR, and X.25, the default network type is NBMA.
· For PPP, LAPB, HDLC, and POS, the default network type is P2P.
Views
Interface view
Predefined user roles
network-admin
Parameters
broadcast: Specifies the network type as broadcast.
nbma: Specifies the network type as NBMA.
p2mp: Specifies the network type as P2MP.
unicast: Specifies the P2MP interface to unicast OSPFv3 packets. By default, a P2MP interface multicasts OSPFv3 packets.
p2p: Specifies the network type as P2P.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines
If a router on a broadcast network does not support multicast, configure the network type for the connected interfaces as NBMA.
When the network type of an interface is NBMA or P2MP unicast, you must use the peer command to specify the neighbor.
When the network type of an interface is P2MP unicast, all OSPFv3 packets are unicast by the interface.
Examples
# Specify the OSPFv3 network type for HundredGigE 1/0/1 as NBMA.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 network-type nbma
Related commands
ospfv3 dr-priority
ospfv3 peer
Use ospfv3 peer to specify a neighbor and the DR priority of the neighbor.
Use undo ospfv3 peer to remove the configuration.
Syntax
ospfv3 peer ipv6-address [ cost cost-value | dr-priority priority ] [ instance instance-id ]
undo ospfv3 peer ipv6-address [ instance instance-id ]
Default
No link-local address is specified for the neighbor interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
ipv6-address: Specifies the link-local IPv6 address of the neighbor.
cost cost-value: Specifies the cost of the neighbor, in the range of 1 to 65535.
dr-priority priority: Specifies the DR priority of the neighbor, in the range of 0 to 255. The default is 1.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines
For NBMA and P2MP interfaces (only when in unicast mode), you must specify the link-local IPv6 addresses of their neighbors because these interfaces cannot find neighbors through broadcasting hello packets. For NBMA interfaces, you can also specify DR priorities for their neighbors.
Examples
# On HundredGigE 1/0/1, specify the link-local address of its neighbor as FE80::1111.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 peer fe80::1111
ospfv3 prefix-suppression
Use ospfv3 prefix-suppression to disable an OSPFv3 interface from advertising all its prefixes.
Use undo ospfv3 prefix-suppression to remove the configuration.
Syntax
ospfv3 prefix-suppression [ disable ] [ instance instance-id ]
undo ospfv3 prefix-suppression [ instance instance-id ]
Default
Prefix suppression is disabled on an interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
disable: Disables prefix suppression for an interface.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines
To disable prefix suppression for an interface associated with an OSPFv3 process that has been enabled with prefix suppression, use the ospfv3 prefix-suppression disable command on that interface.
Examples
# Enable prefix suppression for HundredGigE 1/0/1.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 prefix-suppression
Related commands
prefix-suppression
ospfv3 primary-path-detect bfd
Use ospfv3 primary-path-detect bfd to enable BFD for OSPFv3 FRR.
Use undo ospfv3 primary-path-detect bfd to disable BFD for OSPFv3 FRR.
Syntax
ospfv3 primary-path-detect bfd { ctrl | echo } [ instance instance-id ]
undo ospfv3 primary-path-detect bfd [ instance instance-id ]
Default
BFD is disabled for OSPFv3 FRR.
Views
Interface view
Predefined user roles
network-admin
Parameters
ctrl: Enables BFD control packet mode.
echo: Enables BFD echo packet mode.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines
This command enables OSPFv3 FRR to use BFD to detect primary link failures.
For an interface to run the BFD session in echo packet mode correctly, make sure the interface has an IPv6 global unicast address. For more information about IPv6 global unicast addresses, see IPv6 basics configuration in Layer 3—IP Services Configuration Guide.
Examples
# On HundredGigE 1/0/1, enable BFD echo packet mode for OSPFv3 FRR.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] fast-reroute lfa
[Sysname-ospfv3-1] quit
[Sysname] bfd echo-source-ipv6 1::1
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 primary-path-detect bfd echo
ospfv3 timer dead
Use ospfv3 timer dead to set the OSPFv3 neighbor dead time.
Use undo ospfv3 timer dead to remove the configuration.
Syntax
ospfv3 timer dead seconds [ instance instance-id ]
undo ospfv3 timer dead [ instance instance-id ]
Default
The OSPFv3 neighbor dead time is 40 seconds for P2P and broadcast interfaces, and is 120 seconds for P2MP and NBMA interfaces.
Views
Interface view
Predefined user roles
network-admin
Parameters
seconds: Specifies the dead time in the range of 1 to 65535 seconds.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines
If an interface receives no hello packet from a neighbor within the dead time, the interface determines that the neighbor is down.
The dead time must be a minimum of four times the hello time and must be identical on interfaces attached to the same network segment.
Examples
# Set the OSPFv3 neighbor dead time to 60 seconds for HundredGigE 1/0/1.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 timer dead 60
Related commands
ospfv3 timer hello
ospfv3 timer hello
Use ospfv3 timer hello to set the hello interval for an interface.
Use undo ospfv3 timer hello to remove the configuration.
Syntax
ospfv3 timer hello seconds [ instance instance-id ]
undo ospfv3 timer hello [ instance instance-id ]
Default
The hello interval is 10 seconds for P2P and broadcast interfaces, and is 30 seconds for P2MP or NBMA interfaces.
Views
Interface view
Predefined user roles
network-admin
Parameters
seconds: Specifies the hello interval in the range of 1 to 65535 seconds.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines
The shorter the hello interval is, the faster the topology converges and the more resources are consumed. Make sure the hello interval on two neighboring interfaces is the same.
Examples
# Set the hello interval to 20 seconds for HundredGigE 1/0/1.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 timer hello 20
Related commands
ospfv3 timer dead
ospfv3 timer poll
Use ospfv3 timer poll to set the poll interval on an NBMA interface.
Use undo ospfv3 timer poll to remove the configuration.
Syntax
ospfv3 timer poll seconds [ instance instance-id ]
undo ospfv3 timer poll [ instance instance-id ]
Default
The poll interval is 120 seconds on an interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
seconds: Specifies the poll interval in the range of 1 to 65535 seconds.
instance instance-id: Specifies an interface instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines
When an NBMA interface finds its neighbor is down, it sends hello packets at the poll interval.
The poll interval must be a minimum of four times the hello interval.
Examples
# Set the poll interval on HundredGigE 1/0/1 to 120 seconds.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 timer poll 120
Related commands
ospfv3 timer hello
ospfv3 timer retransmit
Use ospfv3 timer retransmit to set the LSA retransmission interval for an interface.
Use undo ospfv3 timer retransmit to remove the configuration.
Syntax
ospfv3 timer retransmit seconds [ instance instance-id ]
undo ospfv3 timer retransmit [ instance instance-id ]
Default
The interval is 5 seconds.
Views
Interface view
Predefined user roles
network-admin
Parameters
seconds: Specifies the LSA retransmission interval in the range of 1 to 3600 seconds.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines
After the device sends an LSA to its neighbor, it waits for an acknowledgment. If the device receives no acknowledgment after the LSA retransmission interval elapses, it will retransmit the LSA.
To avoid unnecessary retransmissions, set an appropriate retransmission interval. For example, you can set a large retransmission interval value on a low-speed link.
Examples
# Set the LSA retransmission interval to 12 seconds on HundredGigE 1/0/1 in instance 1.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 timer retransmit 12 instance 1
ospfv3 track adjust-cost
Use ospfv3 track adjust-cost to associate an OSPFv3 interface with a track entry to adjust the cost of the interface based on the track entry state.
Use undo ospfv3 track adjust-cost to disassociate the OSPFv3 interface from the track entry and restore the cost of the interface to the original value.
Syntax
ospfv3 track track-entry-number adjust-cost { cost-offset | max }
undo ospfv3 track adjust-cost
Default
An OSPFv3 interface is not associated with a track entry.
Views
Interface view
Predefined user roles
network-admin
Parameters
track-entry-number: Specifies a track entry by its number in the range of 1 to 1024.
cost-offset: Specifies the value to be added to the interface cost when the state of the track entry associated with the interface becomes negative. The value range for this argument is 1 to 65534. The maximum interface cost value cannot exceed 65535.
max: Sets the interface cost to the maximum value 65535.
Usage guidelines
When a customer side device is dual-homed to an OSPFv3 network through M-LAG, you can execute this command to prevent the traffic from detouring through the M-LAG peer link. In an M-LAG network, the two M-LAG member devices in an M-LAG system share the traffic load between the network side and customer side. When the M-LAG interface on an M-LAG member device fails, the network side still forwards traffic to both M-LAG member devices because it cannot detect the M-LAG interface failure. As a result, the faulty M-LAG member device has to forward the traffic to the other M-LAG member device through the M-LAG peer link.
To prevent the traffic from detouring through the M-LAG, perform the following tasks on the faulty M-LAG member device:
1. Execute the track interface command to create a track entry and associate it with the link state of the M-LAG interface.
2. Execute the ospfv3 track adjust-cost command to associate the gateway interface with the track entry.
Then, OSPFv3 adjusts the cost of the gateway interface based on the state of the associated track entry:
· When the M-LAG interface fails, the track entry state becomes negative, and OSPFv3 increases the cost of the gateway interface. Then, traffic from the network side to the customer side will not be forwarded through the faulty M-LAG member device.
· When the M-LAG interface restores, the track entry state becomes positive, and OSPFv3 restores the cost of the gateway interface to the original value. Then, traffic from the network side to the customer side can be forwarded through both M-LAG member devices again.
If you execute this command multiple times, the most recent configuration takes effect.
Examples
# Associate OSPFv3 interface HundredGigE1/0/1 with track entry 1, and configure OSPFv3 to increase the cost of the interface by 1000 when track entry 1 becomes negative.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 track 1 adjust-cost 1000
# Associate OSPFv3 interface VLAN-interface 10 with track entry 1, and configure OSPFv3 to increase the cost of the interface by 1000 when track entry 1 becomes negative.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 track 1 adjust-cost 1000
Related commands
track interface (High Availability Command Reference)
ospfv3 trans-delay
Use ospfv3 trans-delay to set the transmission delay for an interface.
Use undo ospfv3 trans-delay to remove the configuration.
Syntax
ospfv3 trans-delay seconds [ instance instance-id ]
undo ospfv3 trans-delay [ instance instance-id ]
Default
The transmission delay is 1 second.
Views
Interface view
Predefined user roles
network-admin
Parameters
seconds: Specifies the transmission delay in the range of 1 to 3600 seconds.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines
Each LSA in the LSDB has an age that increases by 1 every second, but the age does not change during transmission. Adding a transmission delay into the age time is important in low speed networks.
Examples
# Set the transmission delay to 3 seconds for HundredGigE 1/0/1 in instance 1.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] ospfv3 trans-delay 3 instance 1
pic
Use pic to enable PIC for OSPFv3.
Use undo pic to disable PIC for OSPFv3.
Syntax
pic [ additional-path-always ]
undo pic
Default
OSPFv3 PIC is enabled.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
additional-path-always: Allows the indirect suboptimal route as the backup route.
Usage guidelines
Prefix Independent Convergence (PIC) enables the device to converge without the dependence on the number of prefixes. The convergence time does not increase as the number of prefixes in the routing table increases. OSPFv3 PIC applies only to inter-area routes and external routes.
When both OSPFv3 PIC and OSPFv3 FRR are configured, OSPFv3 FRR takes effect.
Examples
# Configure OSPFv3 PIC to support the indirect suboptimal route as the backup route.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] pic additional-path-always
preference
Use preference to set a preference for OSPFv3 routes.
Use undo preference to remove the configuration.
Syntax
preference [ ase ] { preference | route-policy route-policy-name } *
undo preference [ ase ]
Default
The preference is 10 for OSPFv3 internal routes and 150 for OSPFv3 external routes.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
ase: Specifies a preference for OSPFv3 external routes. If you do not specify this keyword, the command sets a preference for OSPFv3 internal routes.
preference: Specifies the preference value in the range of 1 to 255. A smaller value represents a higher preference.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to set a preference for matching routes.
Usage guidelines
If multiple routing protocols find multiple routes to the same destination, the router uses the route found by the protocol with the highest preference.
Examples
# Set a preference of 150 for OSPFv3 routes.
<Sysname> system-view
[Sysname] OSPFv3
[Sysname-OSPFv3-1] preference 150
prefix-suppression
Use prefix-suppression to disable an OSPFv3 process from advertising all prefixes except for the prefixes of loopback interfaces and passive interfaces.
Use undo prefix-suppression to restore the default.
Syntax
prefix-suppression
undo prefix-suppression
Default
An OSPFv3 process advertises all prefixes.
Views
OSPFv3 view
Predefined user roles
network-admin
Usage guidelines
By default, an OSPFv3 interface advertises all of its prefixes in LSAs. To speed up OSPFv3 convergence, you can suppress interfaces from advertising all of their prefixes. This feature helps improve network security by preventing IP routing to the suppressed networks.
To disable an OSPFv3 process from advertising the prefixes of loopback and passive interfaces, configure prefix suppression on the interfaces by using the ospfv3 prefix-suppression command.
When prefix suppression is enabled:
· OSPFv3 does not advertise the prefixes of suppressed interfaces in Type-8 LSAs.
· On broadcast and NBMA networks, the DR does not advertise the prefixes of suppressed interfaces in Type-9 LSAs that reference Type-2 LSAs.
· On P2P and P2MP networks, OSPFv3 does not advertise the prefixes of suppressed interfaces in Type-9 LSAs that reference Type-1 LSAs.
Examples
# Enable prefix suppression for OSPFv3 process 100.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] prefix-suppression
Related commands
ospfv3 prefix-suppression
reset ospfv3 event-log
Use reset ospfv3 event-log to clear OSPFv3 log information.
Syntax
reset ospfv3 [ process-id ] event-log [ lsa-flush | peer | spf ]
Views
User view
Predefined user roles
network-admin
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify this argument, the command clears OSPFv3 log information for all OSPFv3 processes.
lsa-flush: Clears LSA aging log information.
peer: Clears neighbor 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 OSPFv3 route calculation log information for all OSPFv3 processes.
<Sysname> reset ospfv3 event-log spf
Related commands
display ospfv3 event-log
reset ospfv3 process
Use reset ospfv3 process to restart OSPFv3 processes.
Syntax
reset ospfv3 [ process-id ] process [ graceful-restart ]
Views
User view
Predefined user roles
network-admin
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify this argument, the command restarts all OSPFv3 processes.
graceful-restart: Restarts the OSPFv3 process by using GR.
Usage guidelines
The reset ospfv3 process command performs the following actions:
· Clears all invalid LSAs without waiting for their timeouts.
· Starts a new DR/BDR election.
· Keeps previous OSPFv3 configurations.
The system prompts you to select whether to restart OSPFv3 process upon execution of this command.
Examples
# Restart all OSPFv3 processes.
<Sysname> reset ospfv3 process
Reset OSPFv3 process? [Y/N]:y
reset ospfv3 redistribution
Use reset ospfv3 redistribution to restart route redistribution.
Syntax
reset ospfv3 [ process-id ] redistribution
Views
User view
Predefined user roles
network-admin
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify this argument, the command restarts route redistribution for all OSPFv3 processes.
Examples
# Restart route redistribution.
<Sysname> reset ospfv3 redistribution
reset ospfv3 statistics
Use reset ospfv3 statistics to clear OSPFv3 statistics.
Syntax
reset ospfv3 [ process-id ] statistics
Views
User view
Predefined user roles
network-admin
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify this argument, the command clears statistics for all OSPFv3 processes.
Examples
# Clear statistics for all OSPFv3 processes.
<Sysname> reset ospfv3 statistics
router-id
Use router-id to configure a router ID.
Use undo router-id to restore the default.
Syntax
router-id router-id
undo router-id
Default
No router ID is configured.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
router-id: Specifies a router ID in IPv4 address format.
Usage guidelines
The router ID is the unique identifier for the device to run OSPFv3 in the AS. An OSPFv3 process cannot run without a router ID.
You must specify a unique router ID for each OSPFv3 process in an AS and on a router.
Examples
# Configure the router ID 10.1.1.3 for OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] router-id 10.1.1.3
Related commands
ospfv3
shutdown process
Use shutdown process to shut down an OSPFv3 process.
Use undo shutdown process to restart an OSPFv3 process.
Syntax
shutdown process
undo shutdown process
Default
An OSPFv3 process is not shut down.
Views
OSPFv3 view
Predefined user roles
network-admin
Usage guidelines
Both this feature and OSPFv3 isolation can be used for OSPFv3 maintenance.
After you execute the shutdown process command for an OSPFv3 process, the process performs the following operations:
· Sends 1-way hello packets to its neighbors. On receipt of the packets, the neighbors disconnect from the process.
· Stops receiving and sending OSPFv3 packets.
· Clears its neighbor, LSDB, and OSPFv3 route information.
After maintenance, you can use the undo shutdown process command to restart the process for neighbor relationship re-establishment.
Examples
# Shut down OSPFv3 process 100.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] shutdown process
Related commands
isolate enable
silent-interface
Use silent-interface to disable the specified interface from receiving and sending OSPFv3 packets.
Use undo silent-interface to remove the configuration.
Syntax
silent-interface { interface-type interface-number | all }
undo silent-interface { interface-type interface-number | all }
Default
An interface can receive and send OSPFv3 packets.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies an interface by its type and number.
all: Specifies all interfaces.
Usage guidelines
Multiple processes can disable the same interface from receiving and sending OSPFv3 packets. However, the silent-interface command takes effect only on interfaces enabled with the current process.
Examples
# Disable HundredGigE 1/0/1 from receiving and sending OSPFv3 packets in OSPFv3 processes 100 and 200.
[Sysname] ospfv3 100
[Sysname-ospfv3-100] router-id 10.100.1.9
[Sysname-ospfv3-100] silent-interface hundredgige 1/0/1
[Sysname-ospfv3-100] quit
[Sysname] ospfv3 200
[Sysname-ospfv3-200] router-id 20.100.1.9
[Sysname-ospfv3-200] silent-interface hundredgige 1/0/1
snmp context-name
Use snmp context-name to configure an SNMP context for OSPFv3.
Use undo snmp context-name to restore the default.
Syntax
snmp context-name context-name
undo snmp context-name
Default
No SNMP contexts exist for OSPFv3.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
context-name: Specifies a context name, a case-sensitive string of 1 to 32 characters.
Usage guidelines
The standard OSPFv3 MIB provides only single-instance MIB objects. For SNMP to correctly identify OSPFv3 management information in the standard OSPFv3 MIB, you must configure a unique context name for OSPFv3. If multiple OSPFv3 processes exist, you must assign a unique context to each process.
Context is a method introduced to SNMPv3 for multiple-instance management. For SNMPv1/v2c, you must specify a community name as a context name for protocol identification.
Examples
# Configure the SNMP context name as mib for OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] snmp context-name mib
snmp trap rate-limit
Use snmp trap rate-limit to set the SNMP notification output interval and the maximum number of SNMP notifications that can be output at each interval.
Use undo snmp trap rate-limit to restore the default.
Syntax
snmp trap rate-limit interval trap-interval count trap-number
undo snmp trap rate-limit
Default
OSPFv3 outputs a maximum of seven SNMP notifications within 10 seconds.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
interval trap-interval: Specifies the SNMP notification output interval in the range of 2 to 60 seconds.
count trap-number: Specifies the number of SNMP notifications output by OSPFv3 at each interval, in the range of 0 to 300. The value of 0 indicates that OSPFv3 does not output SNMP notifications.
Examples
# Configure OSPFv3 to output a maximum of 10 SNMP notifications within 5 seconds.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] snmp trap rate-limit interval 5 count 10
snmp-agent trap enable ospfv3
Use snmp-agent trap enable ospfv3 to enable SNMP notifications for OSPFv3.
Use undo snmp-agent trap enable ospfv3 to disable SNMP notifications for OSPFv3.
Syntax
snmp-agent trap enable ospfv3 [ grrestarter-status-change | grhelper-status-change | if-state-change | if-cfg-error | if-bad-pkt | neighbor-state-change | nssatranslator-status-change | virtif-bad-pkt | virtif-cfg-error | virtif-state-change | virtgrhelper-status-change | virtneighbor-state-change ] *
undo snmp-agent trap enable ospfv3 [ grrestarter-status-change | grhelper-status-change | if-state-change | if-cfg-error | if-bad-pkt | neighbor-state-change | nssatranslator-status-change | virtif-bad-pkt | virtif-cfg-error | virtif-state-change | virtgrhelper-status-change | virtneighbor-state-change] *
Default
SNMP notifications for OSPFv3 are enabled.
Views
System view
Predefined user roles
network-admin
Parameters
grrestarter-status-change: Specifies notifications about GR restarter state changes.
grhelper-status-change: Specifies notifications about GR helper state changes.
if-state-change: Specifies notifications about interface state changes.
if-cfg-error: Specifies notifications about error configuration of an interface.
if-bad-pkt: Specifies notifications about error messages received on an interface.
neighbor-state-change: Specifies notifications about neighbor state changes.
nssatranslator-status-change: Specifies notifications about NSSA translator state changes.
virtif-bad-pkt: Specifies notifications about error messages received on a virtual interface.
virtif-cfg-error: Specifies notifications about error configuration of a virtual interface.
virtif-state-change: Specifies notifications about virtual interface state changes.
virtgrhelper-status-change: Specifies notifications about neighbor GR helper state changes of a virtual interface.
virtneighbor-state-change: Specifies notifications about the neighbor state changes of a virtual interface.
Examples
# Disable SNMP notifications for OSPFv3.
<Sysname> system-view
[Sysname] undo snmp-agent trap enable ospfv3
spf-schedule-interval
Use spf-schedule-interval to set the OSPFv3 SPF calculation interval.
Use undo spf-schedule-interval to restore the default.
Syntax
spf-schedule-interval { maximum-interval [ minimum-interval [ incremental-interval [ conservative ] ] ] | millisecond interval }
undo spf-schedule-interval
Default
The maximum SPF calculation interval is 5 seconds, the minimum interval is 50 milliseconds, and the incremental interval is 200 milliseconds.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
maximum-interval: Specifies the maximum OSPFv3 route calculation interval in the range of 1 to 60 seconds.
minimum-interval: Specifies the minimum OSPFv3 route calculation interval in the range of 10 to 60000 milliseconds.
incremental-interval: Specifies the incremental OSPFv3 route calculation interval in the range of 10 to 60000 milliseconds.
conservative: Performs OSPFv3 route calculation at the maximum intervals when an OSPFv3 route flapping occurs. If you do not specify this keyword, OSPFv3 will calculate routes at the minimum intervals after it has performed route calculation three times at the maximum intervals consecutively.
millisecond interval: Performs OSPFv3 route calculation at the specified intervals in milliseconds. The value range for the interval argument is 0 to 1000.
Usage guidelines
Based on the LSDB, an OSPFv3 router uses SPF to calculate a shortest path tree with itself being the root. OSPFv3 uses the shortest path tree to determine the next hop to a destination. By adjusting the SPF calculation interval, you can prevent overconsumption of bandwidth and router resources due to frequent topology changes.
If you specify the maximum-interval, minimum-interval, and incremental-interval arguments without specifying the conservative keyword, OSPFv3 will perform SPF calculation as follows:
1. OSPFv3 will wait maximum-interval to perform the first SPF calculation.
2. If SPF calculation is triggered within incremental-interval, OSPFv3 will wait incremental-interval × 2n-2 to perform an SPF calculation. The value n is the number of calculation times and is not less than two.
3. If the value of incremental-interval × 2n-2 has reached or exceeded the maximum route calculation interval, OSPFv3 will use the maximum intervals three times consecutively and then return to step 1.
If you specify the conservative keyword, OSPFv3 will perform SPF calculations at the maximum intervals.
To expedite route convergence, use the spf-schedule-interval millisecond interval command to specify a short route calculation interval in milliseconds.
For a stable network, the minimum interval is used. If network changes become frequent, the SPF calculation interval increases by the incremental interval × 2n-2 for each calculation until the maximum interval is reached. The value n is the number of calculation times.
The minimum interval and the incremental interval cannot be greater than the maximum interval.
Examples
# Set the maximum SPF calculation interval to 10 seconds, minimum interval to 500 milliseconds, and incremental interval to 300 milliseconds.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] spf-schedule-interval 10 500 300
stub
Use stub to configure an area as a stub area.
Use undo stub to restore the default.
Syntax
stub [ default-route-advertise-always | no-summary ] *
undo stub
Default
No area is configured as a stub area.
Views
OSPFv3 area view
Predefined user roles
network-admin
Parameters
default-route-advertise-always: Enables the ABR to always advertise a default route into the stub area.
no-summary: Enables the ABR to advertise only a default route in an Inter-Area-Prefix-LSA into the stub area. No AS-external-LSA, Inter-Area-Prefix-LSA, or other Inter-Area-Router-LSA is advertised in the area. The area is a totally stub area.
Usage guidelines
To remove the no-summary configuration on an ABR, execute the stub command again to overwrite it.
To configure an area as a stub area, execute the stub command on all routers attached to the area.
Examples
# Configure OSPFv3 area 1 as a stub area.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] area 1
[Sysname-ospfv3-1-area-0.0.0.1] stub
Related commands
default-cost
stub-router
Use stub-router to configure a router as a stub router.
Use undo stub-router to restore the default.
Syntax
stub-router r-bit [ include-stub | on-startup { seconds | wait-for-bgp [ seconds ] } ] *
stub-router max-metric [ external-lsa [ max-metric-value ] | summary-lsa [ max-metric-value ] | include-stub | on-startup { seconds | wait-for-bgp [ seconds ] } ] *
undo stub-router
Default
The router is not configured as a stub router.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
r-bit: Clears the R-bit of the Option field in Type-1 LSAs.
max-metric: Advertises the locally generated Type-1 LSAs with the maximum cost of 65535.
external-lsa max-metric-value: Specifies a cost for external LSAs, in the range of 1 to 16777215. The default is 16711680.
summary-lsa max-metric-value: Specifies a cost for Type-3 and Type-4 LSAs, in the range of 1 to 16777215. The default is 16711680.
include-stub: Specifies the cost for Type-9 LSAs that reference Type-1 LSAs to the maximum value 65535.
on-startup seconds: Specifies the router as a stub router during reboot, and specifies the timeout time in the range of 5 to 86400 seconds.
wait-for-bgp seconds: Specifies the router as a stub router during BGP route convergence after reboot, and specifies the timeout time in the range of 5 to 86400 seconds. The default timeout time is 600 seconds.
Usage guidelines
You can use the stub-router r-bit command or stub-router max-metric command to configure a router as a stub router.
· The stub-router r-bit command clears the R-bit of the Option field in Type-1 LSAs. When the R-bit is clear, the OSPFv3 router can participate in OSPFv3 topology distribution without forwarding traffic.
· The stub-router max-metric command specifies the OSPFv3 max-metric router LSA feature. This feature enables OSPFv3 to advertise its locally generated Type-1 LSAs with a maximum cost of 65535. Neighbors do not send packets to the stub router as long as they have a route with a smaller cost.
Examples
# Configure a stub router.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] stub-router r-bit
te-router-id
Use te-router-id to configure an IPv6 router ID for a device.
Use undo te-router-id to restore the default.
Syntax
te-router-id ipv6-address
undo te-router-id
Default
No IPv6 router ID is configured for a device.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
ipv6-address: Specifies an IPv6 unicast address.
Usage guidelines
After you execute this command, OSPFv3 generates Intra-Area-TE LSAs containing basic link state information, IPv6 Router ID, neighbor ID, local interface's IPv6 address, and remote interface's IPv6 address.
Examples
# Specify 2001::1 as the IPv6 router ID for the device.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] te-router-id 2001::1
transmit-pacing
Use transmit-pacing to set the LSU transmission interval and the maximum number of LSU packets that can be sent at each interval.
Use undo transmit-pacing to restore the default.
Syntax
transmit-pacing interval interval count count
undo transmit-pacing
Default
An OSPFv3 interface sends a maximum of three LSU packets every 20 milliseconds.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
interval interval: Specifies an interval at which an interface sends LSU packets, in the range of 10 to 1000 milliseconds. If the router has multiple OSPFv3 interfaces, increase the interval to reduce the total number of LSU packets sent by the router every second.
count count: Specifies the maximum number of LSU packets sent by an interface at each interval, in the range of 1 to 200. If the router has multiple OSPFv3 interfaces, decrease the maximum number to reduce the total number of LSU packets sent by the router every second.
Examples
# Configure all the interfaces running OSPFv3 process 1 to send a maximum of 10 LSU packets every 30 milliseconds.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] transmit-pacing interval 30 count 10
vlink-peer
Use vlink-peer to configure a virtual link.
Use undo vlink-peer to remove a virtual link.
Syntax
vlink-peer router-id [ dead seconds | hello seconds | instance instance-id [ { hmac-sha-256 | hmac-sm3 } key-id { cipher | plain } string | keychain keychain-name ] | retransmit seconds | trans-delay seconds ] *
undo vlink-peer router-id [ dead | hello [ { hmac-sha-256 | hmac-sm3 } key-id { cipher | plain } string | keychain] | retransmit | trans-delay ] *
Default
No virtual links exist.
Views
OSPFv3 area view
Predefined user roles
network-admin
Parameters
router-id: Specifies the router ID of the neighbor on the virtual link.
dead seconds: Specifies the dead interval in the range of 1 to 32768 seconds. The default is 40. The dead interval must be identical with that on the virtual link neighbor, and must be a minimum of four times the hello interval.
hello seconds: Specifies the hello interval in the range of 1 to 8192 seconds. The default is 10. It must be identical with the hello interval on the virtual link neighbor.
instance instance-id: Specifies the instance ID of a virtual link, in the range of 0 to 255. The default is 0.
hmac-sha-256: Specifies the HMAC-SHA-256 authentication mode.
hmac-sm3: Specifies the HMAC-SM3 authentication mode.
key-id: Specifies a key by its ID in the range of 0 to 65535.
cipher: Specifies a key in encrypted form.
plain: Specifies a key in plaintext form. For security purposes, the key specified in plaintext form will be stored in encrypted form.
string: Specifies the key. The plaintext form of the key is a case-sensitive string of 1 to 255 characters. The encrypted form of the key is a case-sensitive string of 33 to 373 characters.
keychain: Specifies the keychain authentication mode.
keychain-name: Specifies a keychain by its name, a case-sensitive string of 1 to 63 characters.
retransmit seconds: Specifies the retransmission interval in the range of 1 to 3600 seconds. The default is 5.
trans-delay seconds: Specifies the transmission delay interval in the range of 1 to 3600 seconds. The default is 1.
Usage guidelines
You can configure a virtual link to maintain connectivity between a non-backbone area and the backbone, or maintain connectivity within the backbone. A virtual link is similar to an interface with OSPFv3 enabled. You can configure parameters such as hello, dead, retransmit and trans-delay for the virtual link.
Both ends of a virtual link must be ABRs that are configured with the vlink-peer command.
The following guidelines apply to parameters:
· The smaller the hello interval is, the faster the network converges, and the more network resources are consumed.
· For a low speed link, set a large retransmission interval to avoid unnecessary retransmissions.
· Specify a transmission delay with the trans-delay keyword depending on the interface delay.
The authentication mode specified for an OSPFv3 virtual link has a higher priority than the mode specified for the backbone area. If no authentication mode is specified for the virtual link, the mode specified for the backbone area applies. An OSPFv3 virtual link supports only one authentication mode.
When keychain authentication is configured for an OSPFv3 virtual link, OSPFv3 performs the following operations before sending a packet:
1. Obtains a valid send key from the keychain.
OSPFv3 does not send the packet if it fails to obtain a valid send key.
2. Uses the key ID, authentication algorithm, and key string to authenticate the packet.
If the key ID is greater than 65535, OSPFv3 does not send the packet.
When keychain authentication is configured for an OSPFv3 virtual link, OSPFv3 performs the following operations after receiving a packet:
1. Uses the key ID carried in the packet to obtain a valid accept key from the keychain.
OSPFv3 discards the packet if it fails to obtain a valid accept key.
2. Uses the authentication algorithm and key string for the valid accept key to authenticate the packet.
If the authentication fails, OSPFv3 discards the packet.
OSPFv3 supports only the HMAC-SHA-256 and HMAC-SM3 authentication algorithms.
The ID of keys used for authentication can only be in the range of 0 to 65535.
Examples
# Configure a virtual link to 10.10.0.3.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] area 1
[Sysname-ospfv3-1-area-0.0.0.1] vlink-peer 10.10.0.3
Related commands
display ospfv3 vlink