- Table of Contents
-
- 06-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-BGP commands
- 07-Policy-based routing commands
- 08-IPv6 static routing commands
- 09-RIPng commands
- 10-OSPFv3 commands
- 11-IPv6 IS-IS commands
- 12-IPv6 policy-based routing commands
- 13-Routing policy commands
- 14-DCN commands
- Related Documents
-
Title | Size | Download |
---|---|---|
10-OSPFv3 commands | 345.97 KB |
abr-summary (OSPFv3 area view)
bandwidth-reference (OSPFv3 view)
default-cost (OSPFv3 area view)
default-route-advertise (OSPFv3 view)
display ospfv3 graceful-restart
display ospfv3 non-stop-routing
filter-policy export (OSPFv3 view)
filter-policy import (OSPFv3 view)
graceful-restart helper enable
graceful-restart helper strict-lsa-checking
maximum load-balancing (OSPFv3 view)
ospfv3 fast-reroute lfa-backup exclude
ospfv3 primary-path-detect bfd
OSPFv3 commands
abr-summary (OSPFv3 area view)
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
mdc-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 0 to 128. This argument specifies the number of consecutive 1s of the prefix, which defines the network ID.
not-advertise: Specifies not to advertise the summary IPv6 route. If you do not specify this keyword, the command advertises the IPv6 summary route.
cost cost-value: Specifies the cost of the summary route, in the range of 1 to 16777215. The default cost is the largest cost value among routes that are summarized.
Usage guidelines
This command applies only to an ABR to summarize multiple contiguous networks into one network.
To enable ABR to advertise specific routes that have been summarized, use the undo abr-summary command.
Examples
# Summarize networks 2000:1:1:1::/64 and 2000:1:1:2::/64 in Area 1 into 2000:1:1::/48.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] area 1
[Sysname-ospfv3-1-area-0.0.0.1] abr-summary 2000:1:1:: 48
area
Use area to create an OSPFv3 area and enter OSPFv3 area view.
Use undo area to remove an OSPFv3 area.
Syntax
area area-id
undo area area-id
Default
No OSPFv3 areas exist.
Views
OSPFv3 view
Predefined user roles
network-admin
mdc-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 (OSPFv3 view)
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
mdc-admin
Parameters
ipv6-address: Specifies the destination IPv6 address of the summary route.
prefix-length: Specifies the prefix length in the range of 0 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
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
mdc-admin
Parameters
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
The authentication mode specified for an OSPFv3 interface has a higher priority than the mode specified for an OSPFv3 area.
When keychain authentication is configured for an OSPFv3 area, OSPFv3 performs the following operations before sending a packet:
1. Obtains a valid send key from the keychain.
OSPFv3 does not send the packet if it fails to obtain a valid send key.
2. Uses the key ID, authentication algorithm, and key string to authenticate the packet.
If the key ID is greater than 65535, OSPFv3 does not send the packet.
When keychain authentication is configured for an OSPFv3 area, OSPFv3 performs the following operations after receiving a packet:
3. 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.
4. 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 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 (OSPFv3 view)
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
mdc-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
mdc-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-tagcommand, 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 (OSPFv3 view)
import-route
route-tag (MPLS Command Reference)
default-cost (OSPFv3 area view)
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
mdc-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 (OSPFv3 area view)
stub (OSPFv3 area view)
default-route-advertise (OSPFv3 view)
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
mdc-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 (OSPFv3 view)
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
mdc-admin
mdc-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
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
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
SPF-schedule-interval: 5 50 200
LSA generation interval: 5
LSA arrival interval: 1000
Transmit pacing: Interval: 20 Count: 3
Default ASE parameters: Tag: 1
Route preference: 10
ASE route preference: 150
FRR backup mode: LFA
SPF calculation count: 0
External LSA count: 0
LSA originated count: 0
LSA received count: 0
Area count: 2 Stub area count: 0 NSSA area count: 1
ExChange/Loading neighbors: 0
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
Area: 0.0.0.0
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
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
Area flag: NSSA
7/5 translator state: Disabled
7/5 translate stability timer interval: 0
SPF Scheduled Count: 0
ExChange/Loading neighbors: 0
LSA Count: 0
Up interfaces: 0
MTU: 1440
Default cost: 1
Process reset flag: N/A
Current reset type: N/A
Reset prepare message replied: -/-/-/-
Reset process message replied: -/-/-/-
Reset phase of module:
M-N/A, P-N/A, S-N/A, C-N/A, R-N/A
Table 1 Command output
Field |
Description |
OSPFv3 Process 1 with Router ID 1.1.1.1 |
OSPFv3 process is 1, and router ID is 1.1.1.1. |
Router type |
Router type: · ABR. · ASBR. · NSSA. · Null. |
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. |
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. |
SPF-schedule-interval |
Interval for SPF calculations. |
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. |
LSA originated count |
Number of originated LSAs. |
LSA received count |
Number of received LSAs. |
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. |
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. |
IPsec profile name |
IPsec profile applied to the interface. |
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
mdc-admin
mdc-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 : Vlan102 BkInterface: Vlan101
NextHop : FE80:1:1::1
BkNexthop : FE80:1:2::2
Cost : 1
Destination : 1.1.1.3 Rtr Type : ASBR
Area : 0.0.0.0 Path Type: Intra
Interface : Vlan103 BkInterface: Vlan104
BkNexthop : FE80:1:2::4
NextHop : FE80:2:1::1
Cost : 1
Table 2 Command output
Field |
Description |
OSPFv3 Process 1 with Router ID 1.1.1.1 |
OSPFv3 process is 1, and router ID is 1.1.1.1. |
Destination |
Router ID of an ABR or ASBR. |
Rtr Type |
Router type: ABR or ASBR. |
Area |
Area ID of the next hop. |
Path Type |
Type of the route to the ABR or ASBR: · Intra—Intra-area route. · Inter—Inter-area route. |
Interface |
Output interface. |
BkInterface |
Backup output interface. |
NextHop |
Next hop address. |
BkNexthop |
Backup next hop address. |
Cost |
Cost from the router to the ABR or ASBR. |
display ospfv3 abr-summary
Use display ospfv3 abr-summary to display ABR summary route information.
Syntax
display ospfv3 [ process-id ] [ area area-id ] abr-summary [ ipv6-address prefix-length ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-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 0 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
mdc-admin
mdc-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 0 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
mdc-admin
mdc-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. |
Seg# |
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
2014-09-02 07:55:30 0.258827 0 0 0 Intra-area LSA
2014-09-02 07:55:30 0.679 0 0 0 Intra-area LSA
2014-09-02 07:55:30 0.51576 0 0 0 Intra-area LSA
2014-09-02 07:55:30 0.372 0 0 0 Intra-area LSA
2014-09-02 07:55:25 4.948353 0 0 0 Intra-area LSA
2014-09-02 07:55:25 0.5288 0 0 0 Area 0 full neighbor
2014-09-02 07:55:21 1.66013 0 0 0 Intra-area LSA
2014-09-02 07:55:20 0.450905 0 0 0 Intra-area LSA
2014-09-02 07:55:15 0.253688 0 0 0 Interface state change
2014-09-02 07:55:15 0.5693 0 0 0 Intra-area LSA
Table 8 Command output
Field |
Description |
Date/Time |
Time when the route calculation starts. |
Duration |
Duration of the route calculation, in seconds. |
Intra |
Number of intra-area routes newly installed in the 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. · 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 Instance ID Interface
2014-09-02 16:39:13 1.3.3.3 IntPhyChange 0 Vlan101
2014-09-02 16:36:46 1.3.3.3 IntPhyChange 0 Vlan101
2014-09-02 16:34:49 1.3.3.3 BFDDown 0 Vlan101
2014-09-02 10:08:45 1.3.3.3 DeadExpired 0 Vlan102
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 Vlan101
Table 9 Command output
Field |
Description |
Date &Time |
Time when the neighbor state changes. |
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. |
Instance ID |
Instance ID for an interface. |
Interface |
Interface name. |
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
mdc-admin
mdc-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 un-planned, Partial
Helper capability : Enable
Helper support : Planned and un-planned
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 10 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 un-planned—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 (displayed only when GR helper is enabled): · Strict LSA check—The GR helper supports strict LSA checking. · Planned and un-planned—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 un-planned, Partial
Helper capability : Enable
Helper support : Planned and un-planned
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 (Vlan-interface200), 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 (Vlan-interface3), 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 (Vlan-interface200), 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 11 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
mdc-admin
mdc-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 VLAN-interface 1.
<Sysname> display ospfv3 interface vlan-interface 1
OSPFv3 Process 1 with Router ID 1.1.1.1
Area: 0.0.0.0
-------------------------------------------------------------------------
Vlan-interface1 is up, line protocol is up
Interface ID 65697 Instance ID 0
IPv6 prefixes
fe80::200:12ff:fe34:1 (Link-Local address)
2001::1
Cost: 1 State: BDR Type: Broadcast MTU: 1500
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
Neighbor count is 1, Adjacent neighbor count is 1
Primary path detection mode: BFD echo
IPsec profile name: profile001
Keychain authentication: Enabled (test), inherited
Exchanging/Loading neighbors: 0
Wait timer: Off, LsAck timer: Off
Prefix-suppression is enabled
Table 12 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 interval of HelloInterval, and try to establish an adjacency with the neighbor. · DR—The router is the designated router on the network. · BDR—The router is the backup designated router on the network. · DROther—The router is a DR Other router on the attached network. |
Type |
Network type of the interface: PTP (P2P), PTMP (P2MP), Broadcast, or NBMA. |
MTU |
MTU value of the interface. |
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. |
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 |
IPsec profile applied to the interface. |
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. |
display ospfv3 lsdb
Use display ospfv3 lsdb to display OSPFv3 LSDB information.
Syntax
display ospfv3 [ process-id ] lsdb [ { external | grace | inter-prefix | inter-router | intra-prefix | link | network | nssa | router | unknown [ type ] } [ link-state-id ] [ originate-router router-id | self-originate ] | statistics | total | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-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.
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).
link: Displays Link-LSAs (Type-8 LSAs).
network: Displays Network-LSAs (Type-2 LSAs).
nssa: Displays NSSA LSAs (Type-7 LSAs).
router: Displays Router-LSAs (Type-1 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 Vlan-interface100)
-------------------------------------------------------------------------
Link State ID Origin Router Age SeqNum CkSum 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 SeqNum CkSum 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 SeqNum CkSum
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 SeqNum CkSum 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
Table 13 Command output
Field |
Description |
Origin Router |
Originating router. |
Age |
Age of LSAs. |
SeqNum |
LSA sequence number. |
CkSum |
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 Vlan-interface100)
-------------------------------------------------------------------------
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|-|-|E|V6)
Link-Local Address: fe80::200:5eff:fe00:100
Number of Prefixes: 1
Prefix : 1001::/64
Prefix Options: 0 (-|-|-|-)
Table 14 Command output
Field |
Description |
LS age |
Age of LSA. |
LS Type |
Type of LSA. |
Link State ID |
Link state ID. |
Originating Router |
Originating router. |
LS Seq Number |
LSA sequence number. |
Checksum |
LSA checksum. |
Length |
LSA length. |
Priority |
Router priority. |
Options |
Options. |
Link-Local Address |
Link-local address. |
Number of Prefixes |
Number of prefixes. |
Prefix |
Address prefix. |
Prefix Options |
Prefix options. |
# Display 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
0.0.0.1 2 0 0 0 2 0
0.0.0.3 1 0 0 0 1 1
Total 2 0 0 0 3 1
-------------------------------------------------------------------------
Link Grace ASE
Total 4 0 0
Table 15 Command output
Field |
Description |
Area ID |
Area ID. |
Router |
Number of Type-1 LSAs. |
Network |
Number of Type-2 LSAs. |
IntePre |
Number of Type-3 LSAs. |
InteRou |
Number of Type-4 LSAs. |
IntraPre |
Number of Type-9 LSAs. |
NSSA |
Number of Type-7 LSAs. |
Link |
Total number of Type-8 LSAs. |
Grace |
Number of Type-11 LSAs. |
ASE |
Total number of Type-5 LSAs. |
# Display detailed OSPFv3 LSDB information.
<Sysname> display ospfv3 lsdb verbose
OSPFv3 Process 1 with Router ID 1.1.1.1
Link-LSA (Interface Vlan-interface100)
-------------------------------------------------------------------------
Link State ID Origin Router Age SeqNum CkSum 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 SeqNum CkSum 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 SeqNum CkSum
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 SeqNum CkSum 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
Table 16 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
mdc-admin
mdc-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: Vlan102
RefCount: 4 Status : Valid
NbrID : 1.1.1.1 NbrIntID : 21
Nexthop : FE80::20C:29FF:FED7:F312 Interface: Vlan103
RefCount: 3 Status : Valid
NbrID : 1.1.1.1 NbrIntID : 38
Table 17 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
mdc-admin
mdc-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 18 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
mdc-admin
mdc-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 vlan-interface 1
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 Init/ - 00:00:36 0 Vlan1
Table 19 Command output
Field |
Description |
Router ID |
Neighbor router ID. |
Pri |
Neighboring router priority. |
State |
Neighbor state. |
Dead-Time |
Dead time remained. |
Inst ID |
Instance ID. |
Interface |
Interface connected to the neighbor. |
# Display detailed neighbor information for OSPFv3 process 1.
<Sysname> display ospfv3 1 peer vlan-interface 1 verbose
OSPFv3 Process 1 with Router ID 1.1.1.1
Area 0.0.0.1 interface Vlan1's neighbors
Router ID: 2.2.2.2 Address: fe80::200:5eff:fe00:100
State: ExStart Mode: None 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:33
Neighbor is up for 00:24:19
Authentication sequence: (high) 0, (low) 59755
Neighbor state change count: 205
Database Summary List 0
Link State Request List 0
Link State Retransmission List 0
Neighbor interface ID: 8037
GR state: Normal
Grace period: 0 Grace period timer: Off
DD Rxmt Timer: Off LS Rxmt Timer: On
Table 20 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 33 sec |
This dead timer will expire in 33 seconds. |
Neighbor is up for 00:24:19 |
The neighbor has been up for 00:24:19. |
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. |
# 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
Table 21 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. |
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
mdc-admin
mdc-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 Vlan-interface100
-------------------------------------------------------------------------
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 22 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
mdc-admin
mdc-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 Vlan-interface100
-------------------------------------------------------------------------
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 23 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
mdc-admin
mdc-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: 3::3/128
Type : I Area : 0.0.0.1
AdvRouter : 1.1.1.1 Preference : 0
NibID : 0x130000001 Cost : 10
Interface : Vlan101 BkInterface: Vlan102
Nexthop : FE80::20C:29FF:FED4:7171
BkNexthop : FE80:1:1:1
*Destination: 3::4/128
Type : I Area : 0.0.0.1
AdvRouter : 1.1.1.1 Preference : 0
NibID : 0x130000001 Cost : 10
Interface : Vlan101 BkInterface: Vlan102
Nexthop : FE80::10C:29AF:FE97:1210
BkNexthop : FE80:1:1:1
*Destination: 3::5/128
Type : I Area : 0.0.0.1
AdvRouter : 1.1.1.1 Preference : 0
NibID : 0x130000001 Cost : 10
Interface : Vlan101 BkInterface: Vlan102
Nexthop : FE80::10BC:28AF:FE97:1008
BkNexthop : FE80:1:1:1
Total: 3
Intra area: 3 Inter area: 0 ASE: 0 NSSA: 0
Table 24 Command output
Field |
Description |
Destination |
Destination network segment. |
Type |
Route type. |
Area |
Area ID. |
AdvRouter |
Advertising router. |
Preference |
OSPFv3 route preference. |
NibID |
Next hop ID. |
Cost |
Route cost value. |
Interface |
Output interface. |
BkInterface |
Backup output interface. |
Nexthop |
Primary next hop IP address. |
BkNexthop |
Backup next hop IP address. |
Nexthop |
Next hop address. |
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. |
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
mdc-admin
mdc-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
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
Table 25 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. |
SPFLink |
SPF link, representing the advertising router ID. Link type: · RT2RT—Router to router. · NET2RT—Network to router. · RT2NET—Router to network. Link flag: · I—The link is in initialization state. · P—The peer is the parent node. · C—The peer is the child node. · D—The link is to be deleted. · H—The next hop is changed. · V—When the peer node is deleted or added, the peer node is not on the SPF tree or is deleted. · N—The link is newly added, and both end nodes are on the SPF tree. · L—The link is on the area change list. |
# Display detailed topology 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
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 : Vlan102 NhFlag : Valid
BkInterface: Vlan103 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
Table 26 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. |
Nexthop count |
Number of next hops. |
NbrID |
Neighbor router ID. |
NbrIntID |
Neighbor interface ID. |
Interface |
Output interface. |
NhFlag |
Next hop flag: valid or invalid. |
BkInterface |
Backup output interface. |
RefCount |
Reference count (routes that use the backup next hop). |
Nexthop |
Next hop. |
BkNexthop |
Backup next hop. |
SPFLink count |
Number of SPF links. |
IntID |
Interface ID. |
LinkType |
Link type: · RT2RT—Router to router. · NET2RT—Network to router. · RT2NET—Router to network. |
LinkCost |
Link cost. |
LinkNewCost |
New link cost. |
LinkFlag |
Link flag: · I—The link is in initialization state. · P—The peer is the parent node. · C—The peer is the child node. · D—The link is to be deleted. · H—The next hop is changed. · V—When the peer node is deleted or added, the peer node is not on the SPF tree or is deleted. · N—The link is newly added, and both end nodes are on the SPF tree. · L—The link is on the area change list. |
NexthopCnt |
Number of next hops. |
ParentLinkCnt |
Number of parent links. |
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
mdc-admin
mdc-operator
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays OSPFv3 statistics for all processes.
error: Displays error statistics. If you do not specify this keyword, the command displays OSPFv3 packet, LSA, and route statistics.
packet: Displays packet statistics.
interface-type interface-number: Specifies an interface by its type and number. If you do not specify this argument, the command displays statistics for all interfaces.
Examples
# Display OSPFv3 statistics.
<Sysname> display ospfv3 statistics
OSPFv3 Process 1 with Router ID 1.1.1.1
Packet Statistics
----------------------------------------------------------
Type Recv Send
Hello 1746 1284
DB Description 505 941
Ls Req 252 136
Ls Upd 851 1553
Ls Ack 416 450
Local Originated LSAs Statistics
----------------------------------------------------------
Type Count
Router-LSA 192
Network-LSA 0
Inter-Area-Prefix-LSA 0
Inter-Area-Router-LSA 0
AS-external-LSA 0
NSSA-LSA 0
Link-LSA 10
Intra-Area-Prefix-LSA 112
Grace-LSA 0
Unknown-LSA 0
Total 314
Routes Statistics
----------------------------------------------------------
Type Count
Intra Area 0
Inter Area 0
ASE 0
NSSA 0
Table 27 Command output
Field |
Description |
Packet Statistics |
Statistics about inbound and outbound packets. |
Hello |
Hello packet. |
DB Description |
DB description packet. |
Ls Req |
Link state request packet. |
Ls Upd |
Link state update packet. |
Ls Ack |
Link state acknowledgment packet. |
Local Originated LSAs Statistics |
Statistics about generated LSAs. |
Router-LSA |
Number of Type-1 LSAs. |
Network-LSA |
Number of Type-2 LSAs. |
Inter-Area-Prefix-LSA |
Number of Type-3 LSAs. |
Inter-Area-Router-LSA |
Number of Type-4 LSAs. |
AS-external-LSA |
Number of Type-5 LSAs. |
NSSA-LSA |
Number of Type-7 LSAs. |
Link-LSA |
Number of Type-8 LSAs. |
Intra-Area-Prefix-LSA |
Number of Type-9 LSAs. |
Grace-LSA |
Number of Type-11 LSAs. |
Unknown-LSA |
Number of Unknown-LSAs. |
Total |
Total number. |
Routes Statistics |
Number of routes. |
Intra Area |
Intra-area routes. |
Inter Area |
Inter-area routes. |
ASE |
Type-5 external routes. |
NSSA |
Type-7 external routes. |
# Display OSPFv3 error statistics.
<Sysname> display ospfv3 statistics error
OSPFv3 Process 1 with Router ID 1.1.1.1
0 : Transmit error 0 : Neighbor state low
0 : Packet too small 0 : Bad version
0 : Bad checksum 0 : Unknown neighbor
0 : Bad area ID 0 : Bad packet
0 : Packet dest error 0 : Inactive area packet
0 : Router ID confusion 0 : Bad virtual link
0 : HELLO: Hello-time mismatch 0 : HELLO: Dead-time mismatch
0 : HELLO: Ebit option mismatch 0 : DD: Ebit option mismatch
0 : DD: Unknown LSA type 0 : DD: MTU option mismatch
0 : REQ: Empty request 0 : REQ: Bad request
0 : UPD: LSA checksum bad 0 : UPD: Unknown LSA type
0 : UPD: Less recent LSA 0 : UPD: LSA length bad
0 : UPD: LSA AdvRtr id bad 0 : ACK: Bad ack packet
0 : ACK: Invalid ack 0 : Interface down
0 : Multicast incapable 0 : Authentication failure
0 : AuthSeqNumber error
Table 28 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: Vlan-interface101
DD LSR LSU ACK Total
Input : 16 0 45 7 68
Output: 17 1 7 44 69
Interface: Vlan-interface102
DD LSR LSU ACK Total
Input : 41 13 720 719 1493
Output: 54 41 750 713 1558
Table 29 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
mdc-admin
mdc-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 (Vlan-interface12), 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
Keychain authentication: Enabled (test), inherited
Table 30 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 |
IPsec profile applied to the virtual link. |
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. |
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
mdc-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 maximum 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 maximum number of LSA aging logs, neighbor logs, or route calculation logs is 10.
Views
OSPFv3 view
Predefined user roles
network-admin
mdc-admin
Parameters
lsa-flush: Specifies the maximum number of LSA aging logs.
peer: Specifies the maximum number of neighbor logs.
spf: Specifies the maximum number of route calculation logs.
size count: Specifies the maximum number of OSPFv3 logs, in the range of 0 to 65535.
Examples
# Set the maximum 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 (OSPFv3 view)
Use fast-reroute to configure OSPFv3 FRR.
Use undo fast-reroute to restore the default.
Syntax
fast-reroute { lfa [ abr-only ] | route-policy route-policy-name }
undo fast-reroute
Default
OSPFv3 FRR is disabled.
Views
OSPFv3 view
Predefined user roles
network-admin
mdc-admin
Parameters
lfa: Uses the LFA algorithm to calculate a backup next hop for all routes.
abr-only: Uses the next hop of the route to the ABR as the backup next hop.
route-policy route-policy-name: Uses a routing policy to designate a backup next hop. The route-policy-name argument is a case-sensitive string of 1 to 63 characters.
Usage guidelines
Do not use the fast-reroute lfa command together with the vlink-peer command.
Examples
# Enable FRR to calculate a backup next hop for all routes by using LFA algorithm in OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] fast-reroute lfa
filter (OSPFv3 area view)
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
mdc-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.
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 (OSPFv3 view)
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 [ protocol [ process-id ] ]
undo filter-policy export [ protocol [ process-id ] ]
Default
Redistributed routes are not filtered.
Views
OSPFv3 view
Predefined user roles
network-admin
mdc-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.
protocol: Filters routes redistributed from the specified routing protocol. If you do not specify this argument, the command filters all redistributed routes.
process-id: Specifies a process by its ID in the range of 1 to 65535. This argument is available only when the protocol argument is ripng, ospfv3, or isisv6.
Usage guidelines
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/permit a route with the specified destination, use rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix.
· To deny/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.
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 (OSPFv3 view)
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
mdc-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
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/permit a route with the specified destination, use rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix.
· To deny/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
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
mdc-admin
Parameters
global: Enables global GR. In global GR mode, a GR process can be completed only when all GR helpers exist. A GR process fails if a GR helper fails (for example, the interface connected to the GR helper goes down). If you do not specify this keyword, the command enables partial GR. In partial GR mode, a GR process can be completed as long as one GR helper exists.
planned-only: Enables planned GR only. If you do not specify this keyword, the command enables both planned GR and unplanned GR.
Usage guidelines
GR includes planned GR and unplanned GR.
· Planned GR—Manually restarts OSPFv3 or performs an active/standby switchover. Before OSPFv3 restart or active/standby switchover, the GR restarter sends Grace-LSAs to GR helpers.
· Unplanned GR—OSPFv3 restarts or an active/standby switchover occurs because of device failure. Before OSPFv3 restart or active/standby switchover, the GR restarter does not send Grace-LSAs to GR helpers.
OSPFv3 GR and OSPFv3 NSR are mutually exclusive. Do not configure the graceful-restart enable command and the non-stop-routing command at the same time.
To prevent service interruption after a master/backup switchover, a GR restarter running OSPFv3 must perform the following tasks:
· Keep the GR restarter forwarding entries stable during reboot.
· Establish all adjacencies and obtain complete topology information after reboot.
Examples
# Enable the GR capability for OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] graceful-restart enable
Related commands
graceful-restart helper enable
graceful-restart helper enable
Use graceful-restart helper enable to enable the GR helper capability for OSPFv3.
Use undo graceful-restart helper enable to disable the GR helper capability for OSPFv3.
Syntax
graceful-restart helper enable [ planned-only ]
undo graceful-restart helper enable
Default
The GR helper capability for OSPFv3 is enabled.
Views
OSPFv3 view
Predefined user roles
network-admin
mdc-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
mdc-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
mdc-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 (OSPFv3 view)
Use import-route to redistribute routes.
Use undo import-route to disable route redistribution.
Syntax
import-route protocol [ as-number ] [ process-id | all-processes | allow-ibgp ] [ allow-direct | cost cost-value | nssa-only | route-policy route-policy-name | tag tag | type type ] *
undo import-route protocol [ process-id | all-processes ]
Default
OSPFv3 route redistribution is disabled.
Views
OSPFv3 view
Predefined user roles
network-admin
mdc-admin
Parameters
protocol: Redistributes routes from the specified routing protocol.
as-number: Redistributes routes from an AS specified by its number in the range of 1 to 4294967295. This argument applies only to the bgp4+ protocol. 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.
process-id: Specifies the process ID of a routing protocol, in the range of 1 to 65536. The default is 1. This argument takes effect only when the protocol argument is isisv6, ospfv3, or ripng.
all-processes: Redistributes routes from all the processes of the specified routing protocol. This keyword takes effect only when the protocol argument is ripng, ospfv3, or isisv6.
allow-ibgp: Redistributes IBGP routes. It is available only when the protocol argument is bgp4+.
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. The default is 1.
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.
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.
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 (OSPFv3 view)
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
mdc-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-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
mdc-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 is incremented 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
Related commands
lsa-arrival-interval
maximum load-balancing (OSPFv3 view)
Use maximum load-balancing to set the maximum number of equal-cost multi-path (ECMP) routes.
Use undo maximum load-balancing to restore the default.
Syntax
maximum load-balancing number
undo maximum load-balancing
Default
The maximum number of OSPFv3 ECMP routes equals the maximum number of ECMP routes supported by the system.
Views
OSPFv3 view
Predefined user roles
network-admin
mdc-admin
Parameters
number: Specifies the maximum number of ECMP routes. When the maximum number is 1, OSPFv3 does not perform load balancing. The value range for this argument is 1 to 32.
Usage guidelines
If you use the max-ecmp-num command to set the maximum number of ECMP routes supported by the system to m:
· The default setting for the maximum load-balancing command is m.
· The value range for the maximum argument of the maximum load-balancing command is 1 to m.
Examples
# Set the maximum number of ECMP routes to 2.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] maximum load-balancing 2
Related commands
max-ecmp-num
non-stop-routing
Use non-stop-routing to enable OSPFv3 NSR.
Use undo non-stop-routing to disable OSPFv3 NSR.
Syntax
non-stop-routing
undo non-stop-routing
Default
OSPFv3 NSR is disabled.
Views
OSPFv3 view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
This command takes effect only for the current process. As a best practice, enable OSPFv3 NSR for each process if multiple OSPFv3 processes exist.
OSPFv3 NSR and OSPFv3 GR are mutually exclusive. Do not configure the non-stop-routing command and the graceful-restart enable command at the same time.
Examples
# Enable NSR for OSPFv3 process 100.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] non-stop-routing
nssa (OSPFv3 area view)
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
mdc-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 area view)
ospfv3
Use ospfv3 to enable an OSPFv3 process and enter OSPFv3 view.
Use undo ospfv3 to disable an OSPFv3 process.
Syntax
ospfv3 [ process-id | vpn-instance vpn-instance-name ] *
undo ospfv3 [ process-id ]
Default
No OSPFv3 process is enabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. The default process ID is 1.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the OSPFv3 process runs on the public network.
Usage guidelines
Specify a router ID for the OSPFv3 process. Otherwise, the OSPFv3 process cannot generate LSAs.
Examples
# Enable OSPFv3 process 120 and set the router ID to 1.1.1.1.
<Sysname> system-view
[Sysname] ospfv3 120
[Sysname-ospfv3-120] router-id 1.1.1.1
ospfv3 area
Use ospfv3 area to enable an OSPFv3 process on an interface and specify an area for the interface.
Use undo ospfv3 area to disable an OSPFv3 process on an interface.
Syntax
ospfv3 process-id area area-id [ instance instance-id ]
undo ospfv3 process-id area area-id [ instance instance-id ]
Default
No OSPFv3 processes are enabled on an interface.
Views
Interface view
Predefined user roles
network-admin
mdc-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 VLAN-interface 10 to run instance 1 of OSPFv3 process 1 in Area 1.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] 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
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
mdc-admin
Parameters
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
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:
3. 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.
4. 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 Ten-GigabitEthernet 1/0/1 to use the keychain test for OSPFv3 packet authentication.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] ospfv3 authentication-mode keychain test
ospfv3 bfd enable
Use ospfv3 bfd enable to enable BFD on an OSPFv3 interface.
Use undo ospfv3 bfd enable to disable BFD on an OSPFv3 interface.
Syntax
ospfv3 bfd enable [ instance instance-id ]
undo ospfv3 bfd enable [ instance instance-id ]
Default
BFD is disabled on an OSPFv3 interface.
Views
Interface view
Predefined user roles
network-admin
mdc-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 VLAN-interface 11 in instance 1.
<Sysname> system-view
[Sysname] interface vlan-interface 11
[Sysname-Vlan-interface11] 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
mdc-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 VLAN-interface 10 in instance 1.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 cost 33 instance 1
ospfv3 dr-priority
Use ospfv3 dr-priority to set the router priority for an interface in an instance.
Use undo ospfv3 dr-priority to remove the configuration.
Syntax
ospfv3 dr-priority priority [ instance instance-id ]
undo ospfv3 dr-priority [ instance instance-id ]
Default
An interface has a router ID of 1.
Views
Interface view
Predefined user roles
network-admin
mdc-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 VLAN-interface 10 in instance 1 to 8.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] 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
mdc-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 VLAN-interface 11 from calculating a backup next hop by using the LFA algorithm.
<Sysname> system-view
[Sysname] interface vlan-interface 11
[Sysname-Vlan-interface11] 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
mdc-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 VLAN-interface 10.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 ipsec-profile profile001
ospfv3 mib-binding
Use ospfv3 mib-binding to bind an OSPFv3 process to MIB.
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
mdc-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 OSPFv3 process 100 to MIB.
<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
mdc-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 VLAN-interface 10 that belongs to instance 1 to ignore MTU check during DD packet exchange.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 mtu-ignore instance 1
ospfv3 network-type
Use ospfv3 network-type to specify the network type for an OSPFv3 interface.
Use undo ospfv3 network-type to remove the configuration.
Syntax
ospfv3 network-type { broadcast | nbma | p2mp [ unicast ] | p2p } [ instance instance-id ]
undo ospfv3 network-type [ instance instance-id ]
Default
The network type of an OSPFv3 interface depends on its link layer protocol.
· For Ethernet and FDDI, the default network type is broadcast.
· For ATM, FR, and X.25, the default network type is NBMA.
· For PPP, LAPB, HDLC, and POS, the default network type is P2P.
Views
Interface view
Predefined user roles
network-admin
mdc-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 VLAN-interface 20 as NBMA.
<Sysname> system-view
[Sysname] interface vlan-interface 20
[Sysname-Vlan-interface20] 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
mdc-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 VLAN-interface 10, specify the link-local address of its neighbor as FE80::1111.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 peer fe80::1111
ospfv3 prefix-suppression
Use ospfv3 prefix-suppression to disable an OSPFv3 interface from advertising all its prefixes.
Use undo ospfv3 prefix-suppression to remove the configuration.
Syntax
ospfv3 prefix-suppression [ disable ] [ instance instance-id ]
undo ospfv3 prefix-suppression [ instance instance-id ]
Default
Prefix suppression is disabled on an interface.
Views
Interface view
Predefined user roles
network-admin
mdc-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 VLAN-interface 10.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] 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
mdc-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.
Examples
# On VLAN-interface 10, 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 vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 primary-path-detect bfd echo
ospfv3 timer dead
Use ospfv3 timer dead to set the OSPFv3 neighbor dead time.
Use undo ospfv3 timer dead to remove the configuration.
Syntax
ospfv3 timer dead seconds [ instance instance-id ]
undo ospfv3 timer dead [ instance instance-id ]
Default
The OSPFv3 neighbor dead time is 40 seconds for P2P and broadcast interfaces, and is 120 seconds for P2MP and NBMA interfaces.
Views
Interface view
Predefined user roles
network-admin
mdc-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 VLAN-interface 10.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] 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
mdc-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 VLAN-interface 10.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] 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
mdc-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 VLAN-interface 10 to 120 seconds.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] 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
mdc-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 VLAN-interface10 in instance 1.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] 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
mdc-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 is incremented 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 VLAN-interface 10 in instance 1.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 trans-delay 3 instance 1
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
mdc-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
mdc-admin
Usage guidelines
By default, an OSPFv3 interface advertises all of its prefixes in LSAs. To speed up OSPFv3 convergence, you can suppress interfaces from advertising all of their prefixes. This feature helps improve network security by preventing IP routing to the suppressed networks.
To disable an OSPFv3 process from advertising the prefixes of loopback and passive interfaces, configure prefix suppression on the interfaces by using the ospfv3 prefix-suppression command.
When prefix suppression is enabled:
· OSPFv3 does not advertise the prefixes of suppressed interfaces in Type-8 LSAs.
· On broadcast and NBMA networks, the DR does not advertise the prefixes of suppressed interfaces in Type-9 LSAs that reference Type-2 LSAs.
· On P2P and P2MP networks, OSPFv3 does not advertise the prefixes of suppressed interfaces in Type-9 LSAs that reference Type-1 LSAs.
Examples
# Enable prefix suppression for OSPFv3 process 100.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] prefix-suppression
Related commands
ospfv3 prefix-suppression
reset ospfv3 event-log
Use reset ospfv3 event-log to clear OSPFv3 log information.
Syntax
reset ospfv3 [ process-id ] event-log [ lsa-flush | peer | spf ]
Views
User view
Predefined user roles
network-admin
mdc-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
mdc-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
mdc-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
mdc-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
mdc-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
silent-interface(OSPFv3 view)
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
mdc-admin
Parameters
interface-type interface-number: Specifies an interface by its type and number.
all: Specifies all interfaces.
Usage guidelines
Multiple processes can disable the same interface from receiving and sending OSPFv3 packets. However, the silent-interface command takes effect only on interfaces enabled with the current process.
Examples
# Disable VLAN-interface 10 from receiving and sending OSPFv3 packets in OSPFv3 processes 100 and 200.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] router-id 10.100.1.9
[Sysname-ospfv3-100] silent-interface vlan-interface 10
[Sysname-ospfv3-100] quit
[Sysname] ospfv3 200
[Sysname-ospfv3-200] router-id 20.100.1.9
[Sysname-ospfv3-200] silent-interface vlan-interface 10
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
mdc-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
mdc-admin
Parameters
interval trap-interval: Specifies the SNMP notification output interval in the range of 2 to 60 seconds.
count trap-number: Specifies the number of SNMP notifications output by OSPFv3 at each interval, in the range of 0 to 300. The value of 0 indicates that OSPFv3 does not output SNMP notifications.
Examples
# Configure OSPFv3 to output a maximum of 10 SNMP notifications within 5 seconds.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] snmp trap rate-limit interval 5 count 10
snmp-agent trap enable ospfv3
Use snmp-agent trap enable ospfv3 to enable SNMP notifications for OSPFv3.
Use undo snmp-agent trap enable ospfv3 to disable SNMP notifications for OSPFv3.
Syntax
snmp-agent trap enable ospfv3 [ grrestarter-status-change | grhelper-status-change | if-state-change | if-cfg-error | if-bad-pkt | neighbor-state-change | nssatranslator-status-change | virtif-bad-pkt | virtif-cfg-error |virtif-state-change | virtgrhelper-status-change | virtneighbor-state-change ] *
undo snmp-agent trap enable ospfv3 [ grrestarter-status-change | grhelper-status-change | if-state-change | if-cfg-error | if-bad-pkt | neighbor-state-change | nssatranslator-status-change | virtif-bad-pkt | virtif-cfg-error |virtif-state-change | virtgrhelper-status-change | virtneighbor-state-change] *
Default
SNMP notifications for OSPFv3 are enabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
grrestarter-status-change: Specifies notifications about GR restarter state changes.
grhelper-status-change: Specifies notifications about GR helper state changes.
if-state-change: Specifies notifications about interface state changes.
if-cfg-error: Specifies notifications about error configuration of an interface.
if-bad-pkt: Specifies notifications about error messages received on an interface.
neighbor-state-change: Specifies notifications about neighbor state changes.
nssatranslator-status-change: Specifies notifications about NSSA translator state changes.
virtif-bad-pkt: Specifies notifications about error messages received on a virtual interface.
virtif-cfg-error: Specifies notifications about error configuration of a virtual interface.
virtif-state-change: Specifies notifications about virtual interface state changes.
virtgrhelper-status-change: Specifies notifications about neighbor GR helper state changes of a virtual interface.
virtneighbor-state-change: Specifies notifications about the neighbor state changes of a virtual interface.
Examples
# Disable SNMP notifications for OSPFv3.
<Sysname> system-view
[Sysname] undo snmp-agent trap enable ospfv3
spf-schedule-interval
Use spf-schedule-interval to set the OSPFv3 SPF calculation interval.
Use undo spf-schedule-interval to restore the default.
Syntax
spf-schedule-interval maximum-interval [ minimum-interval [ incremental-interval ] ]
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
mdc-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.
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.
For a stable network, the minimum interval is used. If network changes become frequent, the SPF calculation interval is incremented by the incremental interval × 2n-2 for each calculation until the maximum interval is reached. The value n is the number of calculation times.
The minimum interval and the incremental interval cannot be greater than the maximum interval.
Examples
# Set the maximum SPF calculation interval to 10 seconds, minimum interval to 500 milliseconds, and incremental interval to 300 milliseconds.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] spf-schedule-interval 10 500 300
stub (OSPFv3 area view)
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
mdc-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 (OSPFv3 area view)
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
mdc-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
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
mdc-admin
Parameters
interval interval: Specifies an interval at which an interface sends LSU packets, in the range of 10 to 1000 milliseconds. If the router has multiple OSPFv3 interfaces, increase the interval to reduce the total number of LSU packets sent by the router every second.
count count: Specifies the maximum number of LSU packets sent by an interface at each interval, in the range of 1 to 200. If the router has multiple OSPFv3 interfaces, decrease the maximum number to reduce the total number of LSU packets sent by the router every second.
Examples
# Configure all the interfaces running OSPFv3 process 1 to send a maximum of 10 LSU packets every 30 milliseconds.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] transmit-pacing interval 30 count 10
vlink-peer (OSPFv3 area view)
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 | keychain keychain-name | retransmit seconds | trans-delay seconds ] *
undo vlink-peer router-id [ dead | hello | ipsec-profile | keychain | retransmit | trans-delay ] *
Default
No virtual links exist.
Views
OSPFv3 area view
Predefined user roles
network-admin
mdc-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.
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.
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:
3. 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.
4. 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