- 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-EIGRP commands
- 07-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 | 761.94 KB |
Contents
advertise application link-attributes te
display ospfv3 flex-algo routing
display ospfv3 flex-algo spf-tree
display ospfv3 global-flex-algo
display ospfv3 global-statistics
display ospfv3 graceful-restart
display ospfv3 local-flex-algo
display ospfv3 non-stop-routing
fast-reroute tiebreaker (OSPFv3 view)
fast-reroute tiebreaker (flexible algorithm view)
graceful-restart helper enable
graceful-restart helper strict-lsa-checking
metric-bandwidth advertisement enable
metric-delay advertisement enable
ospfv3 bfd adjust-cost suppress-flapping
ospfv3 fast-reroute lfa-backup exclude
ospfv3 link-quality adjust-cost
ospfv3 peer hold-max-cost duration
ospfv3 primary-path-detect bfd
suppress intra-te link-attributes
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
advertise application link-attributes te
Use advertise application link-attributes te to enable OSPFv3 to advertise application-specific link attributes (ASLA).
Use undo advertise application link-attributes te to disable OSPFv3 from advertising application-specific link attributes.
Syntax
advertise application link-attributes te
undo advertise application link-attributes te
Default
OSPFv3 does not advertise any application-specific link attributes.
Views
OSPFv3 view
Predefined user roles
network-admin
Usage guidelines
OSPFv3 advertises application-specific link attributes in ASLA sub-TLVs for use by specific applications. In the current software version, OSPFv3 only advertises link attributes for use by flexible algorithms. This feature is required when the flexible algorithm uses link delay metric or TE metric for path calculation. After you enable this feature, each ASLA sub-TLV will carry a link attribute sub-sub-TLV that can contain the TE metric, delay, and bandwidth information of a link.
If the flexible algorithm uses link delay metric, link attribute sub-sub-TLVs can carry link attribute information only after you enable OSPFv3 link delay advertisement.
If the flexible algorithm uses TE metric, link attribute sub-sub-TLVs can carry link attribute information only after the following requirements are met:
· MPLS TE is enabled for each node that participates in path calculation for that flexible algorithm.
· MPLS and MPLS TE are enabled on each interface that participates in path calculation for that flexible algorithm.
· MPLS TE is enabled for the OSPFv3 area.
After you use the advertise application link-attributes te command, the type value for the ASLA sub-TLV might conflict with that for the SRv6 SID sub-TLV. As a result, the flexible algorithm might not function correctly. To resolve this issue, use the segment-routing ipv6 sid-sub-tlv-type command to change the type value for the SRv6 SID sub-TLV.
Examples
# Enable OSPFv3 process 1 to advertise application-specific link attributes.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] advertise application link-attributes te
Related commands
metric-delay advertisement enable
segment-routing ipv6 sid-sub-tlv-type (Segment Routing Command Reference)
advertise-definition enable
Use advertise-definition enable to enable flexible algorithm definition (FAD) advertisement on a node.
Use undo advertise-definition enable to disable FAD advertisement on a node.
Syntax
advertise-definition enable
undo advertise-definition enable
Default
FAD advertisement is disabled on a node.
Views
Flexible algorithm view
Predefined user roles
network-admin
Usage guidelines
This feature enables a node to advertise its FAD. To calculate optimal paths for a flexible algorithm, you must enable this feature on a minimum of one node in the topology.
If a node does not advertise its FAD (for example, flexible algorithm 128), it can participate in flexible algorithm 128 only when it meets the following requirements:
1. The node receives the definitions of flexible algorithm 128 advertised by neighbors, and selects an FAD with the highest priority.
2. The metric type in the selected FAD is supported by the node.
Examples
# Enable FAD advertisement for flexible algorithm 128.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] flex-algo 128
[Sysname-ospfv3-1-flex-algo-128] advertise-definition enable
Related commands
display ospfv3 flex-algo routing
affinity exclude-any
Use affinity exclude-any to specify the exclude-any constraint for a flexible algorithm.
Use undo affinity exclude-any to restore the default.
Syntax
affinity exclude-any affinity-name&<1-32>
undo affinity exclude-any
Default
The flexible algorithm topology excludes no links.
Views
Flexible algorithm view
Predefined user roles
network-admin
Parameters
affinity-name&<1-32>: Specifies affinity attributes by their names. The affinity attribute name must be a case-sensitive string of 1 to 32 characters. &<1-32> indicates that you can specify a maximum of 32 affinity attribute names.
Usage guidelines
A link will be excluded from the flexible algorithm topology if it has an affinity attribute that is included in the exclude-any constraint.
Examples
# Exclude links with affinity attribute red from the topology of flexible algorithm 128.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] flex-algo 128
[Sysname-ospfv3-1-flex-algo-128] affinity exclude-any red
Related commands
affinity include-all
Use affinity include-all to specify the include-all constraint for a flexible algorithm.
Use undo affinity include-all to restore the default.
Syntax
affinity include-all affinity-name&<1-32>
undo affinity include-all
Default
The flexible algorithm topology excludes no links.
Views
Flexible algorithm view
Predefined user roles
network-admin
Parameters
affinity-name&<1-32>: Specifies affinity attributes by their names. The affinity attribute name must be a case-sensitive string of 1 to 32 characters. &<1-32> indicates that you can specify a maximum of 32 affinity attribute names.
Usage guidelines
A link will be excluded from the flexible algorithm topology if it does not have all the affinity attributes that are included in the include-all constraint.
Examples
# Exclude links that do not have affinity attributes red and blue from the topology of flexible algorithm 128.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] flex-algo 128
[Sysname-ospfv3-1-flex-algo-128] affinity include-all red blue
Related commands
affinity-map
affinity include-any
Use affinity include-any to specify the include-any constraint for a flexible algorithm.
Use undo affinity include-any to restore the default.
Syntax
affinity include-any affinity-name&<1-32>
undo affinity include-any
Default
The flexible algorithm topology excludes no links.
Views
Flexible algorithm view
Predefined user roles
network-admin
Parameters
affinity-name&<1-32>: Specifies affinity attributes by their names. The affinity attribute name must be a case-sensitive string of 1 to 32 characters. &<1-32> indicates that you can specify a maximum of 32 affinity attribute names.
Usage guidelines
A link will be excluded from the flexible algorithm topology if it does not have any affinity attribute that is included in the include-any constraint.
Examples
# Include links with affinity attribute red in the topology of flexible algorithm 128.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] flex-algo 128
[Sysname-ospfv3-1-flex-algo-128] affinity include-any red
Related commands
affinity-map
affinity-map
Use affinity-map to map an affinity attribute name to an affinity bit.
Use affinity-map to remove the configuration.
Syntax
affinity-map affinity-name bit-position bit
undo affinity-map affinity-name
Default
No affinity attribute name is mapped to an affinity bit.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
affinity-name: Specifies an affinity attribute name, a case-sensitive string of 1 to 32 characters.
bit: Specifies an affinity bit by its number. The value range for this argument is 0 to 255.
Usage guidelines
OSPFv3 supports a maximum of 256 affinity bits. They are numbered from 0 to 255. You can use this feature to map different affinity attribute names to these bits. For example, after you use the affinity-map blue bit-position 3 command, affinity attribute name blue is mapped to affinity bit 3.
After you map a name to each affinity bit, you can specify the affinity attributes of a link or defines flexible algorithm topologies by using affinity attribute names.
To avoid configuration failure, do not map different affinity attribute names to the same affinity bit.
Examples
# Map affinity attribute name red to affinity bit 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] affinity-map red bit-position 1
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 the OSPFv3 area to which that OSPFv3 interface belongs.
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.
Usage guidelines
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: Enabled
Originating router-LSAs with maximum metric
Condition: On startup while BGP is converging for 600 seconds, State: Inactive
Advertise summary-LSAs with metric 16711680
Advertise external-LSAs with metric 16711680
Advertise intra-area-prefix-LSAs with maximum metric
ISPF: Enabled
Link tag inheritance: Disabled
SPF-schedule-interval: 5 50 200
LSA generation interval: 5
LSA arrival interval: 1000 500 500
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
Microloop-avoidance: Disabled
Microloop-avoidance RIB-update-delay: 5000 ms
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 : Disabled
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: Enabled
Fast-reroute TI-LFA: Disabled
SR microloop-avoidance: Disabled
SR microloop-avoidance RIB-update-delay: 5000 ms
Metric-delay advertisement: Disabled
Metric-bandwidth advertisement: Enabled
Metric-bandwidth advertisement suppression: 100
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
IPsec profile name: Profile000
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. · Lite—Lightweight OSPFv3 process. · 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. |
Link tag inheritance |
OSPFv3 link tag inheritance status: Disabled or Enabled. |
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 |
Preference for the node-protection backup path selection policy. |
Lowest-cost Preference |
Preference for the lowest-cost backup path selection policy. |
Microloop avoidance status: Disabled or Enabled. |
|
Microloop avoidance RIB-update-delay timer in milliseconds. |
|
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 |
Information about dynamic End.X SID deletion delay. |
State |
Status of dynamic End.X SID deletion delay: Disabled or Enabled. |
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. |
Metric-delay advertisement |
Link delay advertisement status: Disabled or Enabled. |
Metric-bandwidth advertisement |
Link bandwidth advertisement status: Disabled or Enabled. |
Metric-delay advertisement suppression |
Information about link delay advertisement suppression: · Timer—Link delay advertisement suppression timer in seconds. · Percent threshold—Suppression threshold for the delay variation ratio in percentage. · Absolute threshold—Suppression threshold for the absolute value of the delay variation in microseconds. |
Metric-bandwidth advertisement suppression |
Link bandwidth advertisement suppression timer in seconds. |
Area (MPLS TE xxx) |
Area information. The information in parentheses indicates whether the OSPFv3 area is enabled with MPLS TE. |
IPsec profile name |
IPsec profile applied to the area. |
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 : XGE3/1/2 BkInterface: XGE3/1/1
NextHop : FE80:1:1::1
BkNexthop : FE80:1:2::2
Cost : 1
TI-LFA :
PNode End SID : N/A
QNode AdvId : N/A
LsIndex : N/A
Backup label stack(top->bottom): N/A
Destination : 1.1.1.3 Rtr Type : ASBR
Area : 0.0.0.0 Path Type: Intra
Interface : XGE3/1/3 BkInterface: XGE3/1/4
NextHop : FE80:2:1::1
BkNexthop : FE80:1:2::4
Cost : 1
TI-LFA :
PNode End SID : N/A
QNode AdvId : N/A
LsIndex : N/A
Backup label stack(top->bottom): N/A
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. |
TI-LFA |
TI-LFA route calculation information: · PNode End SID—End SID of the P node. · QNode AdvId—Advertisement source of the Q node. · LsIndex—TI-LFA label stack index. · Backup label stack(top->bottom)—TI-LFA label stack information. If no label stack exists, this field displays N/A. |
LinkTag |
Link tag. |
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
2014-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
2014-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
2014-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
2014-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-03-02 07:55:30 0.258827 0 0 0 Intra-area LSA
2020-03-02 07:55:30 0.679 0 0 0 Intra-area LSA
2020-03-02 07:55:30 0.51576 0 0 0 Intra-area LSA
2020-03-02 07:55:30 0.372 0 0 0 Intra-area LSA
2020-03-02 07:55:25 4.948353 0 0 0 Intra-area LSA
2020-03-02 07:55:25 0.5288 0 0 0 Area 0 full neighbor
2020-03-02 07:55:21 1.66013 0 0 0 Intra-area LSA
2020-03-02 07:55:20 0.450905 0 0 0 Intra-area LSA
2020-03-02 07:55:15 0.253688 0 0 0 Interface state change
2020-03-02 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
2014-09-02 16:39:13 1.3.3.3 IntPhyChange 0 XGE3/1/1
2014-09-02 16:36:46 1.3.3.3 IntPhyChange 0 XGE3/1/1
2014-09-02 16:34:49 1.3.3.3 BFDDown 0 XGE3/1/1
2014-09-02 10:08:45 1.3.3.3 DeadExpired 0 XGE3/1/2
2014-09-02 10:08:39 1.3.3.3 DeadExpired 0 VLINK1
2014-09-02 10:08:08 1.3.3.3 BFDDown 0 XGE3/1/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 flex-algo routing
Use display ospfv3 flex-algo routing to display information about routes calculated by a flexible algorithm.
Syntax
display ospfv3 [ process-id ] flex-algo flex-algo-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 routes calculated by the specified flexible algorithm for all OSPFv3 processes that use that flexible algorithm.
flex-algo flex-algo-id: Specifies a flexible algorithm by its ID. The value range for this argument is 128 to 255.
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. If you do not specify this option, the command displays all IPv6 routes calculated by the specified flexible algorithm.
Examples
# Display information about routes calculated by flexible algorithm 128.
<Sysname> display ospfv3 flex-algo 128 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 : XGE3/1/1 BkInterface: XGE3/1/2
Nexthop : FE80::6AC7:45FF:FE5C:206
BkNexthop : N/A
Status : Direct
*Destination: 23::/64
Type : I Area : 0.0.0.1
AdvRouter : 3.3.3.3 Preference : 10
NibID : 0x23000001 Cost : 1
Interface : XGE3/1/1 BkInterface: XGE3/1/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 : XGE3/1/1 BkInterface: XGE3/1/2
Nexthop : FE80::6AC7:45FF:FE5C:206
BkNexthop : N/A
Status : Normal
Total: 3
Intra area: 3 Inter area: 0 ASE: 0 NSSA: 0
Table 10 Command output
Field |
Description |
Destination |
Destination network address. |
Type |
Route type. |
PrefixLen |
Prefix length. |
Tag |
Route tag. · 1—Type 1 external route. · 2—Type 2 external route. |
Area |
Area ID. |
AdvRouter |
ID of the advertising router. |
Preference |
OSPFv3 route preference. |
NibID |
Next hop ID. |
Cost |
Routing cost value. |
Interface |
Type and number of the output interface. |
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. |
TI-LFA |
TI-LFA information. |
PNode End SID |
End SID of the P node. |
QNode AdvId |
Advertisement source router ID of the Q node. |
LsIndex |
Label stack index. |
Backup label stack(top->bottom) |
Backup path label stack arranged from top to bottom. N/A indicates that no label stack exists. |
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. |
display ospfv3 flex-algo spf-tree
Use display ospfv3 flex-algo spf-tree to display information about the SPF tree calculated by a flexible algorithm for an OSPFv3 area.
Syntax
display ospfv3 [ process-id ] [ area area-id ] flex-algo flex-algo-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 this argument, the command displays SPF tree 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. If you enter a decimal integer, the device will translate the integer into IPv4 address format. If you do not specify an area, this command displays SPF tree information for all OSPFv3 areas.
flex-algo flex-algo-id: Specifies a flexible algorithm by its ID. The value range for this argument is 128 to 255.
verbose: Displays detailed SPF tree information.
Examples
# Display brief information about the SPF tree calculated by flexible algorithm 128 for area 0 in process 1.
<Sysname> display ospfv3 1 area 0 flex-algo 128 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
Area: 0.0.0.0 Flex Algo Shortest Path Tree
SPFNode Type Flag SPFLink Type Cost Flag
>2.2.2.2 Router S
-->2.2.2.2 RT2NET 1 P
>2.2.2.2 Network S R
-->2.2.2.2 NET2RT 0 C
-->1.1.1.1 NET2RT 0 P
>1.1.1.1 Router S
-->2.2.2.2 RT2NET 1 C
Table 11 Command output
Field |
Description |
SPFNode |
SPF node. You can identify an SPF node by its router ID. |
Type |
Node type: · Network—Network node. · Router—Router node. |
Flag |
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. |
SPFLink |
SPF link. You can identify an SPF link by its router ID. |
Type |
Link type: · RT2RT—Router to router. · NET2RT—Network to router. · RT2NET—Router to network. |
Cost |
Link cost. |
Flag |
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 destination 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 information about the SPF tree calculated by flexible algorithm 128 for area 0 in process 1.
<Sysname> display ospfv3 1 area 0 flex-algo 128 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
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
Nexthop count: 1
-->NbrID : 1.1.1.1 NbrIntID : 21
Interface : XGE3/1/2 NhFlag : Valid
BkInterface: XGE3/1/3 RefCount : 4
Nexthop : FE80::20C:29FF:FED7:F308
BkNexthop : FE80::4
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
Nexthop count: 2
-->NbrID : 4.4.4.4 NbrIntID : 0
Interface : XGE3/1/1 NhFlag : Valid
BkInterface: N/A RefCount : 1
Nexthop : 4::44
BkNexthop : N/A
-->NbrID : 2.2.2.2 NbrIntID : 258
Interface : XGE3/1/2 NhFlag : Valid
BkInterface: N/A RefCount : 5
Nexthop : FE80::362E:A7FF:FE29:616
BkNexthop : 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 12 Command output
Field |
Description |
SPFNode |
SPF node. |
AdvID |
ID of the advertising router. |
LsID |
Link state ID. |
NodeType |
Node type. · Network—Network node. · Router—Router node. |
Distance |
Cost to the root node. |
NodeFlag |
Node flag. · I—The node is in initialization state. · A—The node is on the candidate list. · S—The node is on the SPF tree. · R—The node is directly connected to the root node. · D—The node is to be deleted. |
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 destination 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. |
display ospfv3 global-flex-algo
Use display ospfv3 global-flex-algo to display information about the FADs received or advertised by a node.
Syntax
display ospfv3 [ process-id ] [ area area-id ] global-flex-algo [ algorithm-id flex-algo-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 this argument, the command displays FAD information for all OSPFv3 processes on the node.
area area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295. If you enter a decimal integer, the device will translate the integer into IPv4 address format. If you do not specify an area, this command displays FAD information for all OSPFv3 areas.
algorithm-id flex-algo-id: Specifies a flexible algorithm by its ID. The value range for this argument is 128 to 255. If you do not specify this option, this command displays FAD information received or advertised by the node for all flexible algorithms.
Usage guidelines
If you do not specify any keywords, the command displays all FADs received or advertised by the node.
Examples
# Display the FADs received or advertised in area 0 for process 1.
<Sysname> display ospfv3 1 area 0 global-flex-algo
OSPFv3 Process 1 with Router ID 1.1.1.1
Area: 0.0.0.0
Algorithm: 130
RouterID : 2.2.2.2
Priority : 255
MetricType : IGP
Status : Active
Exclude Any EAG: 0x00000000 0x00000000
0x00000000 0x00000000
0x00000004
Include Any EAG: N/A
Include All EAG: N/A
SrcCount : 2
-->RouterID : 1.1.1.1
Priority : 255
MetricType : IGP
Exclude Any EAG: 0x00000000 0x00000000
0x00000000 0x00000000
0x00000004
Include Any EAG: N/A
Include All EAG: N/A
-->RouterID : 2.2.2.2
Priority : 255
MetricType : IGP
Exclude Any EAG: 0x00000000 0x00000000
0x00000000 0x00000000
0x00000004
Include Any EAG: N/A
Include All EAG: N/A
Table 13 Command output
Field |
Description |
OSPFv3 Process 1 with Router ID 1.1.1.1 |
OSPFv3 process ID and router ID. |
Area |
OSPFv3 area ID. |
Algorithm xx |
Information about flexible algorithm xx. |
Router ID |
Source that advertises the flexible algorithm. |
Priority |
Priority value for the flexible algorithm. |
Metric type |
Metric type of the flexible algorithm. Only IGP (OSPFv3 link cost) is supported. |
Status |
FAD state: active or inactive. |
Exclude Any EAG |
The exclude-any constraint in the FAD. N/A indicates that no exclude-any constraint is set. |
Include Any EAG |
The include-any constraint in the FAD. N/A indicates that no include-any constraint is set. |
Include All EAG |
The include-all constraint in the FAD. N/A indicates that no include-all constraint is set. |
SrcCount |
Number of advertisement sources. |
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 : 2
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 14 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 15 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 (Ten-GigabitEthernet3/1/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 (Ten-GigabitEthernet3/1/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 (Ten-GigabitEthernet3/1/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
Sham-link Neighbor-ID: 100.1.1.1, Neighbor-state: Full
Restarter state: Normal State: P-2-P Type: Sham
Interface-ID: 2147483649, Instance-ID: 0
Source : 8000:88::FFFF
Destination : 7000:77::FFFF
Last exit reason:
Restarter: None
Helper : None
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 16 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. |
Sham-link Neighbor-ID |
Router ID of the sham link's neighbor. |
Source |
Source address of the sham link. |
Destination |
Destination address of the sham link. |
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 Ten-GigabitEthernet 3/1/1.
<Sysname> display ospfv3 interface ten-gigabitethernet 3/1/1
OSPFv3 Process 1 with Router ID 1.1.1.1
Area: 0.0.0.0
-------------------------------------------------------------------------
Ten-GigabitEthernet3/1/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
Link tag: 100
Neighbor count is 1, Adjacent neighbor count is 1
Primary path detection mode: BFD echo
IPsec profile name: profile001, inherited
Keychain authentication: Enabled (test), inherited
Exchanging/Loading neighbors: 0
Wait timer: Off, LsAck timer: Off
Prefix-suppression is enabled
Average delay: 100 us
Min delay: 10 us
Max delay: 200 us
Delay variation: 0 us
Link quality: GOOD, cost adjusted at low quality: Maximum
BFD adjust cost: 1000
BFD suppress flapping: Detect interval 30s
Threshold 2
Resume interval 10s
Virtual system: Enabled
Virtual Router ID: 3.3.3.3
Table 17 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. · NBMA. |
MTU |
MTU value of the interface. |
Cost source |
Link cost source of the interface: · Default—Default link cost. · Manual—Manually specified link cost. · Fallback—Link cost applied when the bandwidth of the Layer 3 aggregate interface falls below the threshold. · LinkUp—Maximum link cost advertised to neighbors during the specified time period. · BFD—Link cost applied when the BFD session goes down. · LOW—Link cost applied when the link quality is LOW. |
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. |
Link tag |
Link tag of the interface. |
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. |
IPsec profile name: profile001, inherited |
IPsec profile profile001 is applied to the interface. The inherited attribute indicates that the interface is using the IPsec profile specified for the area to which the interface belongs. |
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. |
Average delay |
Average link delay in microseconds. |
Max delay |
Maximum link delay in microseconds. |
Min delay |
Minimum link delay in microseconds. |
Delay variation |
Acceptable link delay variation in microseconds. |
Link quality |
Link quality: · GOOD—The bit error ratio is below the upper threshold or drops below the lower threshold. · LOW—The bit error ratio exceeds the upper threshold. This field is displayed only when the interface is configured with the ospfv3 link-quality adjust-cost command. |
cost adjusted at low quality |
Interface cost adjustment parameters: · xx—Value added to the interface cost. When the link quality is LOW, the interface cost is xx plus the original interface cost. · Maximum—Sets the maximum interface cost (65535) when the link quality is LOW. This field is displayed only when the interface is configured with the ospfv3 link-quality adjust-cost command. |
BFD adjust cost |
Whether OSPFv3 is enabled to adjust the interface cost according to the BFD session state: · Disabled. · A value in the 1 to 65534 indicates the value to be added to the interface cost. · Maximum—Sets the interface cost to the maximum value 65534. This information is displayed only when the ospfv3 bfd adjust-cost command is configured for the interface. |
BFD suppress flapping |
Suppress adjustment of the interface cost according to the BFD session state upon BFD session flapping: · Detect interval—Interval at which OSPFv3 detects BFD session state changes, in seconds. · Threshold—Maximum number of BFD session down events. The number of BFD session down events is also displayed (in the BFD down times field) if it is smaller than the threshold within the specified detection interval. · Resume interval—Delay timer before OSPFv3 resumes the original interface cost, in seconds. The remain field indicates the remaining time of the timer. This information is displayed only when the ospfv3 bfd adjust-cost suppress-flapping command is configured for the interface. |
Virtual system |
Whether the virtual system feature is enabled on the OSPFv3 interface. If this feature is enabled, the interface can use a virtual OSPFv3 node for neighbor relationship establishment. |
Virtual Router ID |
Router ID of the virtual OSPFv3 node configured on the interface. |
display ospfv3 local-flex-algo
Use display ospfv3 local-flex-algo to display the configuration for a flexible algorithm on a node.
Syntax
display ospfv3 [ process-id ] local-flex-algo [ algorithm-id flex-algo-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies a process by its ID in the range of 1 to 65535. If you do not specify this argument, the command applies to all processes.
algorithm-id flex-algo-id: Specifies a flexible algorithm by its ID. The value range for this argument is 128 to 255. If you do not specify this option, the command displays the configuration for all flexible algorithms on the node.
Examples
# Display the configuration for flexible algorithm 255 in all processes.
<Sysname> display ospfv3 local-flex-algo algorithm-id 255
OSPFv3 Process 1 with Router ID 1.1.1.1
Flex-Algo(255)
Definition advertisement : Enabled
Priority : 255
Metric type : IGP
Fast reroute : Enabled
Table 18 Command output
Field |
Description |
OSPFv3 Process 1 with Router ID 1.1.1.1 |
OSPFv3 process ID and router ID. |
Flex-Algo(xx) |
Configuration for a flexible algorithm. The xx argument represents the flexible algorithm ID. |
Definition advertisement |
Whether FAD advertisement is enabled. |
Priority |
Priority value for the flexible algorithm. |
MetricType |
Metric type of the flexible algorithm. Only IGP (OSPFv3 link cost) is supported. |
Fast-reroute |
Whether FRR is enabled. |
display ospfv3 lsdb
Use display ospfv3 lsdb to display OSPFv3 LSDB information.
Syntax
display ospfv3 [ process-id ] lsdb [ { e-inter-prefix | e-inter-router | 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-inter-prefix: Displays E-Inter-Area-Prefix LSAs (Type-35 LSAs).
e-inter-router: Displays E-Inter-Area-Router LSAs (Type-36 LSAs).
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 Ten-GigabitEthernet3/1/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
E-Router-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum Link
0.0.0.1 1.1.1.1 0009 0x80000001 0x1aa9 1
0.0.0.0 1.1.1.1 0027 0x80000001 0x395e 1
E-Inter-Area-Prefix-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum
0.0.0.0 2.2.2.2 0019 0x80000007 0x599e
E-Inter-Area-Router-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum
0.0.0.0 2.2.2.2 0037 0x8000001d 0xeaf6
Table 19 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 Ten-GigabitEthernet3/1/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 20 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 |
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-Local address |
Link-local address. |
Number of prefixes |
Number of prefixes. |
Prefix |
Address prefix. |
Prefix options |
Prefix options. |
# Display E-Inter-Prefix LSAs in the OSPFv3 LSDB.
<Sysname> display ospfv3 lsdb e-inter-prefix
OSPFv3 Process 1 with Router ID 1.1.1.1
E-Inter-Area-Prefix-LSA (Area 0.0.0.0)
-------------------------------------------------------------------------
LS age : 195
LS type : E-Inter-Area-Prefix-LSA
Link state ID : 0.0.0.2
Originating router : 3.3.3.3
LS seq number : 0x8000001E
Checksum : 0xBD8E
Length : 36
Metric : 1
Prefix : 777::/64
Prefix options : 0 (-|-|x|-|-)
Link tag : 2233
Table 21 Command output
Field |
Description |
LS age |
LSA aging time. |
Length |
LSA length in bytes. |
Link tag |
Link tag of the interface. |
# Display E-Inter-Router LSAs in the OSPFv3 LSDB.
<Sysname> display ospfv3 lsdb e-inter-router
OSPFv3 Process 1 with Router ID 1.1.1.1
E-Inter-Area-Router-LSA (Area 0.0.0.0)
-------------------------------------------------------------------------
LS age : 308
LS type : E-Inter-Area-Router-LSA
Link state ID : 0.0.0.0
Originating router : 3.3.3.3
LS seq number : 0x8000001E
Checksum : 0xE8F7
Length : 32
Options : 0x000013 (-|R|-|x|E|V6)
Metric : 1
Destination router ID: 4.4.4.4
Link tag : 2233
Table 22 Command output
Field |
Description |
LS age |
LSA aging time. |
Length |
LSA length in bytes. |
Link tag |
Link tag of the interface. |
# 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
Flag: 0, Average delay: 20 us
Flag: 0, Min delay: 20 us, Max delay: 40 us
Delay variation: 30 us
Remaining bandwidth: 10 bytes/sec
Available bandwidth: 10 bytes/sec
Utilized bandwidth: 10 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 23 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. |
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. · Flag—Whether the measured average link delay exceeds 16777215 microseconds. ¡ 0—The measured average link delay is shorter than 16777215 microseconds, indicating that the link is stable. ¡ 1—The measured average link delay is longer than or equivalent to 16777215 microseconds, indicating that the link is not stable. · Average delay—Average link delay in microseconds. · Flag—Whether the measured minimum or maximum link delay exceeds 16777215 microseconds. ¡ 0—The measured minimum or maximum link delay is shorter than 16777215 microseconds, indicating that the link is stable. ¡ 1—The measured minimum or maximum link delay is longer than or equivalent to 16777215 microseconds, indicating that the link is not stable. · Min delay—Minimum link delay in microseconds. · Max delay—Maximum link delay in microseconds. · Delay variation—Delay variation in microseconds. · Remaining bandwidth—Remaining bandwidth in bps. · Available bandwidth—Available bandwidth in bps. · Utilized bandwidth—Used bandwidth in bps. |
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 1.1.1.1
Router-Information-LSA (Area 0.0.0.0)
-------------------------------------------------------------------------
LS age : 315
LS type : Router-Information-LSA
Link state ID : 0.0.0.0
Originating router : 1.1.1.1
LS seq number : 0x80000035
Checksum : 0x32EA
Length : 56
SRv6 capability :
Flags (O) : 0
SRv6 node MSD :
Segment Left : 10
End Pop MSD : 10
H.Encaps MSD : 10
End D MSD : 10
SRv6 algorithm :
Algorithm : 0
Algorithm : 130
Flex-Algo Definition :
Algorithm : 130
Metric-Type : IGP
Algo-Type : SPF
Priority : 255
Exclude Any EAG : 0x00000000 0x00000000
0x00000000 0x00000000
0x00000004
Table 24 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. |
SRv6 capability |
SRv6 capability. |
Flags (O) |
SRv6 capability sub-TLV information. 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). |
H.Encaps MSD |
Maximum number of SIDs that the transit node can encapsulate into a packet through the SRv6 TE policy. |
End D MSD |
Maximum number of SIDs that can be decapsulated. |
SRv6 algorithm |
Algorithm associated to the SRv6 prefix. Options include: · 0—SPF algorithm. · 1—Strict SPF algorithm. |
Flex-Algo Definition |
FAD information. |
Algorithm |
ID of the flexible algorithm. |
Metric-Type |
Metric type of the flexible algorithm. Only IGP (OSPFv3 link cost) is supported. |
Algo-Type |
Flexible algorithm type. Only the SPF algorithm is supported. |
Priority |
Priority value for the flexible algorithm. |
Exclude Any EAG |
The exclude-any constraint in the FAD. |
Include All EAG |
The include-all constraint in the FAD. |
Include Any EAG |
The include-any constraint in the FAD. |
# 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 25 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. |
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 |
Algorithm associated to the prefix: · 0—SPF algorithm. · 1—Strict SPF algorithm. · 128 to 255—Flexible 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-FLAVOR). · End with PSP. · End with USP. · End with PSP&USP. · End.X (NO-FLAVOR). · 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
Application Specific Link Attributes :
SA-Length : 4
UDA-Length : 4
SA-Value : 0x10000000 Flex-Algo
UDA-Value : 0x10000000 Flex-Algo
TE cost : 1
Flag: 0, Average delay: 100 us
Flag: 0, Min delay: 10 us, Max delay: 1000 us
Delay variation: 20 us
Remaining bandwidth: 1 bytes/sec
Available bandwidth: 2 bytes/sec
Utilized bandwidth : 1 bytes/sec
Local interface Address : 10::1
Remote interface Address : 10::2
Table 26 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. |
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. |
Link tag |
Link tag of the interface. |
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. |
SID |
SRv6 SID |
Function type |
SID function type: · End (NO-FLAVOR)). · End with PSP. · End with USP. · End with PSP&USP. · End.X (NO-FLAVOR)). · 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 |
Algorithm associated to the prefix: · 0—SPF algorithm. · 1—Strict SPF algorithm. · 128 to 255—Flexible 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. |
Application Specific Link Attributes |
Application specific link attributes, which indicate that the link attribute is associated with a flexible algorithm. |
SA-Length |
Standard application identifier bit mask length in bytes. |
UDA-Length |
User defined application identifier bit mask length in bytes. |
SA-Value |
Standard Application Identifier Bit Mask. The value for this field varies by application. A value of 0x10000000 represents the flexible algorithm. |
UDA-Value |
User Defined Application Identifier Bit Mask. The value for this field varies by application. A value of 0x10000000 represents the flexible algorithm. |
TE cost |
MPLS TE cost of the interface. |
Unidirectional link delay |
Unidirectional link delay information. |
Average link delay in microseconds. |
|
Flag |
Whether the measured average link delay exceeds 16777215 microseconds. · 0—The measured average link delay is shorter than 16777215 microseconds, indicating that the link is stable. · 1—The measured average link delay is longer than or equivalent to 16777215 microseconds, indicating that the link is not stable. |
Minimum delay |
Minimum link delay in microseconds. |
Maximum delay |
Maximum link delay in microseconds. |
Flag |
Whether the measured minimum or maximum link delay exceeds 16777215 microseconds. · 0—The measured minimum or maximum link delay is shorter than 16777215 microseconds, indicating that the link is stable. · 1—The measured minimum or maximum link delay is longer than or equivalent to 16777215 microseconds, indicating that the link is not stable. |
Acceptable link delay variation in microseconds. |
|
Remaining bandwidth |
Remaining bandwidth in byte/s. |
Available bandwidth |
Available bandwidth in byte/s. |
Used bandwidth |
Used bandwidth in byte/s. |
Local interface Address |
Local IPv6 global unicast address. |
Remote interface Address |
Remote IPv6 global unicast address. |
# 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 2 1 0 0 1 0 0
Total 2 1 0 0 1 0 0
-------------------------------------------------------------------------
Area ID ERouter Locator RtrInfo EInterPrefix EInterRouter
0.0.0.0 1 0 0 0 0
Total 1 0 0 0 0
-------------------------------------------------------------------------
Link Grace ASE
Total 2 0 0
Table 27 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. |
IntraTE |
Number of Type-10 LSAs. |
NSSA |
Number of Type-7 LSAs. |
ERouter |
Number of Type-33 LSAs. |
Locator |
Number of Type-42 LSAs. |
RtrInfo |
Number of Type-12 LSAs. |
EInterPrefix |
Number of Type-35 LSAs. |
EInterRouter |
Number of Type-36 LSAs. |
Link |
Number of Type-8 LSAs. |
Grace |
Number of Type-11 LSAs. |
ASE |
Number of Type-5 LSAs. |
# Display total number of LSAs in the OSPFv3 LSDB.
<Sysname> display ospfv3 lsdb total
OSPFv3 Process 1 with Router ID 1.1.1.1
-------------------------------------------------------------------------
Type Of LSA Number
Router-LSA : 2
Network-LSA : 1
Inter-Area-Prefix-LSA : 0
Inter-Area-Router-LSA : 0
AS-external-LSA : 0
NSSA-LSA : 0
Link-LSA : 2
Intra-Area-Prefix-LSA : 1
Grace-LSA : 0
Intra-Area-TE-LSA : 0
E-Router-LSA : 0
Router-Information-LSA : 0
Locator-LSA : 0
E-Inter-Area-Prefix-LSA: 0
E-Inter-Area-Router-LSA: 0
Unknown-LSA : 0
Total number of LSAs : 6
Table 28 Command output
Field |
Description |
Type Of LSA |
LSA type. |
Number |
Number of 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. |
Intra-Area-TE-LSA |
Number of Type-10 LSAs. |
E-Router-LSA |
Number of Type-33 LSAs. |
Router-Information-LSA |
Number of Type-12 LSAs. |
Locator-LSA |
Number of Type-42 LSAs. |
E-Inter-Area-Prefix-LSA |
Number of Type-35 LSAs. |
E-Inter-Area-Router-LSA |
Number of Type-36 LSAs. |
Unknown-LSA |
Number of unknown LSAs. |
Total number of LSAs |
Total number of LSAs. |
# Display detailed OSPFv3 LSDB information.
<Sysname> display ospfv3 lsdb verbose
OSPFv3 Process 1 with Router ID 1.1.1.1
Link-LSA (Interface Ten-GigabitEthernet3/1/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 Checksu
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
E-Router-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum Link
0.0.0.1 1.1.1.1 0013 0x80000001 0x1aa9 1
SendCnt: 0 RxmtCnt: 0 Status: Stale
0.0.0.0 1.1.1.1 0024 0x80000001 0x395e 1
SendCnt: 0 RxmtCnt: 0 Status: Stale
E-Inter-Area-Prefix-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum
0.0.0.0 2.2.2.2 0618 0x80000007 0x599e
SendCnt: 0 RxmtCnt: 0 Status: Normal
E-Inter-Area-Router-LSA (Area 0.0.0.1)
-------------------------------------------------------------------------
Link state ID Origin router Age SeqNumber Checksum
0.0.0.0 2.2.2.2 0618 0x8000001d 0xeaf6
SendCnt: 0 RxmtCnt: 0 Status: Normal
Table 29 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: XGE3/1/2
RefCount: 4 Status : Valid
NbrID : 1.1.1.1 NbrIntID : 21
Nexthop : FE80::20C:29FF:FED7:F312 Interface: XGE3/1/3
RefCount: 3 Status : Valid
NbrID : 1.1.1.1 NbrIntID : 38
Table 30 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 31 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 XGE3/1/1
Sham link destination: 3::3
Router ID Pri State Dead-Time InstID
100.1.1.1 1 Full/ - 00:00:39 0
Table 32 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 XGE3/1/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
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 33 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. |
# 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 34 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 Ten-GigabitEthernet3/1/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 35 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 Ten-GigabitEthernet3/1/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 36 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 : XGE3/1/1 BkInterface: XGE3/1/2
Nexthop : FE80::6AC7:45FF:FE5C:206
NexthopFlag: -
BkNexthop : N/A
Status : Rely
Delay Flag : N/A
*Destination: 23::/64
Type : I Area : 0.0.0.1
AdvRouter : 3.3.3.3 Preference : 10
NibID : 0x23000001 Cost : 1
Interface : XGE3/1/1 BkInterface: XGE3/1/2
Nexthop : ::
NexthopFlag: -
BkNexthop : N/A
Status : Direct
Delay Flag : N/A
*Destination: 8::/64
Type : E2 Tag : 1
AdvRouter : 1.1.1.1 Preference : 150
NibID : 0x23000004 Cost : 1
Interface : XGE3/1/1 BkInterface: XGE3/1/2
Nexthop : FE80::6AC7:45FF:FE5C:206
NexthopFlag: -
BkNexthop : N/A
Status : Rely
Delay Flag : N/A
Total: 3
Intra area: 3 Inter area: 0 ASE: 0 NSSA: 0
Table 37 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 the name of the SRv6 TE policy. |
BkInterface |
Backup output interface. |
Nexthop |
Primary next hop IP address. |
NexthopFlag |
Next hop flag. A value of D indicates that the next hop is directly connected to the advertisement source. |
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. |
Delay Flag |
Flag of RIB update delay: · D—Route updates are in delay, because microloop avoidance is enabled. · N/A—Route updates are sent normally, because microloop avoidance is disabled or the RIB-update-delay timer expires. |
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 information. |
PNode End SID |
End SID of the P node. |
QNode AdvID |
|
LsIndex |
Label stack index. |
Backup label stack (top->bottom) |
Backup path label stack arranged from top to bottom. 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 avoidance 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 38 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 destination 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 : XGE3/1/2 NhFlag : Valid
BkInterface: XGE3/1/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
SRPDistance: 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 : XGE3/1/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 39 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. |
TI-LFA information. |
|
Router 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. |
End SID of the P node. If the destination node is in the P space, this field displays N/A. |
|
Protect |
Traffic protection type: · Link—Link protection. · Node—Node protection. |
Label stack |
Label stack. N/A indicates that no label stack exists. |
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 destination 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. |
LinkTag |
Link tag of the interface. |
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. |
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
Intra-Area-TE-LSA 0
E-Router-LSA 0
Locator-LSA 0
Router-Information-LSA 0
Grace-LSA 0
E-Inter-Area-Prefix-LSA 0
E-Inter-Area-Router-LSA 0
Unknown-LSA 0
Total 314
Routes Statistics
----------------------------------------------------------
Type Count
Intra Area 0
Inter Area 0
ASE 0
NSSA 0
Table 40 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. |
Intra-Area-TE-LSA |
Number of Type-10 LSAs. |
E-Router-LSA |
Number of Type-33 LSAs. |
Locator-LSA |
Number of Type-42 LSAs. |
Router-Information-LSA |
Number of Type-12 LSAs. |
Grace-LSA |
Number of Type-11 LSAs. |
E-Inter-Area-Prefix-LSA |
Number of Type-35 LSAs. |
E-Inter-Area-Router-LSA |
Number of Type-36 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 41 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: Ten-GigabitEthernet3/1/1
DD LSR LSU ACK Total
Input : 16 0 45 7 68
Output: 17 1 7 44 69
Interface: Ten-GigabitEthernet3/1/2
DD LSR LSU ACK Total
Input : 41 13 720 719 1493
Output: 54 41 750 713 1558
Table 42 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 (Ten-GigabitEthernet3/1/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
IPsec profile name: profile001, inherited
Keychain authentication: Enabled (test), inherited
Table 43 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. |
IPsec profile name: profile001, inherited |
IPsec profile profile001 is applied to the virtual link. The inherited attribute indicates that the virtual link is using the IPsec profile specified for the backbone area. |
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. |
distibute 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
enable ipsec-profile
Use enable ipsec-profile to apply an IPsec profile to an OSPFv3 area.
Use undo enable ipsec-profile to remove the IPsec profile from the OSPFv3 area.
Syntax
enable ipsec-profile profile-name
undo enable ipsec-profile
Default
No IPsec profile is applied to an area.
Views
OSPFv3 area view
Predefined user roles
network-admin
Parameters
profile-name: Specifies an IPsec profile by its name, a case-insensitive string of 1 to 63 characters.
Usage guidelines
To protect routing information and prevent attacks, OSPFv3 can authenticate protocol packets by using an IPsec profile. For more information about IPsec profiles, see Security Configuration Guide.
Examples
# Apply IPsec profile profile001 to Area 0 in OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] area 0
[Sysname-ospfv3-1-area-0.0.0.0] enable ipsec-profile profile001
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 a backup next hop for all routes.
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, OSPFv3 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 a backup next hop for all routes by using LFA algorithm in OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] fast-reroute lfa
Related commands
display ospfv3 routing
fast-reroute enable
Use fast-reroute enable to enable FRR for a flexible algorithm.
Use undo fast-reroute enable to disable FRR for a flexible algorithm.
Syntax
fast-reroute enable
undo fast-reroute enable
Default
Flexible algorithm FRR is enabled.
Views
Flexible algorithm view
Predefined user roles
network-admin
Usage guidelines
By default, the flexible algorithm calculates a backup path to a SID as follows:
1. Uses the SPF algorithm to calculate the SPF tree destined for the destination node, taking the neighbor that can provide a backup path as the root node.
2. Uses LFA to calculate a loop-free backup path with the lowest cost.
If no backup paths exist in the network, execute the undo fast-reroute enable command to disable flexible algorithm FRR to save device resources.
Examples
# Disable FRR for flexible algorithm 128.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] flex-algo 128
[Sysname-ospfv3-1-flex-algo-128] undo fast-reroute enable
fast-reroute tiebreaker (OSPFv3 view)
Use fast-reroute tiebreaker to set the priority for the node-protection or lowest-cost 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
OSPFv3 FRR uses specific policies for backup path calculation. This command defines the priority for the backup path selection policy. The higher the value, the higher the priority of the associated backup path selection policy. Changing the backup path selection policy priority can affect the backup path calculation result for OSPFv3 FRR. The backup paths can provide node protection or link protection for traffic, or provide both node protection and link protection.
OSPFv3 FRR supports the following backup path selection policies that are used to generate different topologies for backup path calculation:
· Node protection—OSPFv3 FRR performs backup path calculation after excluding the primary next hop node.
· Lowest cost—OSPFv3 FRR performs backup path calculation after excluding the direct primary link.
If multiple backup path selection policies exist in an OSPFv3 process, the policy with the highest priority is used to calculate the backup path. If the policy fails to calculate the backup path, another policy with higher priority is used. OSPFv3 performs backup path calculation by using the node protection and lowest cost policies as follows:
· If the node protection policy has higher priority and fails to calculate the backup path, OSPFv3 uses the lowest cost policy to calculate the backup path. If the lowest cost policy still fails to calculate the backup path, reliability cannot be ensured upon primary link failure.
· If the lowest cost policy has higher priority and fails to calculate the backup path, OSPFv3 does not perform further backup path calculation with the node protection policy. Reliability cannot be ensured upon primary link failure.
If you execute this command multiple times for a backup path selection policy, the most recent configuration takes effect.
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
fast-reroute tiebreaker (flexible algorithm view)
Use fast-reroute tiebreaker to set the priority value for an FRR backup path selection policy for a flexible algorithm.
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
Flexible algorithm 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.
You can configure both backup path selection policies in an address family view. The flexible algorithm will calculate a backup path by using the policies in descending order of their priorities until a backup path is calculated. If the flexible algorithm fails to calculate a backup path, it does not perform further backup path calculation.
If the flexible algorithm fails to calculate a backup path by using the lowest-cost policy, it does not perform further backup path calculation.
Examples
# Set the priority value of the node-protection backup path selection policy to 100 for flexible algorithm 255 in OSPFv3 process 1.
[Sysname] ospfv3 1
[Sysname-ospfv3-1] flex-algo 255
[Sysname-ospfv3-1-flex-algo-255] fast-reroute tiebreaker node-protecting preference 100
fast-reroute ti-lfa enable
Use fast-reroute ti-lfa enable to enable Topology-Independent Loop-Free Alternate (TI-LFA) FRR for a flexible algorithm.
Use undo fast-refroute ti-lfa enable to disable TI-LFA FRR for a flexible algorithm.
Syntax
fast-reroute ti-lfa enable [ per-prefix ]
undo fast-reroute ti-lfa enable
Default
TI-LFA FRR is enabled for a flexible algorithm.
Views
Flexible algorithm view
Predefined user roles
network-admin
Parameters
per-prefix: Calculates backup path information for each route advertisement source. If you do not specify this keyword, the device calculates backup path information on a per route basis.
Usage guidelines
TI-LFA FRR calculates backup paths based on FAD of the flexible algorithm. This feature can protects links and nodes in the topology. When a link or node fails, TI-LFA FRR will use the backup path to forward traffic to ensure continuous data forwarding and reduce traffic loss.
Examples
# Enable TI-LFA FRR for flexible algorithm 255.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] flex-algo 255
[Sysname-ospfv3-1-flex-algo-255] fast-reroute ti-lfa enable
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 has no 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 | unr ]
undo filter-policy export [ bgp4+ | direct | { isisv6 | ospfv3 | ripng } [ process-id ] | static | unr ]
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 IPv6 static routes.
unr: Filters redistributed user network routes.
Usage guidelines
When you specify an ACL, follow these guidelines:
· If the ACL does not exist or has no 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 has no 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.
Using 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
flex-algo
Use flex-algo to create a flexible algorithm and enter its view, or enter the view of an existing flexible algorithm.
Use undo flex-algo to delete a flexible algorithm.
Syntax
flex-algo flex-algo-id
undo flex-algo flex-algo-id
Default
No flexible algorithms exist.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
flex-algo-id: Specifies a flexible algorithm ID. The value range for this argument is 128 to 255. You can create multiple flexible algorithms in an OSPFv3 process.
Usage guidelines
You can identify a path calculation algorithm by checking the algorithm field in an OSPFv3 SID. The value range for this field is 0 to 255.
· A value of 0 represents the SPF algorithm that uses IGP metric for path calculation.
· A value of 128 to 255 represents the flexible algorithm that uses specific metric type and constraints for path calculation.
A flexible algorithm consists of the following parts:
· Calculation type—Algorithm used for path calculation. In the current software version, only the SPF algorithm is supported.
· Metric type—Metric type used for the shortest path calculation. In the current software version, only OSPFv3 link cost is supported.
· Constraint—Link filter criteria for topology generation. You can use a set of constraints to exclude links with specific affinity attributes from or include them in the flexible algorithm topology.
A flexible algorithm generates its topology as follows:
· Excludes the nodes that does not participate in the path calculation for that flexible algorithm.
· Excludes links according to the constraints.
· Excludes the links that do not meet the flexible algorithm requirement on metric type.
In a flexible algorithm topology, all nodes calculate optimal paths based on the calculation type and metric type in the FAD.
Examples
# Create flexible algorithm 128 and enter its view.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] flex-algo 128
[Sysname-ospfv3-1-flex-algo-128]
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.
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 redistribute routes.
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 | unr } [ [ 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 | { isisv6 | ospfv3 | ripng } [ process-id | all-processes ] | static | unr }
Default
OSPFv3 route redistribution is disabled.
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.
static: Redistributes IPv6 static routes.
unr: Redistributes user network routes. User network routes are generated by access devices for online users.
isisv6: Redistributes IPv6 IS-IS routes.
ospfv3: Redistributes OSPFv3 routes.
ripng: Redistributes RIPng routes.
process-id: Specifies an IPv6 IS-IS, RIPng, or OSPFv3 process by its ID, in the range of 1 to 65535. The default is 1.
all-processes: Redistributes routes from all IPv6 IS-IS, RIPng, or OSPFv3 processes.
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 include-stub keyword in the stub-router max-metric command, the link cost provided by the stub router feature takes effect on Router LSAs of link type 3. The link cost provided by the isolation feature takes effect on Router LSAs of link type 1, 2, and 4.
· 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 does not take effect.
· If you do not specify a keyword in the stub-router max-metric command, traffic forwarding path selection is affected only by the isolation feature.
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
link-tag inherit enable
Use link-tag inherit enable to enable OSPFv3 link tag inheritance.
Use undo link-tag inherit enable to disable OSPFv3 link tag inheritance.
Syntax
link-tag inherit enable
undo link-tag inherit enable
Default
OSPFv3 link tag inheritance is disabled.
Views
OSPFv3 view
Predefined user roles
network-admin
Usage guidelines
After you execute this command on a device, the device inherits the OSPFv3 link tag in received LSPs. If the device receives multiple link tags from a device, it selects and inherits only one tag. Then, the device configures the link tag as the route tag for all routes that pass the link.
This feature is usually used in Source Address Validation Architecture (SAVA) scenarios to ensure the consistency of IPv6 SAVA entries on multiple gateway devices as follows:
1. Set an OSPFv3 link tag for the customer-side interface on the gateway device that advertises IPv6 SAVA entries.
2. Enable OSPFv3 link tag inheritance on the gateway device that receives IPv6 SAVA entries. The device generates an IPv6 SAVA entry based on a route prefix if the following two tags are the same:
¡ The route tag configured by executing the ipv6 sava import remote-route-tag command.
¡ The OSPFv3 link tag that the route inherits.
For more information about SAVA and IPv6 SAVA entries, see SAVA configuration in Security Configuration Guide.
Examples
# In OSPFv3 process 1, enable OSPFv3 link tag inheritance.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] link-tag inherit enable
Related commands
ipv6 sava import remote-route-tag (Security Command Reference)
ospfv3 link-tag
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 Network Management and Monitoring 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-arrival-interval
Use lsa-arrival-interval to set the LSA arrival interval.
Use undo lsa-arrival-interval to restore the default.
Syntax
lsa-arrival-interval maximum-interval [ minimum-interval [ incremental-interval ] ]
undo lsa-arrival-interval
Default
The maximum interval, incremental interval, and minimum interval are 1000 milliseconds, 500 milliseconds, and 500 milliseconds, respectively.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
maximum-interval: Specifies the maximum LSA arrival interval in the range of 0 to 10000 milliseconds.
minimum-interval: Specifies the minimum LSA arrival interval in the range of 0 to 1000 milliseconds. If you do not specify this argument, the minimum LSA arrival interval is 0 milliseconds.
incremental-interval: Specifies the incremental LSA arrival interval in the range of 1 to 5000 milliseconds. If you do not specify this argument, the incremental LSA arrival interval is 0 milliseconds.
Usage guidelines
An LSA is a duplicate of a previous LSA if they have the same LSA type, LS ID, and router ID. OSPFv3 drops any duplicate LSAs within the LSA arrival interval.
· After you configure the lsa-arrival-interval maximum-interval command, the LSA arrival interval is maximum-interval. The device drops duplicate LSAs received within the arrival interval.
· After you configure the lsa-arrival-interval maximum-interval minimum-interval command, the arrival interval for the first LSA is minimum-interval. The arrival interval for consequent LSAs is maximum-interval. The device drops duplicate LSAs received within the receiving interval.
· After you configure the lsa-arrival-interval maximum-interval minimum-interval incremental-interval command, the arrival interval for the first LSA is minimum-interval. The arrival interval for the nth (n ≥ 2) LSA is minimum-interval + incremental-interval × 2n-2, and is not greater than maximum-interval. The device drops duplicate LSAs received within the receiving interval.
On a stable network that requires fast convergence, you can set the LSA arrival interval to 0. In this way, OSPF can learn the changes of the topology or routes immediately.
The minimum interval and the incremental interval cannot be greater than the maximum interval.
Examples
# Set the maximum, minimum, and incremental LSA arrival intervals to 2000 milliseconds, 100 milliseconds, and 300 milliseconds, respectively.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] lsa-arrival-interval 2000 100 300
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 is 64.
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. If the value for this argument is not greater than 64, the number of ECMP routes you can use for load balancing is in the range of 1 to number. If the value for this argument is greater than 64, the number of ECMP routes you can use for load balancing is in the range of 1 to 64.
Examples
# Set the maximum number of ECMP routes to 2.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] maximum load-balancing 2
metric-bandwidth advertisement enable
Use metric-bandwidth advertisement enable to enable OSPFv3 to advertise link bandwidth information.
Use undo metric-bandwidth advertisement enable to disable OSPFv3 from advertising link bandwidth information.
Syntax
metric-bandwidth advertisement enable
undo metric-bandwidth advertisement enable
Default
OSPFv3 does not advertise link bandwidth information.
Views
OSPFv3 view
Predefined user roles
network-admin
Usage guidelines
Perform this task to enable OSPFv3 to advertise link bandwidth information and report the information to the controller through BGP-LS. Then, the controller performs optimal route calculation based on the link bandwidth information.
Examples
# Enable OSPFv3 process 1 to advertise link bandwidth information.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] metric-bandwidth advertisement enable
Related commands
distribute bgp-ls
metric-bandwidth suppression
Use metric-bandwidth suppression to enable OSPFv3 to suppress link bandwidth information advertisement and configure the suppression timer.
Use undo metric-bandwidth suppression to disable OSPFv3 from suppressing link bandwidth information advertisement.
Syntax
metric-bandwidth suppression timer time-value
undo metric-bandwidth suppression
Default
OSPFv3 suppresses link bandwidth information advertisement, and the suppression interval is 120 seconds.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
timer time-value: Specifies the suppression timer in the range of 0 to 600 seconds. The default timer is 120 seconds. To disable OSPFv3 from suppressing link bandwidth information advertisement, set the timer to 0.
Usage guidelines
By suppressing link bandwidth information advertisement, you can prevent device resources from being over consumed due to frequent bandwidth changes.
Link bandwidth advertisement suppression works as follows:
· The interface reports link bandwidth information to OSPFv3 at negotiated intervals.
· OSPFv3 advertises link bandwidth information through BGP-LS at intervals specified by the time-value argument. OSPFv3 does not advertise link bandwidth information until the suppression timer expires.
This command takes effect only after you enable link bandwidth information advertisement by executing the metric-bandwidth advertisement enable command.
As a best practice, the suppression timer you specified should not be less than the Ethernet interface measurement interval. For more information about Ethernet interfaces, see Ethernet interface configuration in Interface Management and Configuration Guide.
Examples
# Enable OSPFv3 process 1 to suppress link bandwidth information advertisement and set the suppression timer to 100 seconds.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] metric-bandwidth suppression timer 100
Related commands
metric-bandwidth advertisement enable
metric-delay advertisement enable
Use metric-delay advertisement enable to enable OSPFv3 to advertise link delay information.
Use undo metric-delay advertisement enable to disable OSPFv3 from advertising link delay information.
Syntax
metric-delay advertisement enable
undo metric-delay advertisement enable
Default
Link delay information advertisement is disabled.
Views
OSPFv3 view
Predefined user roles
network-admin
Usage guidelines
Perform this task to enable OSPFv3 to advertise link delay information and report the information to the controller through BGP-LS. Then, the controller performs optimal route calculation based on the link delay information.
Examples
# Enable OSPFv3 process 1 to advertise link delay information.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] metric-delay advertisement enable
Related commands
distribute bgp-ls
metric-delay suppression
Use metric-delay suppression to enable OSPFv3 to suppress link delay information advertisement and configure the suppression settings.
Use undo metric-delay suppression to disable OSPFv3 from suppressing link delay information advertisement.
Syntax
metric-delay suppression timer time-value percent-threshold percent-value absolute-threshold absolute-value
undo metric-delay suppression
Default
OSPFv3 suppresses link delay information advertisement.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
timer time-value: Specifies the suppression timer in the range of 0 to 600 seconds. The default timer is 120 seconds. To disable OSPFv3 from suppressing link delay information advertisement, set the timer to 0.
percent-value: Specifies the suppression threshold for link delay variation ratio in the range of 0 to 100%. The default threshold is 10%. If this argument is unnecessary, you can set it to 0.
absolute-value: Specifies the suppression threshold for the absolute value of link delay variation in the range of 0 to 10000 microseconds. The default threshold is 1000 microseconds. If this argument is unnecessary, you can set it to 0.
Usage guidelines
By suppressing link delay information advertisement, you can prevent device resources from being over consumed due to frequent link delay changes.
Link delay advertisement suppression works as follows:
· The interface reports link delay information to OSPFv3 at negotiated intervals.
· OSPFv3 advertises link delay information through BGP-LS at intervals specified by the time-value argument. OSPFv3 does not advertise link delay information within the suppression timer except for the following conditions:
¡ The variation ratio between two consecutive minimum delays is larger than or equivalent to the suppression threshold for the delay variation ratio.
¡ The absolute value of the difference between two consecutive minimum delays is larger than or equivalent to the suppression threshold for the absolute value of the delay variation.
This command takes effect only when you execute the metric-delay advertisement enable command.
As a best practice, the suppression timer you specified should not be less than the NQA measurement interval. For more information about NQA, see NQA configuration in Network Management and Monitoring Configuration Guide.
Examples
# Enable OSPFv3 process 1 to suppress link delay information advertisement and configure the suppression settings.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] metric-delay suppression timer 100 percent-threshold 50 absolute-threshold 200
Related commands
metric-delay advertisement enable
metric-type
Use metric-type to configure the metric type of a flexible algorithm.
Use undo metric-type to restore the default.
Syntax
metric-type { delay | te-cost }
undo metric-type
Default
The flexible algorithm uses OSPFv3 link cost for path calculation.
Views
Flexible algorithm view
Predefined user roles
network-admin
Parameters
delay: Configures the metric type as link delay.
te-cost: Configures the metric type as MPLS TE metric.
Usage guidelines
Flexible algorithm supports the following metric types:
· OSPFv3 link cost.
· Link delay.
· MPLS TE metric.
If the flexible algorithm uses link delay metric, make sure OSPFv3 link delay advertisement is enabled on all interfaces that participate in path calculation for that flexible algorithm.
If the flexible algorithm uses MPLS TE metric, make sure the following requirements are met:
· MPLS TE is enabled for each node that participates in path calculation for that flexible algorithm.
· MPLS and MPLS TE are enabled on each interface that participates in path calculation for that flexible algorithm.
· MPLS TE is enabled for the OSPFv3 area.
Examples
# Configure the metric type of flexible algorithm 128 as TE metric.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] flex-algo 128
[Sysname-ospfv3-1-flex-algo-128] metric-type te-cost
Related commands
metric-delay advertisement enable
mpls enable (MPLS Command Reference)
mpls te enable (interface view) (MPLS Command Reference)
mpls te (MPLS Command Reference)
ospfv3 link-delay
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)
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 ] [ lite | 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.
lite: Specifies the lightweight mode. If you do not specify this keyword, the specified process operates in traditional mode.
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.
Enabling multiple OSPFv3 processes on a device might cause memory insufficiency. To resolve this issue, specify the lite keyword when you use this command to create OSPFv3 processes.
Although lightweight processes use less memory resources than traditional processes, device performance might degrade when a large number of neighbors and routes exist. As a best practice, plan the number of lightweight OSPFv3 processes to be enabled on the basis of the device resource condition.
To configure a traditional OSPFv3 process as a lightweight process, perform the following tasks:
1. Use the undo ospfv3 command to disable the process.
2. Use the ospfv3 command with the lite keyword specified to enable the process.
When you use this command to enter the view of an existing lightweight OSPFv3 process, you do not need to specify the lite keyword.
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 affinity flex-algo
Use ospfv3 affinity flex-algo to assign affinity attributes to IS-IS links.
Use undo ospfv3 affinity flex-algo to restore the default.
Syntax
ospfv3 affinity flex-algo { affinity-name }&<1-32> [ instance instance-id ]
undo ospfv3 affinity flex-algo [ instance instance-id ]
Default
An OSPFv3 link has no affinity attributes.
Views
Interface view
Predefined user roles
network-admin
Parameters
affinity-name&<1-32>: Specifies affinity attributes by their names. The affinity name must be a case-sensitive string of 1 to 32 characters. &<1-32> indicates that you can specify a maximum of 32 affinity names. The specified affinity attributes must already exist.
instance instance-id: Specifies an OSPFv3 instance by its ID in the range of 0 to 65535. If you specify no instance, OSPFv3 instance 0 is specified.
Usage guidelines
If you perform this task on an OSPFv3 interface, the links between the interface and its neighbors will carry the affinity attributes that you have specified.
In a flexible algorithm scenario, these links will be filtered for path calculation based on the link constraints in the FAD.
Examples
# Assign affinity attribute red to interface Ten-GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet 3/1/1] ospfv3 affinity flex-algo red
Related commands
affinity-map
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 Ten-GigabitEthernet 3/1/1 to run instance 1 of OSPFv3 process 1 in Area 1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/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 Ten-GigabitEthernet 3/1/1 to use the keychain test for OSPFv3 packet authentication.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 authentication-mode keychain test
ospfv3 bfd adjust-cost
Use ospfv3 bfd adjust-cost to enable OSPFv3 to adjust the interface cost according to the BFD session state.
Use undo ospfv3 bfd adjust-cost to restore the default.
Syntax
ospfv3 bfd adjust-cost { cost-offset | max } [ instance instance-id ]
undo ospfv3 bfd adjust-cost [ instance instance-id ]
Default
OSPFv3 does not adjust the link cost according to the BFD session state.
Views
Interface view
Predefined user roles
network-admin
Parameters
cost-offset: Specifies the value to be added to the interface cost when the BFD session goes down. The value range for this argument is 1 to 65534. When the BFD session goes down, the interface cost is cost-offset plus the original interface cost, and cannot exceed 65535.
max: Sets the interface cost to the maximum value 65535 when the BFD session goes down.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines
After you enable BFD for OSPFv3, the OSPFv3 neighbor relationship goes down when the BFD session is down and comes up when the BFD session is up. When the BFD session state changes frequently, OSPFv3 neighbor relationship flapping will occur and traffic forwarding might be affected.
To resolve this issue, enable OSPFv3 to adjust the interface cost according to the BFD session state.
After you execute this command on an interface, OSPFv3 adjusts the interface cost as follows:
· When the BFD session on the interface goes down, OSPFv3 increases the cost value for the interface.
· When the BFD session on the interface comes up, OSPFv3 restores the cost value for the interface.
Examples
# Enable OSPFv3 to adjust the cost of interface Ten-GigabitEthernet 3/1/1 according to the BFD session state, and set the value to be added to the interface cost to 100.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 bfd enable
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 bfd adjust-cost 100
Related commands
display ospfv3 interface
ospfv3 bfd enable
ospfv3 bfd adjust-cost suppress-flapping
Use ospfv3 bfd adjust-cost suppress-flapping to suppress adjustment of the interface cost according to the BFD session state upon BFD session flapping.
Use undo ospfv3 bfd adjust-cost suppress-flapping to restore the default.
Syntax
ospfv3 bfd adjust-cost suppress-flapping { detect-interval detect-interval | resume-interval resume-interval | threshold threshold } *
undo ospfv3 bfd adjust-cost suppress-flapping [ detect-interval | resume-interval | threshold ] *
Default
OSPFv3 does not suppress adjustment of the interface cost according to the BFD session state upon BFD session flapping.
Views
Interface view
Predefined user roles
network-admin
Parameters
detect-interval detect-interval: Specifies the interval at which OSPFv3 detects BFD session state changes, in the range of 1 to 600 seconds. The default value is 60.
resume-interval resume-interval: Specifies the delay timer before OSPFv3 resumes the original interface cost, in the range of 0 to 600 seconds. The default value is 0.
threshold threshold: Specifies the maximum number of BFD session down events, in the range of 1 to 100. The default value is 1.
Usage guidelines
After you enable OSPFv3 to adjust the interface cost according to the BFD session state, if BFD session flaps frequently, the following conditions might occur:
· The OSPFv3 interface cost changes frequently, resulting in repeated route calculations that greatly consume device resources.
· When the BFD session state changes from down to up, OSPFv3 immediately resumes the original interface cost. If the link becomes unavailable again in a short time, packet loss will occur on this link before route convergence.
You can configure this feature to address the previous issues. When the BFD session state changes, OSPFv3 performs the following operations instead of immediately adjusting the interface cost:
· When the BFD session state changes from up to down, OSPFv3 starts a BFD session state detection timer, and records one BFD session down event. If the number of BFD session down events crosses the threshold within the detection interval, OSPFv3 adjusts the interface cost based on configuration of the ospfv3 bfd adjust-cost command. (The threshold is specified with the threshold keyword. The detection interval is specified with the detect-interval argument.) If this condition is not met, OSPFv3 does not adjust the interface cost.
· After OSPFv3 adjusts the interface cost (based on the configuration of the ospfv3 bfd adjust-cost command), it starts a delay timer when the BFD session state changes from down to up. Before expiration of the delay timer (specified with the resume-interval argument), the following conditions will occur:
¡ If the BFD session remains up, OSPFv3 resumes the original interface cost when the delay timer expires.
¡ If the BFD session state changes from up to down, OSPFv3 deletes the delay timer and does not resume the original interface cost.
Follow these restrictions and guidelines when you configure this command:
· This command takes effect only after you configure the ospfv3 bfd adjust-cost command.
· You can repeat this command to edit the settings for the detect-interval, threshold, resume-interval keywords. Upon modification, the detection timer (detect-interval), delay timer (resume-interval), and threshold counter (threshold) will restart.
Examples
# Suppress adjustment of the cost for interface Ten-GigabitEthernet 3/1/1 according to the BFD session state upon BFD session flapping. Set the BFD session state detection timer to 60 seconds, threshold to 10, and delay timer to 10 seconds.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 bfd adjust-cost suppress-flapping detect-interval 60 threshold 10 resume-interval 10
Related commands
display ospfv3 interface
ospfv3 bfd adjust-cost
ospfv3 bfd enable
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 Ten-GigabitEthernet 3/1/1 in instance 1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/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 Ten-GigabitEthernet 3/1/1 in instance 1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 cost 33 instance 1
ospfv3 cost-fallback
Use ospfv3 cost-fallback to change the link cost of a Layer 3 aggregate interface when its bandwidth falls below the threshold.
Use undo ospfv3 cost-fallback to remove the configuration.
Syntax
ospfv3 cost-fallback cost-value threshold bandwidth-value [ instance instance-id ]
undo ospfv3 cost-fallback [ instance instance-id ]
Default
A Layer 3 aggregate interface uses the original link cost.
Views
Layer 3 aggregate interface view
Layer 3 aggregate subinterface view
Predefined user roles
network-admin
Parameters
cost-value: Specifies a link cost in the range of 1 to 65535. As a best practice, set the link cost to a value higher than the original link cost of the interface.
threshold bandwidth-value: Specifies the bandwidth threshold in the range of 1 to 4294967295 Mbps.
instance instance-id: Specifies the ID of the instance to which the interface belongs, in the range of 0 to 255. The default instance ID is 0.
Usage guidelines
When a member port of a Layer 3 aggregate interface goes down, the bandwidth of the aggregate interface decreases and services might be interrupted. To resolve this issue, execute this command to change the link cost of a Layer 3 aggregate interface as follows:
· When the bandwidth of the Layer 3 aggregate interface falls below the bandwidth threshold, the aggregate interface uses the specified link cost. Then, OSPFv3 can select an optimal path for traffic forwarding.
· When the bandwidth of the Layer 3 aggregate interface is equal to or larger than the bandwidth threshold, the aggregate interface uses the original link cost.
Examples
# Change the link cost of interface Route-Aggregation 1 to 100 when its bandwidth falls below 300 Mbps.
<Sysname> system-view
[Sysname] interface Route-Aggregation 1
[Sysname-Route-Aggregation1] ospfv3 cost-fallback 100 threshold 300
Related commands
display ospfv3 interface
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 Ten-GigabitEthernet 3/1/1 in instance 1 to 8.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/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 Ten-GigabitEthernet 3/1/1 from calculating a backup next hop by using the LFA algorithm.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 fast-reroute lfa-backup exclude
ospfv3 ipsec-profile
Use ospfv3 ipsec-profile to apply an IPsec profile to an OSPFv3 interface.
Use undo ospfv3 ipsec-profile to remove the IPsec profile from the OSPFv3 interface.
Syntax
ospfv3 ipsec-profile profile-name [ instance instance-id ]
undo ospfv3 ipsec-profile [ instance instance-id ]
Default
No IPsec profile is applied to an OSPFv3 interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
profile-name: Specifies an IPsec profile by its name, a case-insensitive 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
An IPsec profile must be specified in this command. For more information about IPsec profiles, see Security Configuration Guide.
Examples
# Apply IPsec profile profile001 to Ten-GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 ipsec-profile profile001
ospfv3 link-delay
Use ospfv3 link-delay to configure link delay settings on an OSPFv3 interface.
Use undo ospfv3 link-delay to remove link delay settings on an OSPFv3 interface.
Syntax
ospfv3 link-delay { average average-delay-value | min min-delay-value max max-delay-value | variation variation-value } * [ instance instance-id ]
undo ospfv3 link-delay { average | min | variation } [ instance instance-id ]
Default
No link delay settings are configured on an OSPFv3 interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
average average-delay-value: Specifies the average link delay on an interface in the range of 1 to 16777215 microseconds. The average-delay-value parameter represents the average link delay for the interface to send a packet to its directly-connected peer. If you do not specify this option, the delay value is the average link delay reported by the interface.
min min-delay-value: Specifies the minimum link delay on an interface in the range of 1 to 16777215 microseconds. The min-delay-value parameter represents the minimum link delay for the interface to send a packet to its directly-connected peer. If you do not specify this option, the delay value is the minimum link delay reported by the interface.
max max-delay-value: Specifies the maximum link delay on an interface in the range of 1 to 16777215 microseconds. The max-delay-value parameter represents the maximum link delay for the interface to send a packet to its directly-connected peer. If you do not specify this option, the delay value is the maximum link delay reported by the interface.
variation variation-value: Sets the acceptable delay variation on an interface in the range of 1 to 16777215 microseconds. The variation-value parameter represents the difference between two consecutive average link delays. If you do not specify this option, the delay variation value is the variation reported by the interface.
instance instance-id: Specifies the instance to which the interface belongs. The value range for the instance-id argument is 0 to 255. The default value is zero.
Usage guidelines
Perform either of the following tasks to obtain link delay information of an interface:
· Static configuration—Execute the isis link-delay command to manually configure link delay parameters on the interface.
· Dynamic acquisition—Execute the test-session bind interface command to bind the interface as the out interface of a TWAMP Light test session. Then, TWAMP Light will send the detected link delay information to the interface, and the interface will report the link delay information to OSPFv3 at periodic intervals. For more information about TWAMP, see NQA TWAMP-light configuration in Network Management and Monitoring Configuration Guide.
For an instance, the isis link-delay command takes precedence over the test-session bind interface command.
The specified minimum link delay must be lower than the maximum link delay.
Examples
# Set the average link delay, minimum link delay, maximum link delay, and acceptable link delay variation to 100, 10, 1000, and 20 microseconds, respectively.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 link-delay average 100 min 10 max 1000 variation 20
Related commands
test-session bind interface (Network Management and Monitoring Command Reference)
ospfv3 link-quality adjust-cost
Use ospfv3 link-quality adjust-cost to enable OSPFv3 to adjust the interface cost according to the link quality.
Use undo ospfv3 link-quality adjust-cost to restore the default.
Syntax
ospfv3 link-quality adjust-cost { max | cost-offset } [ instance instance-id ]
undo ospfv3 link-quality adjust-cost [ instance instance-id ]
Default
OSPFv3 does not adjust the interface cost according to the link quality.
Views
Interface view
Predefined user roles
network-admin
Parameters
cost-offset: Specifies the value to be added to the interface cost when the link quality changes to LOW. The value range for this argument is 1 to 65534. When the link quality changes to LOW, the interface cost is cost-offset plus the original interface cost, and cannot exceed 65535.
max: Sets the interface cost to the maximum value 65535 when the link quality changes to LOW.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default value is 0.
Usage guidelines
Error codes, which refer to bit differences between the received and source signals, cannot be avoided because of inevitable link aging and optical path jitter problems. A high error code ratio might cause service degradation or interruption.
To reduce the impact of error codes on an OSPFv3 network, you can enable OSPFv3 to adjust the interface cost according to the link quality.
After you configure this command on an interface, OSPFv3 adjusts the interface cost as follows:
· When the link quality of the interface becomes LOW, OSPFv3 increases the cost value for the interface.
· When the link quality of the interface restores to GOOD, OSPFv3 restores the cost value for the interface.
For more information about link quality detection, see error code detection configuration in High Availability Configuration Guide.
Examples
# Enable OSPFv3 to adjust the cost of interface Ten-GigabitEthernet 3/1/1 according to the link quality, and set the value to be added to the interface cost to 200.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 link-quality adjust-cost 200
ospfv3 link-tag
Use ospfv3 link-tag to set an OSPFv3 link tag for an interface.
Use undo ospfv3 link-tag to restore the default.
Syntax
ospfv3 link-tag tag [ instance instance-id ]
undo ospfv3 link-tag [ instance instance-id ]
Default
No OSPFv3 link tag is configured for an interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
tag: Specifies an OSPFv3 link tag in the range of 1 to 4294967295.
instance instance-id: Specifies the instance to which the interface belongs. The value range and default value for the instance-id argument is 0 to 255 and 0, respectively.
Usage guidelines
Execute this command together with the link-tag inherit enable command to filter routes based on OSPFv3 link tags.
If you execute this command multiple times on an interface, the most recent configuration takes effect.
Examples
# Set the OSPFv3 link tag for interface Ten-GigabitEthernet 3/1/1 to 222333.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 link-tag 222333
Related commands
link-tag inherit enable
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 Ten-GigabitEthernet 3/1/1 that belongs to instance 1 to ignore MTU check during DD packet exchange.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/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 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.
If any two routers on an NBMA network are directly connected through a virtual link, the network is fully meshed. You can configure the network type for the connected interfaces as NBMA. If two routers are not directly connected, configure the P2MP network type so that the two routers can exchange routing information through another router.
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 Ten-GigabitEthernet 3/1/1 as NBMA.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/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 Ten-GigabitEthernet 3/1/1, specify the link-local address of its neighbor as FE80::1111.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 peer fe80::1111
ospfv3 peer hold-max-cost duration
Use ospfv3 peer hold-max-cost duration to enable OSPFv3 to advertise the maximum link cost to neighbors within the specified period of time.
Use undo ospfv3 peer hold-max-cost duration to restore the default.
Syntax
ospfv3 peer hold-max-cost duration timer [ instance instance-id ]
undo ospfv3 peer hold-max-cost duration [ instance instance-id ]
Default
OSPFv3 advertises the original link cost to neighbors during a route convergence.
Views
Interface view
Predefined user roles
network-admin
Parameters
timer: Specifies the time period during which OSPFv3 advertises the maximum link cost to neighbors, in the range of 100 to 1000000 milliseconds.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default value is 0.
Usage guidelines
On an OSPFv3 network, when a link recovers from failures or the state of an interface changes, OSPFv3 will re-establish neighbor relationships and perform route convergence. During the route convergence process, routing loops and traffic loss might occur because the convergence speeds of the nodes are different. To address this issue, enable OSPFv3 to advertise the maximum link cost (65535) to neighbors within the specified period of time, so the traffic forwarding path remains unchanged. After the specified period of time, OSPFv3 advertises the original link cost to neighbors and performs optimal route selection again.
The timer specified by the timer argument starts when the OSPFv3 neighbor enters Full state.
Examples
# On interface Ten-GigabitEthernet3/1/1, enable OSPFv3 to advertise the maximum link cost to neighbors within 1000 milliseconds.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 peer hold-max-cost duration 1000
Related commands
display ospfv3 interface verbose
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 Ten-GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/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 Ten-GigabitEthernet 3/1/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 ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 primary-path-detect bfd echo
ospfv3 silent
Use ospfv3 silent to disable the interface from receiving and sending OSPFv3 packets.
Use undo ospfv3 silent to restore the default.
Syntax
ospfv3 silent [ instance instance-id ]
undo ospfv3 silent [ instance instance-id ]
Default
The interface can receive and send OSPFv3 packets.
Views
Interface view
Predefined user roles
network-admin
Parameters
instance instance-id: Specifies an instance ID in the range of 0 to 255. The default is 0.
Usage guidelines
Use this command to achieve the following purposes:
· Disable the local device from receiving route updates advertised by other devices in the network through the interface.
· Disable the local device from advertising route updates to other devices in the network through the interface.
After you configure this command, the OSPFv3 interface performs the following operations:
· Sends a one-way hello packet to its neighbor. The neighbor terminates the neighbor relationship with the sending interface upon receiving the one-way hello packet.
· No longer establishes neighbor relationship.
You can execute either the silent-interface or ospfv3 silent command or both commands for an interface to achieve the same effect. Choose an appropriate configuration method as needed.
Examples
# Disable Ten-GigabitEthernet 3/1/1 from receiving and sending OSPFv3 packets.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 silent
Related commands
silent-interface
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 Ten-GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/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 Ten-GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/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 Ten-GigabitEthernet 3/1/1 to 120 seconds.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/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 Ten-GigabitEthernet 3/1/1 in instance 1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 timer retransmit 12 instance 1
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 Ten-GigabitEthernet 3/1/1 in instance 1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 trans-delay 3 instance 1
ospfv3 virtual-system
Use ospfv3 virtual-system to enable the virtual system feature on an OSPFv3 interface.
Use undo ospfv3 virtual-system to disable the virtual system feature on an OSPFv3 interface.
Syntax
ospfv3 virtual-system router-id router-id [ instance instance-id ]
undo ospfv3 virtual-system [ instance instance-id ]
Default
The virtual system feature 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 65535. If you do not specify an instance, instance 0 is specified.
Usage guidelines
After you enable the virtual system feature on an OSPFv3 interface, the interface can use a virtual OSPFv3 node for neighbor relationship establishment. To enable this feature on an OSPFv3 interface, perform the following tasks:
1. Use the virtual-system enable command to enable the virtual system feature globally in the OSPFv3 process to which the OSPFv3 interface belongs.
2. Use the ospfv3 virtual-system command to enable the virtual system feature on the OSPFv3 interface.
When you configure the virtual node of an OSPFv3 interface, follow these guidelines:
· The router ID of the virtual node must be different from that of any other virtual node.
· The router ID of the virtual node must be different from that of the OSPFv3 process to which the OSPFv3 interface belongs.
Examples
# Enable the virtual system feature on Ten-GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] ospfv3
[Sysname-ospfv3-1] virtual-system enable
[Sysname-ospfv3-1] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] ospfv3 virtual-system router-id 1.1.1.1
Related commands
virtual-system enable
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 disabled.
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
priority
Use priority to set the priority of a flexible algorithm.
Use undo priority to restore the default.
Syntax
priority priority-value
undo priority
Default
The priority of a flexible algorithm is 128.
Views
Flexible algorithm view
Predefined user roles
network-admin
Parameters
priority-value: Specifies a priority value in the range of 0 to 255. A higher value indicates a higher priority.
Usage guidelines
All nodes that participate in the path calculation for a flexible algorithm can have a different FAD. To avoid routing loops in an FAD advertisement scope (OSPFv3 area), these nodes must use the same FAD. By convention, a node selects an FAD as follows:
· The FAD with the highest priority will be selected from the FADs advertised within the OSPFv3 routing domain. If the node does not advertise an FAD, it selects the FAD with the highest priority from the received FADs.
· The FAD with the greatest router ID will be selected from the FADs that have the highest priority.
Examples
# Set the priority value to 200 for flexible algorithm 128.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] flex-algo 128
[Sysname-ospfv3-1-flex-algo-128] priority 200
Related commands
advertise-definition
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
Use this command to achieve the following purposes:
· Disable the local device from receiving route updates advertised by other devices in the network through the interface.
· Disable the local device from advertising route updates to other devices in the network through the interface.
After you configure this command, the OSPFv3 interface performs the following operations:
· Sends a one-way hello packet to its neighbor. The neighbor terminates the neighbor relationship with the sending interface upon receiving the one-way hello packet.
· No longer establishes neighbor relationship.
You can execute either the silent-interface or ospfv3 silent command or both commands for an interface to achieve the same effect. Choose an appropriate configuration method as needed.
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 Ten-GigabitEthernet 3/1/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 ten-gigabitethernet 3/1/1
[Sysname-ospfv3-100] quit
[Sysname] ospfv3 200
[Sysname-ospfv3-200] router-id 20.100.1.9
[Sysname-ospfv3-200] silent-interface ten-gigabitethernet 3/1/1
ospfv3 silent
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 [ grhelper-status-change | grrestarter-status-change | if-bad-pkt | if-cfg-error | if-state-change | last-auth-key-expiry | neighbor-state-change | nssatranslator-status-change | virtgrhelper-status-change | virtif-bad-pkt | virtif-cfg-error | virtif-state-change | virtneighbor-state-change ] *
undo snmp-agent trap enable ospfv3 [ grhelper-status-change | grrestarter-status-change | if-bad-pkt | if-cfg-error | if-state-change | last-auth-key-expiry | neighbor-state-change | nssatranslator-status-change | virtgrhelper-status-change | virtif-bad-pkt | virtif-cfg-error | virtif-state-change | virtneighbor-state-change ] *
Default
SNMP notifications for OSPFv3 are enabled.
Views
System view
Predefined user roles
network-admin
Parameters
grhelper-status-change: Specifies notifications about GR helper state changes.
grrestarter-status-change: Specifies notifications about GR restarter state changes.
if-bad-pkt: Specifies notifications about error messages received on an interface.
if-cfg-error: Specifies notifications about error configuration of an interface.
if-state-change: Specifies notifications about interface state changes.
last-auth-key-expiry: Generates notifications when the last active send key in the keychain used by OSPFv3 expires.
neighbor-state-change: Specifies notifications about neighbor state changes.
nssatranslator-status-change: Specifies notifications about NSSA translator state changes.
virtgrhelper-status-change: Specifies notifications about neighbor GR helper state changes of a virtual interface.
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.
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: Keeps the maximum interval when route flapping occurs. If you do not specify this keyword, the OSPFv3 SPF calculation is performed at the maximum interval for three consecutive times and then performed at the minimum interval.
millisecond interval: Specifies a fixed OSPFv3 SPF calculation interval in the range of 0 to 10000 milliseconds.
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.
The SPF calculation interval workflow is as follows:
· If no route calculation is triggered within the incremental interval, the minimum interval is used.
· If route calculation is triggered within the incremental interval, 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 consecutive route calculations.
After the maximum interval is reached, SPF calculation is performed at the maximum interval for three consecutive times and then performed at the minimum interval. Then, the SPF calculation interval workflow starts again.
If you execute the spf-schedule-interval maximum-interval minimum-interval incremental-interval conservative command, SPF calculation is always performed at the maximum interval.
In scenarios that require a high route convergence speed, you can execute the spf-schedule-interval millisecond interval command to increase the SPF calculation frequency to accelerate route convergence.
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
suppress intra-te link-attributes
Use suppress intra-te link-attributes to suppress advertisement of link attributes in Intra-Area-TE LSAs.
Use undo suppress intra-telink-attributes to disable suppressing advertisement of TE attributes in Intra-Area-TE LSAs.
Syntax
suppress intra-te link-attributes
undo suppress intra-te link-attributes
Default
OSPFv3 does not suppress advertisement of link attributes in Intra-Area-TE LSAs.
Views
OSPFv3 view
Predefined user roles
network-admin
Usage guidelines
After you apply a flexible algorithm that uses link delay or MPLS TE metric for path calculation to OSPFv3 SRv6, OSPFv3 generates E-Router LSAs and Intra-Area-TE LSAs:
· The E-Router LSA uses ASLA sub-TLVs to carry link attribute information. Only flexible algorithms can use the link attribute information for path calculation.
· The Intra-Area-TE LSA uses Link-TLVs to carry link attribute information. Only MPLS TE can use the link attribute information for path calculation.
In a network where only the flexible algorithm is used for path calculation, you can use this command to reduce the LSDB size.
Examples
# Suppress OSPFv3 process 1 from advertising link attributes in Intra-Area-TE LSAs.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] suppress intra-te link-attributes
te-router-id
Use te-router-id to configure an IPv6 router ID for an OSPFv3 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 an OSPFv3 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
virtual-system enable
Use virtual-system enable to enable the virtual system feature globally.
Use undo virtual-system enable to disable the virtual system feature globally.
Syntax
virtual-system enable
undo virtual-system enable
Default
The virtual system feature is disabled.
Views
OSPFv3 view
Predefined user roles
network-admin
Usage guidelines
Examples
# Enable the virtual system feature globally.
<Sysname> system-view
[Sysname] ospfv3
[Sysname-opsfv3-1] virtual-system enable
Related commands
ospfv3 virtual-system
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 | ipsec-profile profile-name | [ { 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 | ipsec-profile | { hmac-sha-256 | hmac-sm3 | 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.
ipsec-profile profile-name: Specifies an IPsec profile by its name, a case-insensitive string of 1 to 63 characters. For more information about IPsec profiles, see Security Configuration Guide.
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 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 authentication algorithm.
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