- 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
- Related Documents
-
Title | Size | Download |
---|---|---|
10-OSPFv3 commands | 232.77 KB |
Contents
abr-summary (OSPFv3 area view)
default-cost (OSPFv3 area view)
default-route-advertise (OSPF view)
display ospfv3 graceful-restart status
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)
abr-summary (OSPFv3 area view)
Use abr-summary to configure an IPv6 summary route on an area border router (ABR).
Use undo abr-summary to remove an IPv6 summary route.
Syntax
abr-summary ipv6-address prefix-length [ not-advertise ] [ cost value ]
undo abr-summary ipv6-address prefix-length
Default
No route summarization is 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. Without this argument, the command advertises the IPv6 summary route.
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 is available only on an ABR to summarize multiple contiguous networks into one network.
To enable ABR to advertise more-specific routes, issue 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 area is created.
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 changed to an IPv4 address by the system.
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]
bandwidth-reference
Use bandwidth-reference to specify 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 default value is 100 Mbps.
Views
OSPFv3 view
Predefined user roles
network-admin
mdc-admin
Parameters
value: Specifies the bandwidth reference value for link cost calculation, in the range of 1 to 2147483648 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, and OSPFv3 computes the cost automatically based on the bandwidth reference value: Interface OSPFv3 cost = Bandwidth reference value/Interface bandwidth. If the calculated cost is greater than 65535, the value of 65535 is used.
If no cost value is configured for an interface, OSPFv3 computes the interface cost value automatically.
Examples
# Specify the reference bandwidth value as 1000 Mbps.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] bandwidth-reference 1000
default-cost (OSPFv3 area view)
Use default-cost to configure a cost for the default route advertised to the stub 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, in the range of 0 to 16777214.
Usage guidelines
This command takes effect only on the ABR of a stub area.
Examples
# Configure Area 1 as a stub area, and specify the cost of the default route advertised to the stub area as 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
stub (OSPFv3 area view)
default-route-advertise (OSPF 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 | route-policy route-policy-name | 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: Generates 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 this keyword is not specified, the router generates a default route in an AS-external-LSA into the OSPFv3 routing domain only when the default route exists in the IP routing table.
permit-calculate-other: Enables OSPFv3 to calculate default routes received from other routers. Without this keyword, OSPFv3 does not calculate default routes from other routers. If the router does not generate any default route in an AS-external-LSA into the OSPFv3 routing domain, the router calculates default routes from other routers regardless of whether this keyword is specified.
cost cost: 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 a default route exists in the routing table and the specified routing policy is matched, the command generates a default route in an AS-external-LSA into the OSPFv3 routing domain, and the routing policy modifies some values in the AS-external-LSA. If the always keyword is specified at the same time, the command can generate a default route in an AS-external-LSA into the OSPFv3 routing domain when the specified routing policy is matched, regardless of whether a default route exists in the routing table, and the routing policy modifies some values in the AS-external-LSA.
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
# Generate 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 abr-asbr
Use display ospfv3 abr-asbr to display information about the routes to OSPF 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 no OSPFv3 process ID is specified, this 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
NextHop :FE80:1:1::1 Cost : 1
Destination :1.1.1.3 Rtr Type : ASBR
Area :0.0.0.0 Path Type: Intra
NextHop :FE80:2:1::1 Cost : 1
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. |
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. |
NextHop |
Next hop address. |
Cost |
Cost from the router to the ABR or ASBR. |
display ospfv3 brief
Use display ospfv3 brief to display brief information about an OSPFv3 process.
Syntax
display ospfv3 [ process-id ] brief
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 no process ID is specified, this command displays brief information about all OSPFv3 processes.
Examples
# Display brief information about all OSPFv3 processes.
<Sysname> display ospfv3 brief
OSPFv3 Process 1 with Router ID 1.1.1.1
RouterID: 1.1.1.1 Router Type:
Multi-VPN-Instance is not enabled
SPF-schedule-interval: 5 50 200
LSA generation interval: 5
LSA arrival interval: 1000
Transmit pacing: Interval: 20 Count: 3
Route Preference: 10
ASE Route Preference: 150
SPF Computation Count: 0
External LSA Count: 0
LSA originated Count:0
LSA received Count:0
Area Count: 2
ExChange/Loading Neighbors: 0
Area: 0.0.0.0
Area flag: Normal
SPF Scheduled Count: 0
ExChange/Loading Neighbors: 0
LSA Count: 0
Area: 0.0.0.2
Area flag: Normal
SPF Scheduled Count: 0
ExChange/Loading Neighbors: 0
LSA Count: 0
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. |
Router Type |
Router type: · ABR. · ASBR. · NSSA. · Null. |
Multi-VPN-Instance is not enabled |
The OSPF process does not support multiple VPN instances. |
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 each time. |
Route Preference |
Internal route preference. |
ASE Route Preference |
AS-external route preference. |
ExChange/Loading Neighbors |
Neighbors in ExChange/Loading state. |
display ospfv3 graceful-restart status
Use display ospfv3 graceful-restart status to display GR information for an OSPFv3 process.
Syntax
display ospfv3 [ process-id ] graceful-restart status
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 no process ID is specified, this command displays GR information for all processes.
Examples
# Display GR information for all OSPFv3 processes (GR Restarter).
<Sysname> display ospfv3 graceful-restart status
OSPFv3 Process 1 with Router ID 3.3.3.3
Graceful-restart capability : enable
Helper-policy support : enable
Current GR state : Normal
Graceful-restart period : 120 seconds
Number of neighbors under helper: 0
Number of restarting neighbors : 0
Table 3 Command output
Field |
Description |
OSPF Process 1 with Router ID 3.3.3.3 |
The GR status of OSPF process 1 with router ID 3.3.3.3 is displayed. |
Graceful-restart capability |
Indicates whether OSPFv3 GR is enabled: · enabled. · disabled. |
Helper-policy support |
Indicates whether OSPFv3 GR Helper is enabled: · enabled. · disabled. |
Current GR state |
GR status: · Normal—Non-GR status. · Under GR—Restarter status. · Under Helper—Helper status. |
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. |
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 no process is specified, this command displays brief OSPFv3 interface information for all processes.
If you do not provide the interface-type interface-number 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, Wait 40, Retransmit 5, Transmit Delay 1
Neighbor Count is 1, Adjacent neighbor count is 1
Table 4 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. |
Type |
Network type of the interface. |
OSPFv3 Process |
OSPFv3 process. |
Area |
Area ID. |
Router ID |
Router ID. |
Network Type |
Network type of the interface. |
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. |
Timer interval configured |
Time intervals in seconds configured on the interface: · Hello—Hello interval. · Dead—Dead interval. · Wait—After this timer expires, the interface quits from the waiting state. · Retransmit—LSA retransmission interval. · Transmit Delay—Transmission delay of the interface. |
Neighbor Count |
Number of Neighbors on the interface. |
Adjacent neighbor count |
Number of Adjacencies on the interface. |
display ospfv3 lsdb
Use display ospfv3 lsdb to display the OSPFv3 LSDB.
Syntax
display ospfv3 [ process-id ] lsdb [ { external | grace | inter-prefix | inter-router | intra-prefix | link | network | router | unknown [ type ] } [ link-state-id ] [ originate-router router-id | self-originate ] | statistics | total ]
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.
external: Displays AS-external LSAs.
grace: Displays Grace-LSAs.
inter-prefix: Displays Inter-area-prefix LSAs.
inter-router: Displays Inter-area-router LSAs.
intra-prefix: Displays Intra-area-prefix LSAs.
link: Displays Link-LSAs.
network: Displays Network-LSAs.
router: Displays Router-LSAs.
unknown: Displays unknown LSAs.
type: Specifies an LSA type, a hexadecimal string of 0 to FFFF. Without this argument, the command displays all unknown LSAs.
link-state-id: Specifies a link state ID in IPv4 format.
originate-router router-id: Specifies the ID of an advertising router.
self-originate: Displays locally originated LSAs.
statistics: Displays LSA statistics.
total: Displays total number of LSAs in the LSDB.
Usage guidelines
If no OSPFv3 process is specified, this command displays LSDB information for all processes.
Examples
# Display OSPFv3 LSDB information.
<Sysname> display ospfv3 lsdb
OSPFv3 Process 1 with Router ID 1.1.1.1
Link-LSA (Interface Vlan-interface11)
-------------------------------------------------------------------------
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 5 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. |
Intra-Area-Prefix-LSA |
Type 9 LSA. |
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-interface11)
-------------------------------------------------------------------------
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 6 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 Link Grace ASE
0.0.0.1 2 0 0 0 2
Total 2 0 0 0 2 4 0 0
Table 7 Command output
Field |
Description |
Area ID |
Area ID. |
Router |
Number of Router-LSAs. |
Network |
Number of Network-LSAs. |
InterPre |
Number of inter-Area-Prefix-LSAs. |
InterRou |
Number of Inter-Area-Router-LSAs. |
IntraPre |
Number of Intra-Area-Prefix-LSAs. |
Link |
Total number of Link-LSAs. |
Grace |
Number of Grace-LSAs. |
ASE |
Total number of AS-external-LSAs. |
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.
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 an IPv4 address by the system.
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 no process-id is specified, this command displays neighbor information for all processes.
If no area is specified, this command displays neighbor information for all areas.
If no interface or no neighbor is specified, this command displays neighbor information for all interfaces.
Examples
# Display the neighbor information for OSPFv3 process 1 on an interface.
<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 Interface Inst ID
2.2.2.2 1 Init/ - 00:00:36 Vlan1 0
Table 8 Command output
Field |
Description |
Router ID |
Router ID of a neighbor. |
Pri |
Priority of neighbor router. |
State |
Neighbor state. |
Dead Time |
Dead time remained. |
Interface |
Interface connected to the neighbor. |
Inst ID |
Instance ID. |
# Display detailed neighbor information for OSPFv3 process 1 on an interface.
<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 0x000013 (-|R|-|-|E|V6)
Dead timer due in 00:00:33
Neighbor is up for 00:24:19
Neighbor state change count: 205
Database Summary List 0
Link State Request List 0
Link State Retransmission List 0
Table 9 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 |
Options. |
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. |
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. |
# Display OSPFv3 neighbor statistics.
<Sysname> display ospfv3 peer statistics
OSPFv3 Process 1 with Router ID 1.1.1.1
-------------------------------------------------------------------------
Area ID Down Init 2-Way ExStart Exchange Loading Full Total
0.0.0.0 0 0 0 0 0 0 2 2
Total 0 0 0 0 0 0 2 2
Table 10 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. |
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.
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 an IPv4 address by the system.
interface-type interface-number: Specifies an interface by its type and number.
neighbor-id: Specifies a neighbor's router ID.
Usage guidelines
If no OSPFv3 process is specified, this command displays the OSPFv3 request list information for all OSPFv3 processes.
If no OSPFv3 area is specified, this command displays the OSPFv3 request list information for all areas.
If no interface is specified, this command displays the OSPFv3 request list information for all interfaces.
If no neighbor is specified, this command displays the OSPFv3 request list information for all OSPF 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 GigabitEthernet3/0/1
-------------------------------------------------------------------------
Nbr-ID 1.3.3.3 Request List
Type LinkState ID AdvRouter SeqNum Age CkSum
0x4005 0.0.34.127 1.3.3.3 0x80000001 0027 0x274d
0x4005 0.0.34.128 1.3.3.3 0x80000001 0027 0x2d45
0x4005 0.0.34.129 1.3.3.3 0x80000001 0027 0x333d
0x4005 0.0.34.130 1.3.3.3 0x80000001 0027 0x3935
Table 11 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. |
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.
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 an IPv4 address by the system.
interface-type interface-number: Specifies an interface by its type and number.
neighbor-id: Specifies a neighbor's router ID.
Usage guidelines
If no OSPFv3 process is specified, this command displays retransmission list information for all OSPFv3 processes.
If no OSPFv3 area is specified, this command displays retransmission list information for all OSPFv3 areas.
If no interface is specified, this command displays retransmission list information for all interfaces.
If no neighbor is specified, 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 GigabitEthernet3/0/1
-------------------------------------------------------------------------
Nbr-ID 1.2.2.2 Retransmit List
Type LinkState ID AdvRouter SeqNum Age CkSum
0x2009 0.0.0.0 1.3.3.3 0x80000001 3600 0x49fb
Table 12 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. |
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.
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.
Usage guidelines
If no process is specified, this command displays the OSPFv3 route information for all processes.
Examples
# Display OSPFv3 routing information.
<Sysname> display ospfv3 routing
OSPFv3 Process 1 with Router ID 1.1.1.1
-------------------------------------------------------------------------
E1 - Type 1 external route, IA - Inter area route, I - Intra area route
E2 - Type 2 external route, * - Selected route
*Destination: 1001::/64
Type : I Cost : 1
NextHop : Direct Interface: GE3/0/2
Total: 1
Intra area: 1 Inter area: 0 ASE: 0
Table 13 Command output
Field |
Description |
Destination |
Destination network segment. |
Type |
Route type. |
Cost |
Route cost value. |
NextHop |
Next hop address. |
Interface |
Output interface. |
Total |
Total number of routes. |
Intra Area |
Number of intra-area routes. |
Inter Area |
Number of inter-area routes. |
ASE |
Number of external routes. |
display ospfv3 statistics
Use display ospfv3 statistics to display OSPFv3 statistics.
Syntax
display ospfv3 [ process-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.
Usage guidelines
If no process is specified, this command displays OSPFv3 statistics for all processes.
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
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/NSSA 0
Table 14 Command output
Field |
Description |
Packet Statistics |
Statistics of 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 acknowledgement packet. |
Local Originated LSAs Statistics |
Statistics of generated LSAs. |
Router-LSA |
Number of Router-LSAs. |
Network-LSA |
Number of Network-LSAs. |
Inter-Area-Prefix-LSA |
Number of Inter-Area-Prefix-LSAs. |
Inter-Area-Router-LSA |
Number of Inter-Area-Router-LSAs. |
AS-external-LSA |
Number of AS-external-LSAs. |
Link-LSA |
Number of Link-LSAs. |
Intra-Area-Prefix-LSA |
Number of Intra-Area-Prefix-LSAs. |
Grace-LSA |
Number of Grace-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/NSSA |
External routes. |
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.
Usage guidelines
If no OSPFv3 process is specified, this 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
Table 15 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 |
IP address 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, and interface transmission delay. |
filter (OSPFv3 area view)
|
NOTE: This command is available only on an ABR. |
Use filter to configure inbound/outbound Inter-Area-Prefix-LSA filtering on an ABR.
Use undo filter to remove the configuration.
Syntax
filter { acl6-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
acl6-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-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-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.
Examples
# Use IPv6 prefix list my-prefix-list to filter inbound Inter-Area-Prefix-LSAs, and use IPv6 ACL 2000 to filter outbound Inter-Area-Prefix-LSAs in OSPF 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 { acl6-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
acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter redistributed routes by destination address.
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, which can be bgp4+, direct, isisv6, ospfv3, ripng, and static. If no protocol is specified, this 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 is ripng, ospfv3, or isisv6.
Usage guidelines
To reference 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. The prefix must be contiguous. Otherwise, the configuration does not take effect.
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, use of 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 ACL 3000 to permit only route 2001::1/128. Use ACL 3000 to filter redistributed routes.
<Sysname> system-view
[Sysname] acl ipv6 number 3000
[Sysname-acl6-adv-3000] rule 10 permit ipv6 source 2001::1 128 destination ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 128
[Sysname-acl6-adv-3000] rule 100 deny ipv6
[Sysname-acl6-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 restore the default.
Syntax
filter-policy { acl6-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
acl6-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. Without this option, this 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 inbound routes.
Usage guidelines
To reference 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. The prefix must be contiguous. Otherwise, the configuration does not take effect.
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 inbound 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 ACL 3000 to permit only route 2001::1/128 to pass. Use ACL 3000 to filter inbound routes.
<Sysname> system-view
[Sysname] acl ipv6 number 3000
[Sysname-acl6-adv-3000] rule 10 permit ipv6 source 2001::1 128 destination ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 128
[Sysname-acl6-adv-3000] rule 100 deny ipv6
[Sysname-acl6-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
undo graceful-restart enable
Default
The GR capability for OSPFv3 is disabled.
Views
OSPFv3 view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
To prevent service interruption after a master/backup switchover, a GR Restarter running OSPFv3 must complete 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
undo graceful-restart helper enable
Default
The GR Helper capability for OSPFv3 is enabled.
Views
OSPFv3 view
Predefined user roles
network-admin
mdc-admin
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 configure the GR restart interval.
Use undo graceful-restart interval to restore the default.
Syntax
graceful-restart interval interval-value
undo graceful-restart interval
Default
The GR restart interval is 120 seconds.
Views
OSPFv3 view
Predefined user roles
network-admin
mdc-admin
Parameters
interval-value: Specifies GR restart interval in the range of 40 to 1800 seconds.
Usage guidelines
The value of the GR restart interval cannot be smaller than the maximum OSPFv3 neighbor dead time of all the OSPFv3 interfaces. Otherwise, GR restart might fail.
Examples
# Configure the GR restart interval for OSPFv3 process 1 as 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 [ process-id | all-processes | allow-ibgp ] [ cost cost | route-policy route-policy-name | 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, which can be bgp4+, direct, isisv6, ospfv3, ripng, or static.
process-id: Specifies the process ID of a routing protocol, in the range of 1 to 65536. It defaults to 1. This argument takes effect only when the protocol 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 is ripng, ospfv3, or isisv6.
allow-ibgp: Allows redistribution of IBGP routes. It is available only when the protocol is bgp4+.
cost value: Specifies a cost for redistributed routes, in the range of 1 to 16777214. The default is 1.
route-policy route-policy-name: Uses the specified routing policy to filter redistributed routes. The route-policy-name argument is a case-sensitive string of 1 to 63 characters.
type type: Specifies the type for redistributed routes, 1 or 2. It defaults to 2.
Usage guidelines
An external route is a route to a destination outside the OSPFv3 AS. External routes types are as follows:
· A Type-1 external route has high reliability. Its cost is comparable with the cost of OSPFv3 internal routes. The cost from an OSPFv3 router to a Type-1 external route’s destination equals the cost from the router to the ASBR plus the cost from the ASBR to the external route’s destination.
· A Type-2 external route has low credibility, so OSPFv3 considers the cost from the ASBR to a Type-2 external route is much bigger than the cost from the ASBR to an OSPF internal router. The cost from an internal router to a Type-2 external route’s destination 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.
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 area view)
log-peer-change
Use log-peer-change to enable the logging of neighbor state changes.
Use undo log-peer-change to disable the logging of neighbor state changes.
Syntax
log-peer-change
undo log-peer-change
Default
The logging of neighbor state changes is enabled.
Views
OSPFv3 view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
This feature enables the device to output information about neighbor state changes to the configuration terminal.
Examples
# Disable the logging of 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 configure 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
OSPF 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 not frequent, LSAs are generated at the minimum-interval. If network changes become frequent, the LSA generation interval is incremented by incremental-interval × 2n-2 (n is the number of generation times) each time a LSA generation occurs until the maximum-interval is reached.
The minimum interval and the incremental interval cannot be greater than the maximum interval.
Examples
# Configure the maximum LSA generation interval as 2 seconds, minimum interval as 100 milliseconds, and incremental interval as 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 configure the maximum number of equal-cost multi-path (ECMP) routes.
Use undo maximum load-balancing to restore the default.
Syntax
maximum load-balancing maximum
undo maximum load-balancing
Default
The maximum number of ECMP routes is 32.
Views
OSPFv3 view
Predefined user roles
network-admin
mdc-admin
Parameters
maximum: Specifies the maximum number of ECMP routes, in the range of 1 to 32. When the maximum number is 1, OSPFv3 does not perform load balancing.
Examples
# Configure the maximum number of ECMP routes as 2.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] maximum load-balancing 2
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 by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, 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 configure the Router ID as 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 and specify an area for on an interface.
Use undo ospfv3 area to disable an OSPFv3 process.
Syntax
ospfv3 process-id area area-id [ instance instance-id ]
undo ospfv3 process-id area area-id [ instance instance-id ]
Default
No OSPFv3 process is 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 an IPv4 address by the system.
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 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 for OSPFv3 is disabled.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
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 configure an OSPFv3 cost for an interface in an instance.
Use undo ospfv3 cost to restore the default.
Syntax
ospfv3 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
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-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Examples
# Specifies the OSPFv3 cost for VLAN-interface 10 in instance 1 as 33.
<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 restore the default.
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-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 mtu-ignore
Use ospfv3 mtu-ignore to configure an interface to ignore MTU check during DD packet exchange.
Use undo ospfv3 mtu-ignore to restore the default.
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-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 set the network type for an OSPFv3 interface.
Use undo ospfv3 network-type to restore the default.
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 OSPF packets. By default, a P2MP interface multicasts OSPFv3 packets.
p2p: Specifies the network type as P2P.
instance-id: Specifies the instance ID of an interface, 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 OSPF packets are unicast by the interface.
Examples
# Configure 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 value | dr-priority dr-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 IP address of the neighbor.
cost value: Specifies the cost of the neighbor, in the range of 1 to 65535.
dr-priority dr-priority: Specifies the DR priority of the neighbor, in the range of 0 to 255. The default is 1.
Instance instance-id: Specifies an interface 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 IP 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 timer dead
Use ospfv3 timer dead to configure the OSPFv3 neighbor dead time.
Use undo ospfv3 timer dead to restore the default.
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.
Usage guidelines
OSPFv3 neighbor dead time: if an interface receives no hello packet from a neighbor after dead time elapses, the interface will consider the neighbor dead.
The dead time must be at least four times the hello time and must be identical on interfaces attached to the same network segment.
Examples
# Configure the OSPFv3 neighbor dead time as 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 configure the hello interval for an interface.
Use undo ospfv3 timer hello to restore the default.
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-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
# Configure the hello interval as 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 restore the default.
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-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 at least 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 configure the LSA retransmission interval for an interface.
Use undo ospfv3 timer retransmit to restore the default.
Syntax
ospfv3 timer retransmit seconds [ instance instance-id ]
undo ospfv3 timer retransmit [ instance instance-id ]
Default
The interval defaults to 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-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 acknowledgement. If the device receives no acknowledgement after the LSA retransmission interval elapses, it will retransmit the LSA.
The LSA retransmission interval should not be too small for avoidance of unnecessary retransmissions.
Examples
# Configure the LSA retransmission interval on VLAN-interface10 in instance 1 as 12 seconds.
<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 configure the transmission delay for an interface.
Use undo ospfv3 trans-delay to restore the default.
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-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. Therefore, it is necessary to add a transmission delay into the age time, especially for low-speed links.
Examples
# Configure the transmission delay as 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 specify a preference for OSPFv3 routes.
Use undo preference to restore the default.
Syntax
preference [ ase ] [ route-policy route-policy-name ] preference
undo preference [ ase ]
Default
The preference for OSPFv3 internal routes is 10, and that for OSPFv3 external routes is 150.
Views
OSPFv3 view
Predefined user roles
network-admin
mdc-admin
Parameters
ase: Sets a preference to OSPFv3 external routes. If the keyword is not specified, the command sets a preference for OSPFv3 internal routes.
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.
preference: Specifies the preference of OSPFv3, in the range of 1 to 255. The smaller the value, the higher the preference.
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
silent-interface(OSPFv3 view)
Use silent-interface to disable the specified interface from sending and receiving OSPFv3 packets.
Use undo silent-interface to restore the default.
Syntax
silent-interface { interface-type interface-number | all }
undo silent-interface { interface-type interface-number | all }
Default
An interface can send and receive 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 sending and receiving OSPFv3 packets, but the silent-interface command takes effect only on interfaces enabled with the current process.
Examples
# Disable VLAN-interface 10 from sending and receiving 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
router-id
Use router-id to configure a router ID.
Use undo router-id to remove the configured router ID.
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.
Different processes must have different router IDs.
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
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 OSPF router uses SPF to calculate a shortest path tree with itself being the root. OSPF uses the shortest path tree to determine the next hop to a destination. By adjusting the SPF calculation interval, you can prevent bandwidth and router resources from being over-consumed due to frequent topology changes.
When network changes are not frequent, OSPFv3 performs SPF calculations at the minimum-interval. If network changes become frequent, the SPF calculation interval is incremented by the incremental-interval each time a calculation happens until the maximum-interval is reached.
The minimum interval and the incremental interval cannot be greater than the maximum interval.
Examples
# Configure the maximum SPF calculation interval as 10 seconds, minimum interval as 500 milliseconds and incremental interval as 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 the default route.
no-summary: Enables the ABR of a stub area 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 stub area of this kind is also known as 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, issue 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)
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 | retransmit seconds | trans-delay seconds ] *
undo vlink-peer router-id [ dead | hello | retransmit | trans-delay ] *
Default
No virtual link is configured.
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: Sets 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 at least four times the hello interval.
hello seconds: Sets 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: Sets the instance ID of a virtual link, in the range of 0 to 255. The default is 0.
retransmit seconds: Sets the retransmission interval in the range of 1 to 3600 seconds. The default is 5.
trans-delay seconds: Sets the transmission delay interval in the range of 1 to 3600 seconds. The default is 1.
Usage guidelines
For a non-backbone area without a direct connection to the backbone area or for a backbone area that cannot maintain connectivity, you can use the vlink-peer command to create logical links. A virtual link can be considered as an interface with OSPFv3 enabled, because parameters such as hello, dead, retransmit and trans-delay are configured in the similar way.
Both ends of a virtual link are ABRs that are configured with the vlink-peer command.
Considerations on parameters:
· The smaller the hello interval is, the faster the network converges, and the more network resources are consumed.
· A retransmission interval that is too small can cause unnecessary retransmissions. A large value is appropriate for a low speed link.
· Specify an appropriate transmission delay with the trans-delay keyword.
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