- 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 |
---|---|---|
04-OSPF commands | 354.74 KB |
Contents
bandwidth-reference (OSPF view)
default-route-advertise (OSPF view)
description (OSPF/OSPF area view)
enable out-of-band-resynchronization
filter-policy export (OSPF view)
filter-policy import (OSPF view)
graceful-restart helper enable
graceful-restart helper strict-lsa-checking
graceful-restart interval (OSPF view)
maximum load-balancing (OSPF view)
abr-summary (OSPF area view)
Use abr-summary to configure a summary route on an area border router (ABR).
Use undo abr-summary to remove a summary route.
Syntax
abr-summary ip-address { mask | mask-length } [ advertise | not-advertise ] [ cost cost ]
undo abr-summary ip-address { mask | mask-length }
Default
No route summarization is configured on an ABR.
Views
OSPF area view
Predefined user roles
network-admin
mdc-admin
Parameters
ip-address: Specifies the destination IP address of the summary route in dotted decimal notation.
mask: Specifies the mask of the IP address in dotted decimal notation.
mask-length: Specifies the mask length in the range of 0 to 32 bits.
advertise | not-advertise: Advertises the summary route or not. By default, the command advertises the summary route.
cost cost: 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 36.42.10.0/24 and 36.42.110.0/24 in Area 1 into 36.42.0.0/16.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 1
[Sysname-ospf-100-area-0.0.0.1] network 36.42.10.0 0.0.0.255
[Sysname-ospf-100-area-0.0.0.1] network 36.42.110.0 0.0.0.255
[Sysname-ospf-100-area-0.0.0.1] abr-summary 36.42.0.0 255.255.0.0
area (OSPF view)
Use area to create an area and enter area view.
Use undo area to remove an area.
Syntax
area area-id
undo area area-id
Default
No OSPF area is created.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
area-id: Specifies an area by its ID, an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format by the system.
Examples
# Create area 0 and enter area 0 view.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 0
[Sysname-ospf-100-area-0.0.0.0]
asbr-summary
Use asbr-summary to configure a summary route on an ASBR.
Use undo asbr-summary to remove a summary route on an ASBR.
Syntax
asbr-summary ip-address { mask | mask-length } [ cost cost | not-advertise | tag tag ] *
undo asbr-summary ip-address { mask | mask-length }
Default
No route summarization is configured on an ASBR.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
ip-address: Specifies the destination IP address of the summary route.
mask: Specifies the mask in dotted decimal notation.
mask-length: Specifies the mask length in the range of 0 to 32 bits.
cost cost: Specifies the cost of the summary route, in the range of 1 to 16777214. For Type-1 external routes, the cost defaults to the largest cost among routes that are summarized. For Type-2 external routes, the cost defaults to the largest cost among routes that are summarized plus 1.
not-advertise: Disables advertising the summary route. Without this keyword, the command advertises the route.
tag tag: Specifies a tag for marking the summary route, in the range of 0 to 4294967295. The default is 1. The tag can be used by a routing policy to control summary route advertisement.
Usage guidelines
With the asbr-summary command configured, an ASBR summarizes redistributed routes that fall into the specified address range into a single route and advertises the summary route in a Type-5 LSA to neighbors. If the ASBR resides in an NSSA area, it advertises the summary route in a Type-7 LSA.
With the asbr-summary command configured, an NSSA ABR summarizes matching routes described by Type-5 LSAs that are translated from Type-7 LSAs, and advertises the summary route to neighbors. This command does not take effect on non NSSA ABRs.
To enable ASBR to advertise more-specific routes, issue the undo asbr-summary command.
Examples
# Summarize redistributed static routes into a single route, and specify a tag value of 2 and a cost of 100 for the summary route.
<Sysname> system-view
[Sysname] ip route-static 10.2.1.0 24 null 0
[Sysname] ip route-static 10.2.2.0 24 null 0
[Sysname] ospf 100
[Sysname-ospf-100] import-route static
[Sysname-ospf-100] asbr-summary 10.2.0.0 255.255.0.0 tag 2 cost 100
display ospf asbr-summary
authentication-mode
Use authentication-mode to specify an authentication mode for the OSPF area.
Use undo authentication-mode to restore the default.
Syntax
authentication-mode { md5 | simple }
undo authentication-mode
Default
No authentication mode is configured for an area.
Views
OSPF area view
Predefined user roles
network-admin
mdc-admin
Parameters
md5: Specifies the MD5 authentication mode.
simple: Specifies the simple authentication mode.
Usage guidelines
Routers that reside in the same area must have the same authentication mode: no authentication, simple, or MD5.
Examples
# Configure OSPF Area 0 to use the MD5 authentication mode.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 0
[Sysname-ospf-100-area-0.0.0.0] authentication-mode md5
ospf authentication-mode
bandwidth-reference (OSPF view)
Use bandwidth-reference to specify a reference bandwidth value for link cost calculation.
Use undo bandwidth-reference to restore the default value.
Syntax
bandwidth-reference value
undo bandwidth-reference
Default
The default value is 100 Mbps.
Views
OSPF 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 4294967 Mbps.
Usage guidelines
If no cost values are configured for links, OSPF calculates their cost values by using the formula: Cost = Reference bandwidth value/Link bandwidth. If the calculated cost is greater than 65535, the value of 65535 is used.
Examples
# Specify the reference bandwidth value as 1000 Mbps.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] bandwidth-reference 1000
default
Use default to configure default parameters for redistributed routes.
Use undo default to remove the configuration.
Syntax
default { cost cost | tag tag | type type } *
undo default { cost | tag | type } *
Default
The cost is 1, the tag is 1, and the route type is 2.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
cost cost: Specifies the default cost for redistributed routes, in the range of 0 to 16777214.
tag tag: Specifies the tag for marking redistributed routes, in the range of 0 to 4294967295.
type type: Specifies the type for redistributed routes: 1 or 2.
Examples
# Configure the default cost, tag, and type as 10, 100, and 2 for redistributed external routes.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] default cost 10 tag 100 type 2
Related commands
import-route
default-cost (OSPF area view)
Use default-cost to configure a cost for the default route advertised to the stub or NSSA area.
Use undo default-cost to restore the default value.
Syntax
default-cost cost
undo default-cost
Default
The cost is 1.
Views
OSPF area view
Predefined user roles
network-admin
mdc-admin
Parameters
cost: Specifies a cost for the default route advertised to the Stub 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/ASBR of an NSSA area.
Examples
# Configure Area 1 as a stub area, and specify the cost of the default route advertised to the stub area as 20.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 1
[Sysname-ospf-100-area-0.0.0.1] stub
[Sysname-ospf-100-area-0.0.0.1] default-cost 20
· nssa
· stub
default-route-advertise (OSPF view)
Use default-route-advertise to redistribute a default route into the OSPF 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 ] * | summary cost cost ]
undo default-route-advertise
Default
No default route is redistributed into the OSPF routing domain.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
always: Generates a default route in a Type-5 LSA into the OSPF routing domain regardless of whether or not there is a default route in the routing table. If this keyword is not specified, the router generates a default route in a Type-5 LSA into the OSPF routing domain only when an active default route that does not belong to the current OSPF process exists in the IP routing table.
permit-calculate-other: Enables OSPF to calculate default routes received from other routers. Without this keyword, OSPF does not calculate default routes from other routers. If the router does not generate any default route in a Type-5 LSA into the OSPF 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. If no cost is specified, the default cost specified by the default cost command applies.
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 distributes a default route in a Type-5 LSA into the OSPF routing domain, and the routing policy modifies some values in the Type-5 LSA. If the always keyword is specified at the same time, the command can distribute a default route in a Type-5 LSA into the OSPF 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 Type-5 LSA.
type type: Specifies a type for the Type-5 LSA: 1 or 2. If no type is specified, the default type for the Type-5 LSA specified by the default type command applies.
summary: Advertises the specified default route in a Type-3 LSA. This keyword is available only for VPNs.
Usage guidelines
This command redistributes a default route in a Type-5 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.
The default-route-advertise summary cost command is applicable only to VPNs. It enables a PE router to redistribute a default external route in a Type-3 LSA to CE routers.
Examples
# Generate a default route into the OSPF routing domain, regardless of whether the default route exists in the local routing table.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] default-route-advertise always
· default
· import-route
description (OSPF/OSPF area view)
Use description to configure a description for an OSPF process or area.
Use undo description to restore the default.
Syntax
description description
undo description
Default
No description is configured for an OSPF process or area.
Views
OSPF view, OSPF area view
Predefined user roles
network-admin
mdc-admin
Parameters
description: Configures a description for the OSPF process in OSPF view, or for the OSPF area in OSPF area view. The description argument specifies a string of 1 to 80 characters.
Usage guidelines
The description specified by this command is used to identify an OSPF process or area.
Examples
# Describe OSPF process 100 as abc.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] description abc
# Describe OSPF area 0 as bone area.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 0
[Sysname-ospf-100-area-0.0.0.0] description bone area
display ospf abr-asbr
Use display ospf abr-asbr to display routes to the ABR or ASBR.
Syntax
display ospf [ process-id ] abr-asbr
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
Usage guidelines
If no process ID is specified, this command displays routes to the ABR/ASBR for all OSPF processes.
If you use this command on routers in a stub area, the commands displays no ASBR information.
Examples
# Display information about routes to the ABR or ASBR.
<Sysname> display ospf abr-asbr
OSPF Process 1 with Router ID 192.168.1.2
Routing Table to ABR and ASBR
Type Destination Area Cost Nexthop RtType
Inter 3.3.3.3 0.0.0.0 3124 10.1.1.2 ASBR
Intra 2.2.2.2 0.0.0.0 1562 10.1.1.2 ABR
Table 1 Command output
Field |
Description |
Type |
Type of the route to the ABR or ASBR: · Intra—Intra-area route. · Inter—Inter-area route. |
Destination |
Router ID of an ABR/ASBR. |
Area |
ID of the area of the next hop. |
Cost |
Cost from the router to the ABR/ASBR. |
Nexthop |
Next hop address. |
RtType |
Router type: ABR or ASBR. |
display ospf asbr-summary
Use display ospf asbr-summary to display information about the redistributed routes that are summarized.
Syntax
display ospf [ process-id ] asbr-summary [ ip-address { mask | mask-length } ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
ip-address: Specifies an IP address in dotted decimal notation.
mask: Specifies the mask in dotted decimal notation.
mask-length: Specifies the mask length in the range of 0 to 32 bits.
Usage guidelines
If no OSPF process is specified, this command displays the summarized redistributed routes for all OSPF processes.
If no IP address is specified, this command displays all summarized redistributed routes.
Examples
# Display information about all summarized redistributed routes.
<Sysname> display ospf asbr-summary
OSPF Process 1 with Router ID 2.2.2.2
Summary Addresses
Total Summary Address Count: 1
Summary Address
Net : 30.1.0.0
Mask : 255.255.0.0
Tag : 20
Status : Advertise
Cost : 10 (Configured)
The Count of Route is : 2
Destination Net Mask Proto Process Type Metric
30.1.2.0 255.255.255.0 OSPF 2 2 1
30.1.1.0 255.255.255.0 OSPF 2 2 1
Table 2 Command output
Field |
Description |
Total Summary Address Count |
Total number of summary routes. |
Net |
Address of the summary route. |
Mask |
Mask of the summary route address. |
Tag |
Tag of the summary route. |
Status |
Advertisement status of the summary route. |
Cost |
Cost to the summary network. |
The Count of Route |
Number of summarized routes. |
Destination |
Destination address of a summarized route. |
Net Mask |
Network mask of a summarized route. |
Proto |
Routing protocol. |
Process |
Process ID of the routing protocol. |
Type |
Type of a summarized route. |
Metric |
Metric of a summarized route. |
asbr-summary
display ospf brief
Use display ospf brief to display OSPF brief information.
Syntax
display ospf [ process-id ] brief
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
Usage guidelines
If no OSPF process is specified, this command displays brief information about all OSPF processes.
Examples
# Display OSPF brief information.
<Sysname> display ospf brief
OSPF Process 1 with Router ID 192.168.1.2
OSPF Protocol Information
RouterID: 192.168.1.2 Router Type: NSSA
Route Tag: 0
Multi-VPN-Instance is not enabled
SPF-schedule-interval: 5 50 200
LSA generation interval: 5
LSA arrival interval: 1000
Transmit pacing: Interval: 20 Count: 3
Default ASE parameters: Metric: 1 Tag: 1 Type: 2
Route Preference: 10
ASE Route Preference: 150
SPF Computation Count: 22
RFC 1583 Compatible
Graceful restart interval: 120
This process is currently bound to MIB
Area Count: 1 Nssa Area Count: 1
ExChange/Loading Neighbors: 0
SNMP trap rate limit interval: 2 Count: 300
Area: 0.0.0.1 (MPLS TE not enabled)
Authtype: None Area flag: NSSA
7/5 translator state: Disabled
7/5 translate stability timer interval: 0
SPF Scheduled Count: 5
ExChange/Loading Neighbors: 0
Interface: 192.168.1.2 (GigabitEthernet3/0/1)
Cost: 1 State: DR Type: Broadcast MTU: 1500
Priority: 1
Designated Router: 192.168.1.2
Backup Designated Router: 192.168.1.1
Timers: Hello 10 , Dead 40 , Poll 40 , Retransmit 5 , Transmit Delay 1
FRR backup: enable
Table 3 Command output
Field |
Description |
OSPF Process 1 with Router ID 192.168.1.2 |
OSPF process ID and OSPF router ID. |
RouterID |
Router ID. |
Router Type |
Router type: · ABR. · ASBR. · NSSA. · Null. |
Route Tag |
Tag of redistributed routes. |
Multi-VPN-Instance is not enabled |
The OSPF process does not support multi-VPN-instance. |
Applications Supported |
MPLS Traffic-Engineering means MPLS TE is supported. |
SPF-schedule-interval |
Interval for SPF calculations. |
LSA generation interval |
LSA generation interval. |
LSA arrival interval |
LSA arrival interval. |
Transmit pacing |
LSU packet transmit rate of the interface: · Interval—LSU transmit interval of the interface. · Count—Maximum number of LSU packets sent each time. |
Default ASE Parameter |
Default ASE Parameters: metric, tag, route type. |
Route Preference |
Internal route preference. |
ASE Route Preference |
External route preference. |
SPF Computation count |
SPF computation count of the OSPF process. |
RFC1583 Compatible |
Compatible with RFC 1583. |
Area Count |
Area number of the current process. |
Nssa Area Count |
NSSA area number of the current process. |
SNMP trap rate limit interval |
SNMP trap sending interval. |
Count |
Number of sent SNMP traps. |
7/5 translator state |
State of the translator that translates Type-7 LSAs to Type-5 LSAs. The value can be one of the following: · Enabled—The translator is specified through commands. · Elected—The translator is designated through election. · Disabled—The device is not a translator that translates Type-7 LSAs to Type-5 LSAs. |
7/5 translate stability timer interval |
Stability interval for Type-7 LSA-to-Type-5 LSA translation. |
ExChange/Loading Neighbors |
Neighbors in ExChange/Loading state. |
Area |
Area ID in the IP address format. |
Authtype |
Authentication type of the area: · None—No authentication. · Simple—Simple authentication. · MD5—MD5 authentication. |
Area flag |
Type of the area: · Normal. · Stub. · StubNoSummary (totally stub area). · NSSA. · NSSANoSummary (totally NSSA area). |
SPF scheduled Count |
SPF calculation count in the OSPF area. |
Interface |
Interface in the area. |
Cost |
Interface cost. |
State |
Interface state. |
Type |
Interface network type. |
MTU |
Interface MTU. |
Priority |
Router priority. |
Timers |
OSPF timers: · Hello—Interval for sending hello packets. · Dead—Interval within which the neighbor is down. · Poll—Interval for sending hello packets. · Retransmit—Interval for retransmitting LSAs. |
FRR backup |
Indicates whether Loop Free Alternate (LFA) calculation is enabled on an interface. |
display ospf cumulative
Use display ospf cumulative to display OSPF statistics.
Syntax
display ospf [ process-id ] cumulative
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
Usage guidelines
If no process is specified, this command displays statistics for all OSPF processes.
Examples
# Display OSPF statistics.
<Sysname> display ospf cumulative
OSPF Process 1 with Router ID 2.2.2.2
Cumulations
IO Statistics
Type Input Output
Hello 61 122
DB Description 2 3
Link-State Req 1 1
Link-State Update 3 3
Link-State Ack 3 2
LSAs originated by this router
Router: 4
Network: 0
Sum-Net: 0
Sum-Asbr: 0
External: 0
NSSA: 0
Opq-Link: 0
Opq-Area: 0
Opq-As: 0
LSAs Originated: 4 LSAs Received: 7
Routing Table:
Intra Area: 2 Inter Area: 3 ASE/NSSA: 0
Field |
Description |
IO statistics |
Statistics about input/output packets and LSAs. |
Type |
OSPF packet type. |
Input |
Packets received. |
Output |
Packets sent. |
Hello |
Hell packet. |
DB Description |
Database Description packet. |
Link-State Req |
Link-State Request packet. |
Link-State Update |
Link-State Update packet. |
Link-State Ack |
Link-State Acknowledge packet. |
LSAs originated by this router |
LSAs originated by this router. |
Router |
Number of Type-1 LSAs originated. |
Network |
Number of Type-2 LSAs originated. |
Sum-Net |
Number of Type-3 LSAs originated. |
Sum-Asbr |
Number of Type-4 LSAs originated. |
External |
Number of Type-5 LSAs originated. |
NSSA |
Number of Type-7 LSAs originated. |
Opq-Link |
Number of Type-9 LSAs originated. |
Opq-Area |
Number of Type-10 LSAs originated. |
Opq-As |
Number of Type-11 LSAs originated. |
LSA originated |
Number of LSAs originated. |
LSA Received |
Number of LSAs received. |
Routing Table |
Routing table information. |
Intra Area |
Intra-area route number. |
Inter Area |
Inter-area route number. |
ASE |
ASE route number. |
display ospf error
Use display ospf error to display OSPF error information.
Syntax
display ospf [ process-id ] error
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
Usage guidelines
If no process is specified, this command displays OSPF error information for all OSPF processes.
Examples
# Display OSPF error information.
<Sysname> display ospf error
OSPF Process 1 with Router ID 192.168.1.112
OSPF Packet Error Statistics
0 : OSPF Router ID confusion 0 : OSPF bad packet
0 : OSPF bad version 0 : OSPF bad checksum
0 : OSPF bad area ID 0 : OSPF drop on unnumbered interface
0 : OSPF bad virtual link 0 : OSPF bad authentication type
0 : OSPF bad authentication key 0 : OSPF packet too small
0 : OSPF Neighbor state low 0 : OSPF transmit error
0 : OSPF interface down 0 : OSPF unknown neighbor
0 : HELLO: Netmask mismatch 0 : HELLO: Hello timer mismatch
0 : HELLO: Dead timer mismatch 0 : HELLO: Extern option mismatch
0 : DD: MTU option mismatch 0 : DD: Unknown LSA type
0 : DD: Extern option mismatch 0 : LS ACK: Bad ack
0 : LS ACK: Unknown LSA type 0 : LS REQ: Empty request
0 : LS REQ: Bad request 0 : LS UPD: LSA checksum bad
0 : LS UPD: Unknown LSA type 0 : LS UPD: Received less recent LSA
Table 5 Command output
Field |
Description |
OSPF Router ID confusion |
Packets with duplicate route ID. |
OSPF bad packet |
Packets illegal. |
OSPF bad version |
Packets with wrong version. |
OSPF bad checksum |
Packets with wrong checksum. |
OSPF bad area ID |
Packets with invalid area ID. |
OSPF drop on unnumbered interface |
Packets dropped on the unnumbered interface. |
OSPF bad virtual link |
Packets on wrong virtual links. |
OSPF bad authentication type |
Packets with invalid authentication type. |
OSPF bad authentication key |
Packets with invalid authentication key. |
OSPF packet too small |
Packets too small in length. |
OSPF Neighbor state low |
Packets received in low neighbor state. |
OSPF transmit error |
Packets with error when being transmitted. |
OSPF interface down |
Shutdown times of the interface. |
OSPF unknown neighbor |
Packets received from unknown neighbors. |
HELLO: Netmask mismatch |
Hello packets with mismatched mask. |
HELLO: Hello timer mismatch |
Hello packets with mismatched hello timer. |
HELLO: Dead timer mismatch |
Hello packets with mismatched dead timer. |
HELLO: Extern option mismatch |
Hello packets with mismatched option field. |
HELLO: Neighbor unknown |
Hello packets received from unknown neighbors. |
DD: MTU option mismatch |
DD packets with mismatched MTU. |
DD: Unknown LSA type |
DD packets with unknown LSA type. |
DD: Extern option mismatch |
DD packets with mismatched option field. |
LS ACK: Bad ack |
Bad LSAck packets for LSU packets. |
LS ACK: Unknown LSA type |
LSAck packets with unknown LSA type. |
LS REQ: Empty request |
LSR packets with no request information. |
LS REQ: Bad request |
Bad LSR packets. |
LS UPD: LSA checksum bad |
LSU packets with wrong LSA checksum. |
LS UPD: Received less recent LSA |
LSU packets without latest LSA. |
LS UPD: Unknown LSA type |
LSU packets with unknown LSA type. |
display ospf graceful-restart
Use display ospf graceful-restart to display GR information for an OSPF process.
Syntax
display ospf [ process-id ] graceful-restart [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
verbose: Displays detailed GR information.
Usage guidelines
If no process ID is specified, this command displays GR information for all processes.
Examples
# Display detailed GR information.
<Sysname> display ospf graceful-restart verbose
OSPF Process 1 with Router ID 1.1.1.1
Graceful Restart information
Graceful Restart capability : Enable(IETF)
Graceful Restart support : Planned and un-planned,Partial
Helper capability : Enable(IETF)
Helper support : Planned and un-planned(IETF),Strict LSA check
Current GR state : Normal
Graceful Restart period : 40 seconds
Number of neighbors under Helper: 0
Number of restarting neighbors : 0
Last Restarter exit reason : None
Last Helper exit reason : None
Area: 0.0.0.0
Authtype: None Area flag: Normal
Area up Interface count: 2
Interface: 40.4.0.1 (Vlan-interface40)
Restarter state: Normal State: P-2-P Type: PTP
Neighbor count of this interface: 1
Neighbor IP address GR state Last Helper exit reason
3.3.3.3 40.4.0.3 Normal None
Virtual-link Neighbor-ID -> 4.4.4.4, Neighbor-State: Full
Restarter state: Normal
Interface: 20.2.0.1 (Vlink)
Transit Area:0.0.0.1
Neighbor IP address GR state Last Helper exit reason
4.4.4.4 20.2.0.4 Normal Reset neighbor
Table 6 Command output
Field |
Description |
OSPF Process 1 with Router ID 1.1.1.1 Graceful Restart information |
GR information for OSPF process 1 with router ID 1.1.1.1. |
Graceful Restart capability |
Indicates whether GR is enabled: · Enable(IETF)—IETF GR is enabled. · Enable(nonstandard)—Non-IETF GR is enabled. · Disable—GR is disabled. |
Graceful Restart support |
GR modes that the process supports (the modes are 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 |
Helper capability that the process supports: · Enable (IETF)—Supports IETF GR Helper capability. · Enable (Nonstandard)—Supports non IETF GR Helper capability. · Enable (IETF and nonstandard)—Supports both IETF GR Helper capability and non IETF GR Helper capability. · Disable—Does not support GR Helper capability. |
Helper support |
Displays policies that the Helper supports (the policies are displayed only when Helper is enabled): · Strict lsa check—The Helper supports strict LSA checking. · Planned and un-planned—The Helper supports planned and unplanned GR. · Planned only—The Helper supports only planned GR. |
Current GR state |
GR state: · Normal—Normal state. · Under GR—GR is in process. · Under Helper—The process is acting as Helper. |
Area |
Area ID in IP address format. |
Authtype |
Authentication type of the area: · None—No authentication. · Simple—Simple authentication. · MD5—MD5 authentication. |
Area flag |
Type of the area: · Normal. · Stub. · StubNoSummary (totally stub area). · NSSA. · NSSANoSummary (totally NSSA area). |
Area up Interface count |
Number of up interfaces in the area. |
Interface |
Interface in the area. |
Restarter state |
Restarter state on the interface. |
State |
Interface state. |
Type |
Interface network type. |
Neighbor count of this interface |
Neighbors of an interface. |
Neighbor |
Neighbor router ID. |
IP address |
Neighbor IP address. |
GR state |
Neighbor GR state: · Normal—Normal state. · Under GR—GR is in process. · Under Helper—The process is acting as GR Helper. |
Last Helper exit reason |
Reason that the Helper exited last time. |
Virtual-link Neighbor-ID |
Router ID of the virtual link's neighbor. |
Neighbor-State |
Neighbor state: Down, Init, 2-Way, ExStart, Exchange, Loading, and Full. |
Interface |
Output interface of the virtual link. |
display ospf interface
Use display ospf interface to display OSPF interface information.
Syntax
display ospf [ process-id ] interface [ interface-type interface-number | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
process-id: Specifies an OSPF process ID in the range of 1 to 65535.
interface-type interface-number: Specifies an interface by its type and number.
verbose: Displays the OSPF information for all interfaces.
Usage guidelines
If no OSPF process is specified, this command displays the OSPF interface information for all OSPF processes.
If you do not provide the interface or the verbose keyword, this command displays OSPF brief information for all interfaces.
Examples
# Display all OSPF interface brief information.
<Sysname> display ospf interface
OSPF Process 1 with Router ID 192.168.1.1
Interfaces
Area: 0.0.0.0
IP Address Type State Cost Pri DR BDR
192.168.1.1 PTP P-2-P 1562 1 0.0.0.0 0.0.0.0
Area: 0.0.0.1
IP Address Type State Cost Pri DR BDR
172.16.0.1 Broadcast DR 1 1 172.16.0.1 0.0.0.0
Table 7 Command output
Field |
Description |
Area |
Area ID of the interface. |
IP address |
Interface IP address (regardless of whether TE is enabled or not). |
Type |
Interface network type: PTP, PTMP, Broadcast, or NBMA. |
State |
Interface state: · DOWN—No protocol traffic can be sent or received on the interface. · Waiting—The interface starts sending and receiving Hello packets and 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 DROther router on the attached network. |
Cost |
Interface cost. |
Pri |
Router priority. |
DR |
DR on the interface's network segment. |
BDR |
BDR on the interface's network segment. |
# Display detailed information about VLAN-interface 7.
<Sysname> display ospf interface Vlan-interface 7
OSPF Process 1 with Router ID 192.168.1.1
Interfaces
Interface: 172.16.0.1 (Vlan-interface7)
Cost: 1 State: DR Type: Broadcast MTU: 1500
Priority: 1
Designated Router: 172.16.0.1
Backup Designated Router: 0.0.0.0
Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit Delay 1
FRR backup: enable
Table 8 Command output
Field |
Description |
Interface |
Information about the interface, such as the IP address. |
Timers |
OSPF timers: hello, dead, poll, retransmit, and transmit delay. |
FRR backup |
Indicates whether LFA calculation is enabled on an interface. |
display ospf lsdb
Use display ospf lsdb to display OSPF LSDB information.
Syntax
display ospf [ process-id ] lsdb [ brief | [ { asbr | ase | network | nssa | opaque-area | opaque-as | opaque-link | router | summary } [ link-state-id ] ] [ originate-router advertising-router-id | self-originate ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
brief: Displays brief LSDB information.
asbr: Displays Type-4 LSA (ASBR Summary LSA) information in the LSDB.
ase: Displays Type-5 LSA (AS External LSA) information in the LSDB.
network: Displays Type-2 LSA (Network LSA) information in the LSDB.
nssa: Displays Type-7 LSA (NSSA External LSA) information in the LSDB.
opaque-area: Displays Type-10 LSA (Opaque-area LSA) information in the LSDB.
opaque-as: Displays Type-11 LSA (Opaque-AS LSA) information in the LSDB.
opaque-link: Displays Type-9 LSA (Opaque-link LSA) information in the LSDB.
router: Displays Type-1 LSA (Router LSA) information in the LSDB.
summary: Displays Type-3 LSA (Network Summary LSA) information in the LSDB.
link-state-id: Specifies a Link state ID, in the IP address format.
originate-router advertising-router-id: Displays information about LSAs originated by the specified router.
self-originate: Displays information about self-originated LSAs.
Usage guidelines
If no OSPF process is specified, this command displays LSDB information for all OSPF processes.
Examples
# Display OSPF LSDB information.
<Sysname> display ospf lsdb
OSPF Process 1 with Router ID 192.168.0.1
Link State Database
Area: 0.0.0.0
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 192.168.0.2 192.168.0.2 474 36 80000004 0
Router 192.168.0.1 192.168.0.1 21 36 80000009 0
Network 192.168.0.1 192.168.0.1 321 32 80000003 0
Sum-Net 192.168.1.0 192.168.0.1 321 28 80000002 1
Sum-Net 192.168.2.0 192.168.0.2 474 28 80000002 1
Area: 0.0.0.1
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 192.168.0.1 192.168.0.1 21 36 80000005 0
Sum-Net 192.168.2.0 192.168.0.1 321 28 80000002 2
Sum-Net 192.168.0.0 192.168.0.1 321 28 80000002 1
Type 9 Opaque (Link-Local Scope) Database
Flags: * -Vlink interface LSA
Type LinkState ID AdvRouter Age Len Sequence Interfaces
*Opq-Link 3.0.0.0 7.2.2.1 8 14 80000001 10.1.1.2
*Opq-Link 3.0.0.0 7.2.2.2 8 14 80000001 20.1.1.2
Table 9 Command output
Field |
Description |
Area |
LSDB information of the area. |
Type |
LSA type (see Table 4). |
LinkState ID |
Link state ID. |
AdvRouter |
Advertising router. |
Age |
Age of the LSA. |
Len |
Length of the LSA. |
Sequence |
Sequence number of the LSA. |
Metric |
Cost of the LSA. |
*Opq-Link |
Opaque LSA generated by a virtual link. |
# Display Type-2 LSA (Network LSA) information in the LSDB.
<Sysname> display ospf 1 lsdb network
OSPF Process 1 with Router ID 192.168.1.1
Area: 0.0.0.0
Link State Database
Type : Network
LS ID : 192.168.0.2
Adv Rtr : 192.168.2.1
LS Age : 922
Len : 32
Options : E
Seq# : 80000003
Checksum : 0x8d1b
Net Mask : 255.255.255.0
Attached Router 192.168.1.1
Attached Router 192.168.2.1
Area: 0.0.0.1
Link State Database
Type : Network
LS ID : 192.168.1.2
Adv Rtr : 192.168.1.2
LS Age : 782
Len : 32
Options : NP
Seq# : 80000003
Checksum : 0x2a77
Net Mask : 255.255.255.0
Attached Router 192.168.1.1
Attached Router 192.168.1.2
Table 10 Command output
Field |
Description |
Type |
LSA type. |
LS ID |
DR IP address. |
Adv Rtr |
Router that advertised the LSA. |
LS Age |
LSA age time. |
Len |
LSA length. |
Options |
LSA options: · O—Opaque LSA advertisement capability. · E—AS External LSA reception capability. · EA—External extended LSA reception capability. · DC—On-demand link support. · N—NSSA external LSA support. · P—Capability of an NSSA ABR to translate Type-7 LSAs into Type-5 LSAs. |
Seq# |
LSA sequence number. |
Checksum |
LSA checksum. |
Net Mask |
Network mask. |
Attached Router |
ID of the router that established adjacency with the DR, and ID of the DR itself. |
display ospf peer
Use display ospf peer to display information about OSPF neighbors.
Syntax
display ospf [ process-id ] peer [ verbose ] [ 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 OSPF process by ID in the range of 1 to 65535.
verbose: Displays detailed neighbor information.
interface-type interface-number: Specifies an interface by its type and number.
neighbor-id: Specifies a neighbor router ID.
Usage guidelines
If no OSPF process is specified, this command displays OSPF neighbor information for all OSPF processes.
If the verbose keyword is not specified, this command displays brief OSPF neighbor information.
If no interface is specified, this command displays the neighbor information for all interfaces.
If no neighbor ID is specified, this command displays all neighbor information.
Examples
# Display detailed OSPF neighbor information.
<Sysname> display ospf peer verbose
OSPF Process 1 with Router ID 1.1.1.1
Neighbors
Area 0.0.0.0 interface 1.1.1.1(GigabitEthernet3/0/1)'s neighbors
Router ID: 1.1.1.2 Address: 1.1.1.2 GR State: Normal
State: Full Mode: Nbr is Master Priority: 1
DR: 1.1.1.2 BDR: 1.1.1.1 MTU: 0
Options is 0x02 (-|-|-|-|-|-|E|-)
Dead timer due in 33 sec
Neighbor is up for 02:03:35
Authentication Sequence: [ 0 ]
Neighbor state change count: 6
Table 11 Command output
Field |
Description |
Area areaID interface IPAddress(InterfaceName)'s neighbors |
Neighbor information of the interface in the specified area: · areaID—Area to which the neighbor belongs. · IPAddress—Interface IP address. · InterfaceName—Interface name. |
Router ID |
Neighbor router ID. |
Address |
Neighbor router address. |
GR State |
GR state. |
State |
Neighbor state: · Down—Initial state of a neighbor conversation. · Init—The router has seen a Hello packet from the neighbor. However, the router has not established bidirectional communication with the neighbor (the router itself did not appear in the neighbor's hello packet). · Attempt— Available only in an NBMA network, Under this state, the OSPF router has not received any information from a neighbor for a period but can send Hello packets at a longer interval to keep neighbor relationship. · 2-Way—Communication between the two routers is bidirectional. The router itself appears in the neighbor's Hello packet. · Exstart—The goal of this state is to decide which router is the master, and to decide upon the initial Database Description (DD) sequence number. · Exchange—The router is sending DD packets to the neighbor, describing its entire link-state database. · Loading—The router sends LSRs packets to the neighbor, requesting more recent LSAs. · Full—The neighboring routers are fully adjacent. |
Mode |
Neighbor mode for LSDB synchronization. |
Priority |
Neighboring router priority. |
DR |
DR on the interface’s network segment. |
BDR |
BDR on the interface’s network segment. |
MTU |
Interface MTU. |
Options |
LSA options: · O—Opaque LSA advertisement capability. · E—AS External LSA reception capability. · EA—External extended LSA reception capability. · DC—On-demand link support. · N—NSSA external LSA support. · P—Capability of an NSSA ABR to translate Type-7 LSAs into Type-5 LSAs. |
Dead timer due in 33 sec |
This dead timer will expire in 33 seconds. |
Neighbor is up for 02:03:35 |
The neighbor has been up for 02:03:35. |
Authentication Sequence |
Authentication sequence number. |
Neighbor state change count |
Count of neighbor state changes. |
# Display brief OSPF neighbor information.
<Sysname> display ospf peer
OSPF Process 1 with Router ID 1.1.1.1
Neighbor Brief Information
Area: 0.0.0.0
Router ID Address Pri Dead-Time Interface State
1.1.1.2 1.1.1.2 1 40 GE3/0/1 Full/DR
Table 12 Command output
Field |
Description |
Area |
Neighbor area. |
Router ID |
Neighbor router ID. |
Address |
Neighbor interface address. |
Pri |
Neighboring router priority. |
Dead-Time |
Dead interval remained. |
Interface |
Interface connected to the neighbor. |
State |
Neighbor state: Down, Init, Attempt, 2-Way, Exstart, Exchange, Loading or Full. |
display ospf peer statistics
Use display ospf peer statistics to display OSPF neighbor statistics.
Syntax
display ospf [ process-id ] peer statistics
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
Usage guidelines
If no OSPF process is specified, this command displays OSPF neighbor statistics for all OSPF processes.
Examples
# Display OSPF neighbor statistics.
<Sysname> display ospf peer statistics
OSPF Process 1 with Router ID 10.3.1.1
Neighbor Statistics
Area ID Down Attempt Init 2-Way ExStart Exchange Loading Full Total
0.0.0.0 0 0 0 0 0 0 0 1 1
0.0.0.2 0 0 0 0 0 0 0 1 1
Total 0 0 0 0 0 0 0 2 2
Table 13 Command output
Field |
Description |
Area ID |
The state statistics information of all the routers in the area to which the router belongs is displayed. |
Down |
Number of neighboring routers in Down state in the same area. |
Attempt |
Number of neighboring routers in Attempt state in the same area. |
Init |
Number of neighboring routers in Init state in the same area. |
2-Way |
Number of neighboring routers in 2-Way state in the same area. |
ExStart |
Number of neighboring routers in ExStart state in the same area. |
Exchange |
Number of neighboring routers in Exchange state in the same area. |
Loading |
Number of neighboring routers in Loading state in the same area. |
Full |
Number of neighboring routers in Full state in the same area. |
Total |
Total number of neighbors under the same state: Down, Attempt, Init, 2-Way, ExStart, Exchange, Loading, or Full. |
display ospf request-queue
Use display ospf request-queue to display OSPF request queue information.
Syntax
display ospf [ process-id ] request-queue [ interface-type interface-number ] [ neighbor-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
interface-type interface-number: Specifies an interface by its type and number.
neighbor-id: Specifies a neighbor's router ID.
Usage guidelines
If no OSPF process is specified, this command displays the OSPF request queue information for all OSPF processes.
If no interface is specified, this command displays the OSPF request queue information for all interfaces.
If no neighbor is specified, this command displays the OSPF request queue information for all OSPF neighbors.
Examples
# Display OSPF request queue information.
<Sysname> display ospf request-queue
The Router's Neighbor is Router ID 2.2.2.2 Address 10.1.1.2
Interface 10.1.1.1 Area 0.0.0.0
Request list:
Type LinkState ID AdvRouter Sequence Age
Router 2.2.2.2 1.1.1.1 80000004 1
Network 192.168.0.1 1.1.1.1 80000003 1
Sum-Net 192.168.1.0 1.1.1.1 80000002 2
Table 14 Command output
Field |
Description |
The Router's Neighbor is Router ID |
Neighbor router ID. |
Address |
Neighbor interface IP address. |
Interface |
Local interface IP address. |
Area |
Area ID. |
Request list |
Request list information. |
Type |
LSA type. |
LinkState ID |
Link state ID. |
AdvRouter |
Advertising router. |
Sequence |
LSA sequence number. |
Age |
LSA age. |
display ospf retrans-queue
Use display ospf retrans-queue to display retransmission queue information.
Syntax
display ospf [ process-id ] retrans-queue [ interface-type interface-number ] [ neighbor-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
interface-type interface-number: Specifies an interface by its type and number.
neighbor-id: Specifies a neighbor's router ID.
Usage guidelines
If no OSPF process is specified, this command displays retransmission queue information for all OSPF processes.
If no interface is specified, this command displays retransmission queue information for all interfaces.
If no neighbor is specified, this command displays retransmission queue information for all neighbors.
Examples
# Display OSPF retransmission queue information.
<Sysname> display ospf retrans-queue
The Router's Neighbor is Router ID 2.2.2.2 Address 10.1.1.2
Interface 10.1.1.1 Area 0.0.0.0
Retransmit list:
Type LinkState ID AdvRouter Sequence Age
Router 2.2.2.2 2.2.2.2 80000004 1
Network 12.18.0.1 2.2.2.2 80000003 1
Sum-Net 12.18.1.0 2.2.2.2 80000002 2
Table 15 Command output
Field |
Description |
The Router's Neighbor is Router ID |
Neighbor router ID. |
Address |
Neighbor interface IP address. |
Interface |
Interface address of the router. |
Area |
Area ID. |
Retrans List |
Retransmission list. |
Type |
LSA type. |
LinkState ID |
Link state ID. |
AdvRouter |
Advertising router. |
Sequence |
LSA sequence number. |
Age |
LSA age. |
display ospf routing
Use display ospf routing to display OSPF routing information.
Syntax
display ospf [ process-id ] routing [ ip-address { mask | mask-length } ] [ interface interface-type interface-number ] [ nexthop nexthop-address ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
ip-address: Specifies a destination IP address.
mask: Specifies the mask in dotted decimal notation.
mask-length: Specifies mask length in the range of 0 to 32 bits.
interface interface-type interface-number: Displays routes passing the specified output interface.
nexthop nexthop-address: Displays routes passing the specified next hop.
verbose: Displays detailed OSPF routing information.
Usage guidelines
If no OSPF process is specified, this command displays the routing information for all OSPF processes.
If no interface is specified, this command displays OSPF routing information for all interfaces.
If no next hop is specified, this command displays all OSPF routing information.
Examples
# Display OSPF routing information.
<Sysname> display ospf routing
OSPF Process 1 with Router ID 192.168.1.2
Routing Tables
Routing for Network
Destination Cost Type NextHop AdvRouter Area
192.168.1.0/24 1562 Stub 192.168.1.2 192.168.1.2 0.0.0.0
172.16.0.0/16 1563 Inter 192.168.1.1 192.168.1.1 0.0.0.0
Total Nets: 2
Intra Area: 1 Inter Area: 1 ASE: 0 NSSA: 0
Table 16 Command output
Field |
Description |
Destination |
Destination network. |
Cost |
Cost to destination. |
Type |
Route type: intra-area, transit, stub, inter-area, Type-1 external, Type-2 external. |
NextHop |
Next hop address. |
AdvRouter |
Advertising router. |
Area |
Area ID. |
Total Nets |
Total networks. |
Intra Area |
Total intra-area routes. |
Inter Area |
Total inter-area routes. |
ASE |
Total ASE routes. |
NSSA |
Total NSSA routes. |
# Display detailed OSPF routing information.
<Sysname> display ospf routing verbose
OSPF Process 2 with Router ID 192.168.1.112
Routing Tables
Routing for Network
Destination: 192.168.1.0/24
Cost: 1562 Type: Stub
AdvRouter: 192.168.1.2 Area: 0.0.0.0
SubProtoID: 0x1 Preference: 10
NextHop: 192.168.1.2 BkNextHop: N/A
NetworkType: Broadcast BkNetworkType: N/A
Destination: 172.16.0.0/16
Cost: 1563 Type: Inter
AdvRouter: 192.168.1.1 Area: 0.0.0.0
SubProtoID: 0x1 Preference: 10
NextHop: 192.168.1.1 BkNextHop: N/A
NetworkType: Broadcast BkNetworkType: N/A
Total Nets: 2
Intra Area: 2 Inter Area: 0 ASE: 0 NSSA: 0
Table 17 Command output
Field |
Description |
SubProtoID |
Sub protocol ID. |
Preference |
OSPF preference. |
NbrId |
Neighbor router ID. |
NextHop |
Primary next hop IP address. |
BkNextHop |
Backup next hop IP address. |
NetworkType |
Type of the network to which the primary next hop belongs. |
BkNetworkType |
Type of the network to which the backup next hop belongs. |
Preference |
OSPF route preference. |
display ospf vlink
Use display ospf vlink to display OSPF virtual link information.
Syntax
display ospf [ process-id ] vlink
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
Usage guidelines
If no OSPF process is specified, this command displays the OSPF virtual link information for all OSPF processes.
Examples
# Display OSPF virtual link information.
<Sysname> display ospf vlink
OSPF Process 1 with Router ID 3.3.3.3
Virtual Links
Virtual-link Neighbor-ID -> 2.2.2.2, Neighbor-State: Full
Interface: 10.1.2.1 (GigabitEthernet3/0/1)
Cost: 1562 State: P-2-P Type: Virtual
Transit Area: 0.0.0.1
Timers: Hello 10 , Dead 40 , Retransmit 5 , Transmit Delay 1
Table 18 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, 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. |
Timers |
Values of timers: hello, dead, retransmit, and interface transmission delay. |
display router id
Use display router id to display the global router ID.
Syntax
display router id
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Examples
# Display the global router ID.
<Sysname> display router id
Configured router ID is 1.1.1.1
enable link-local-signaling
Use enable link-local-signaling to enable the OSPF link-local signaling (LLS) capability.
Use undo enable link-local-signaling to disable the OSPF LLS capability.
Syntax
enable link-local-signaling
undo enable link-local-signaling
Default
OSPF link-local signaling capability is disabled.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Examples
# Enable link-local signaling for OSPF process 1.
<Sysname> system-view
[Sysname] ospf 1
[Sysname-ospf-1] enable link-local-signaling
enable out-of-band-resynchronization
Use enable out-of-band-resynchronization to enable the OSPF out-of-band resynchronization (OOB-Resynch) capability.
Use undo enable out-of-band-resynchronization to disable the OSPF out-of-band resynchronization capability.
Syntax
enable out-of-band-resynchronization
undo enable out-of-band-resynchronization
Default
The OSPF out-of-band resynchronization capability is disabled.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
Before you configure this command, enable the link-local signaling capability.
Examples
# Enable the out-of-band resynchronization capability for OSPF process 1.
<Sysname> system-view
[Sysname] ospf 1
[Sysname-ospf-1] enable link-local-signaling
[Sysname-ospf-1] enable out-of-band-resynchronization
Related commands
enable link-local-signaling
fast-reroute (OSPF view)
Use fast-reroute to configure OSPF FRR.
Use undo fast-reroute to restore the default.
Syntax
fast-reroute { lfa [ abr-only ] | route-policy route-policy-name }
undo fast-reroute
Default
OSPF FRR is disabled.
Views
OSPF view
Predefined user roles
network-admin
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 OSPF FRR and BFD for OSPF at the same time. Otherwise, OSPF FRR might fail to work.
Do not use the fast-reroute lfa command together with the command vlink-peer, sham-link, enable traffic-adjustment, or enable traffic-adjustment advertise in MPLS Command Reference.
Examples
# Enable FRR to calculate a backup next hop for all routes by using LFA algorithm in OSPF process 1.
<Sysname> system-view
[Sysname] ospf 1
[Sysname-ospf-1] fast-reroute lfa
filter (OSPF area view)
|
NOTE: This command is available only on an ABR. |
Use filter to configure OSPF to filter inbound/outbound Type-3 LSAs on an ABR.
Use undo filter to disable Type-3 LSA filtering.
Syntax
filter { acl-number | prefix-list prefix-list-name | route-policy route-policy-name } { export | import }
undo filter { export | import }
Default
Type-3 LSAs are not filtered.
Views
OSPF area view
Predefined user roles
network-admin
mdc-admin
Parameters
acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter inbound/outbound Type-3 LSAs.
prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter inbound/outbound Type-3 LSAs.
route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter inbound/outbound Type-3 LSAs.
export: Filters Type-3 LSAs advertised to other areas.
import: Filters Type-3 LSAs advertised into the local area.
Examples
# Use IP prefix list my-prefix-list to filter inbound Type-3 LSAs, and use ACL 2000 to filter outbound Type-3 LSAs in OSPF Area 1.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 1
[Sysname-ospf-100-area-0.0.0.1] filter prefix-list my-prefix-list import
[Sysname-ospf-100-area-0.0.0.1] filter 2000 export
filter-policy export (OSPF view)
Use filter-policy export to configure OSPF to filter redistributed routes.
Use undo filter-policy export to remove the configuration.
Syntax
filter-policy { 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
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter redistributed routes by destination address.
prefix-list-name: Specifies an IP 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 bgp, direct, isis, ospf, rip, 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 rip, ospf or isis.
Usage guidelines
To reference an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL using one of the following methods:
· To deny/permit a route with the specified destination, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard command.
· To deny/permit a route with the specified destination and mask, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard command.
The source keyword specifies the destination address of a route and the destination keyword specifies the subnet mask of the route. The specified subnet mask must be contiguous. Otherwise, the mask configuration does not take effect.
Examples
# Use ACL 2000 to filter redistributed routes.
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule deny source 192.168.10.0 0.0.0.255
[Sysname-acl-basic-2000] quit
[Sysname] ospf 100
[Sysname-ospf-100] filter-policy 2000 export
# Configure ACL 3000 to permit only route 113.0.0.0/16. Use ACL 3000 to filter redistributed routes.
<Sysname> system-view
[Sysname] acl number 3000
[Sysname-acl-adv-3000] rule 10 permit ip source 113.0.0.0 0 destination 255.255.0.0 0
[Sysname-acl-adv-3000] rule 100 deny ip
[Sysname-acl-adv-3000] quit
[Sysname] ospf 100
[Sysname-ospf-100] filter-policy 3000 export
Related commands
import-route
filter-policy import (OSPF view)
Use filter-policy import to configure OSPF to filter routes calculated using received LSAs.
Use undo filter-policy import to restore the default.
Syntax
filter-policy { acl-number [ gateway prefix-list-name ] | gateway prefix-list-name | prefix-list 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
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter inbound routes by destination.
gateway prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter inbound routes by next hop.
prefix-list prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter inbound 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 or in the specified routing policy, configure the ACL in one of the following ways:
· To deny/permit a route with the specified destination, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard command.
· To deny/permit a route with the specified destination and mask, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard command.
The source keyword specifies the destination address of a route and the destination keyword specifies the subnet mask of the destination address. The specified subnet mask must be contiguous. Otherwise, the mask configuration does not take effect.
Examples
# Use ACL 2000 to filter inbound routes.
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule deny source 192.168.10.0 0.0.0.255
[Sysname-acl-basic-2000] quit
[Sysname] ospf 100
[Sysname-ospf-100] filter-policy 2000 import
# Configure ACL 3000 to permit only route 113.0.0.0/16. Use ACL 3000 to filter inbound routes.
<Sysname> system-view
[Sysname] acl number 3000
[Sysname-acl-adv-3000] rule 10 permit ip source 113.0.0.0 0 destination 255.255.0.0 0
[Sysname-acl-adv-3000] rule 100 deny ip
[Sysname-acl-adv-3000] quit
[Sysname] ospf 100
[Sysname-ospf-100] filter-policy 3000 import
graceful-restart (OSPF view)
Use graceful-restart to enable OSPF GR.
Use undo graceful-restart to disable OSPF GR.
Syntax
graceful-restart [ ietf | nonstandard ] [ global | planned-only ] *
undo graceful-restart
Default
OSPF GR is disabled.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
ietf: Enables IETF GR.
nonstandard: Enables non-IETF GR.
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). Without this keyword, this command enables partial GR. In partial GR mode, a GR process can be completed if a GR Helper exists.
planned-only: Enables planned only GR. Without this keyword, this command enables both planned GR and unplanned GR.
Usage guidelines
GR includes planned GR and unplanned GR:
· Planned GR—Manually restart OSPF or perform an active/standby switchover. Before OSPF restart or active/standby switchover, the GR Restarter sends Grace-LSAs to GR Helpers.
· Non-planned GR—OSPF restarts or an active/standby switchover occurs because of device failure. Before OSPF restart or active/standby switchover, the GR Restarter does not send Grace-LSAs to GR Helpers.
Before enabling IETF GR for OSPF, enable Opaque LSA advertisement and reception with the opaque-capability enable command.
Before enabling non-IETF GR for OSPF, enable OSPF LLS with the enable link-local-signaling command and OOB-Resynch with the enable out-of-band-resynchronization command.
If you do not provide the nonstandard or ietf keyword, the command enables non-IETF GR for OSPF.
Examples
# Enable IETF GR for OSPF process 1.
<Sysname> system-view
[Sysname] ospf 1
[Sysname-ospf-1] opaque-capability enable
[Sysname-ospf-1] graceful-restart ietf
# Enable non-IETF GR for OSPF process 1.
<Sysname> system-view
[Sysname] ospf 1
[Sysname-ospf-1] enable link-local-signaling
[Sysname-ospf-1] enable out-of-band-resynchronization
[Sysname-ospf-1] graceful-restart nonstandard
Related commands
· enable link-local-signaling
· enable out-of-band-resynchronization
· opaque-capability enable
graceful-restart helper enable
Use graceful-restart helper enable to enable OSPF GR Helper capability.
Use undo graceful-restart helper enable to disable OSPF GR Helper capability.
Syntax
graceful-restart helper enable [ planned-only ]
undo graceful-restart helper enable
Default
OSPF GR Helper capability is enabled.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
planned-only: Enable only planned GR for the GR Helper. Without this keyword, this command enables both planned GR and unplanned GR for the GR Helper.
Usage guidelines
The planned-only keyword is available only for the IETF GR Helper.
Examples
# Enable GR Helper capability for OSPF process 1.
<Sysname> system-view
[Sysname] ospf 1
[Sysname-ospf-1] graceful-restart helper enable
graceful-restart helper strict-lsa-checking
Use graceful-restart helper strict-lsa-checking to enable strict LSA checking capability for GR Helper.
Use undo graceful-restart helper strict-lsa-checking to disable strict LSA checking capability for GR Helper.
Syntax
graceful-restart helper strict-lsa-checking
undo graceful-restart helper strict-lsa-checking
Default
Strict LSA checking capability for GR Helper is disabled.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
When an LSA change on the GR Helper is detected, the GR Helper device exits the GR Helper mode.
Examples
# Enable strict LSA checking capability for GR Helper in OSPF process 1.
<Sysname> system-view
[Sysname] ospf 1
[Sysname-ospf-1] graceful-restart helper strict-lsa-checking
graceful-restart interval (OSPF view)
Use graceful-restart interval to configure the GR interval.
Use undo graceful-restart interval to restore the default GR interval.
Syntax
graceful-restart interval interval-value
undo graceful-restart interval
Default
The GR interval is 120 seconds.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
interval-value: Specifies the GR interval in the range of 40 to 1800 seconds.
Usage guidelines
The value of the GR restart interval cannot be smaller than the maximum OSPF neighbor dead time of all the OSPF interfaces. Otherwise, GR restart might fail.
Examples
# Configure the GR interval for OSPF process 1 as 100 seconds.
<Sysname> system-view
[Sysname] ospf 1
[Sysname-ospf-1] graceful-restart interval 100
Related commands
ospf timer dead
host-advertise
Use host-advertise to advertise a host route.
Use undo host-advertise to remove a host route.
Syntax
host-advertise ip-address cost
undo host-advertise ip-address
Default
No host route is advertised.
Views
OSPF area view
Predefined user roles
network-admin
mdc-admin
Parameters
ip-address: Specifies the IP address of a host.
cost: Specifies a cost for the route, in the range of 1 to 65535.
Examples
# Advertise host route 1.1.1.1 with a cost of 100.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 0
[Sysname-ospf-100-area-0.0.0.0] host-advertise 1.1.1.1 100
import-route (OSPF view)
Use import-route to redistribute AS-external routes from another routing protocol.
Use undo import-route to disable route redistribution from another routing protocol.
Syntax
import-route protocol [ process-id | all-processes | allow-ibgp ] [ cost cost | [ cost cost | route-policy route-policy-name | tag tag | type type ] *
undo import-route protocol [ process-id | all-processes ]
Default
OSPF does not redistribute AS-external routes from any other routing protocol.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
protocol: Redistributes routes from the specified protocol, which can be bgp, direct, isis, ospf, rip, or static.
process-id: Specifies an process by its ID in the range of 1 to 65535. The default is 1. It is available only when the protocol is rip, ospf, or isis.
all-processes: Redistributes routes from all the processes of the specified routing protocol. This keyword takes effect only when the protocol is rip, ospf, or isis.
allow-ibgp: Allows redistribution of IBGP routes. It is available only when the protocol is bgp.
cost cost: Specifies a route cost in the range of 0 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.
tag tag: Specifies a tag for marking external LSAs, in the range of 0 to 4294967295. The default is 1.
type type: Specifies a cost type, 1 or 2. The default is 2.
Usage guidelines
This command redistributes routes destined for other ASs from another protocol. AS external routes include the following types:
· Type-1 external route
· Type-2 external route
A Type-1 external route has high reliability. Its cost is comparable with the cost of OSPF internal routes. The cost from an OSPF 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. OSPF considers the cost from the ASBR to the destination of 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 external routes.
The import-route bgp command redistributes only EBGP routes. Because the import-route bgp allow-ibgp command redistributes both EBGP and IBGP routes and might cause routing loops, use it with caution.
Only active routes can be redistributed. To view information about active routes, use the display ip routing-table protocol command.
The undo import-route protocol all-processes command removes only the configuration made by the import-route protocol all-processes command, instead of the configuration made by the import-route protocol process-id command.
Examples
# Redistribute routes from RIP process 40 and specify the type, tag, and cost as 2, 33, and 50 for redistributed routes.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] import-route rip 40 type 2 tag 33 cost 50
default-route-advertise
ispf enable
Use ispf enable to enable OSPF incremental SPF (ISPF).
Use undo ispf enable to disable OSPF ISPF.
Syntax
ispf enable
undo ispf enable
Default
OSPF ISPF is enabled.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
Upon topology changes, ISPF recomputes only the affected part of the SPT, instead of the entire SPT.
Examples
# Enable ISPF for OSPF process 100.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] ispf enable
log-peer-change
Use log-peer-change to enable the logging of OSPF neighbor state changes.
Use undo log-peer-change to disable the logging of OSPF neighbor state changes.
Syntax
log-peer-change
undo log-peer-change
Default
The logging of OSPF neighbor state changes is enabled.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
After you enable this feature, the information about OSPF neighbor state changes will be output to the terminal.
Examples
# Disable the logging of neighbor state changes for OSPF process 100.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] undo log-peer-change
lsa-arrival-interval
Use lsa-arrival-interval to specify the LSA arrival interval.
Use undo lsa-arrival-interval to restore the default.
Syntax
lsa-arrival-interval interval
undo lsa-arrival-interval
Default
The LSA arrival interval is 1000 milliseconds.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
interval: Specifies the LSA arrival interval in the range of 0 to 60000 milliseconds.
Usage guidelines
If an LSA that has the same LSA type, LS ID, originating router ID as the previous LSA is received within the interval, OSPF discards the LSA. This feature helps protect resources from being over consumed due to frequent network changes.
The interval set with the lsa-arrival-interval command should be smaller or equal to the initial interval set with the lsa-generation-interval command.
Examples
# Set the LSA arrival interval to 200 milliseconds.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] lsa-arrival-interval 200
lsa-generation-interval
lsdb-overflow-interval
Use lsdb-overflow-interval to configure the interval that OSPF exits overflow state.
Use undo lsdb-overflow-interval to restore the default.
Syntax
lsdb-overflow-interval interval
undo lsdb-overflow-interval
Default
The OSPF exit overflow interval is 300 seconds.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
interval: Specifies the interval that OSPF exits overflow state, in the range of 0 to 2147483647 seconds.
Usage guidelines
When the number of LSAs in the LSDB exceeds the upper limit, the LSDB is in an overflow state. In this state, OSPF does not receive any external LSAs and deletes the external LSAs generated by itself to save system resources.
You can configure the interval that OSPF exits overflow state. An interval of 0 indicates that the timer is not started and OSPF does not exit overflow state.
Examples
# Configure the OSPF exit overflow interval as 10 seconds.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] lsdb-overflow-interval 10
lsa-generation-interval
Use lsa-generation-interval to configure the OSPF 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 LSA generation interval in the range of 1 to 60 seconds.
minimum-interval: Specifies the minimum LSA generation interval in the range of 10 to 60000 milliseconds. 0 indicates that the minimum interval can be any value.
incremental-interval: Specifies the 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] ospf 100
[Sysname-ospf-100] lsa-generation-interval 2 100 100
lsa-arrival-interval
lsdb-overflow-limit
Use lsdb-overflow-limit to specify the upper limit of external LSAs in the LSDB.
Use undo lsdb-overflow-limit to restore the default.
Syntax
lsdb-overflow-limit number
undo lsdb-overflow-limit
Default
The number of external LSAs is not limited.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
number: Specifies the upper limit of external LSAs in the LSDB, in the range of 1 to 1000000.
Examples
# Specify the upper limit of external LSAs as 400000.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] lsdb-overflow-limit 400000
maximum load-balancing (OSPF view)
Use maximum load-balancing to specify the maximum number of equal-cost multi-path (ECMP) routes for load balancing.
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
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
maximum: Specifies the maximum number of ECMP routes, in the range of 1 to 32. No ECMP load balancing is available when the number is set to 1.
Examples
# Specify the maximum number of ECMP routes as 2.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] maximum load-balancing 2
maximum-routes
Use maximum-routes to specify the maximum number of OSPF routes.
Use undo maximum-routes to restore the default.
Syntax
maximum-routes number
undo maximum-routes
Default
The maximum number of OSPF routes is 4294967295.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
number: Specifies the maximum number of OSPF routes, in the range of 0 to 4294967295.
Examples
# Specify the maximum number of OSPF routes as 500.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] maximum-routes 500
network (OSPF area view)
Use network to enable OSPF on the interface attached to the specified network in the area.
Use undo network to disable OSPF for the interface attached to the specified network in the area.
Syntax
network ip-address wildcard-mask
undo network ip-address wildcard-mask
Default
OSPF is not enabled for any interface.
Views
OSPF area view
Predefined user roles
network-admin
mdc-admin
View
OSPF area view
Parameters
ip-address: Specifies the IP address of a network.
wildcard-mask: Specifies the wildcard mask of the IP address. For example, the wildcard mask of mask 255.0.0.0 is 0.255.255.255.
Usage guidelines
This command enables OSPF on the interface attached to the specified network. The interface's primary IP address must be in the specified network. If only the interface's secondary IP address is in the network, the interface cannot run OSPF.
Examples
# Specify the interface whose primary IP address falls into 131.108.20.0/24 to run OSPF in Area 2.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 2
[Sysname-ospf-100-area-0.0.0.2] network 131.108.20.0 0.0.0.255
ospf
nssa
Use nssa to configure the current area as an NSSA area.
Use undo nssa to restore the default.
Syntax
nssa [ default-route-advertise | no-import-route | no-summary | translate-always | translator-stability-interval value ] *
undo nssa
Default
No area is configured as an NSSA area.
Views
OSPF area view
Predefined user roles
network-admin
mdc-admin
Parameters
default-route-advertise: Usable on an NSSA ABR or an ASBR only. If it is configured on an NSSA ABR, the ABR generates a default route in a Type-7 LSA into the NSSA area regardless of whether a default route is available in the routing table. If it is configured on an ASBR, the ASBR generates a default route in a Type-7 LSA only when the default route is available in the routing table.
no-import-route: Usable only on an NSSA ABR that is also the ASBR of the OSPF routing domain to disable redistributing routes in Type-7 LSAs into the NSSA area, making sure that correct external routes are redistributed.
no-summary: Usable only on an NSSA 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. Such an area is a totally NSSA area.
translate-always: Specifies the NSSA ABR as a translator to translate Type-7 LSAs to Type-5 LSAs.
translator-stability-interval value: Specifies the stability interval of the translator, during which the translator can maintain its translating capability after a device with a higher priority becomes the new translator. The value argument is the stability interval in the range of 0 to 900 seconds and defaults to 0 (which 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] ospf 100
[Sysname-ospf-100] area 1
[Sysname-ospf-100-area-0.0.0.1] nssa
default-cost
opaque-capability enable
Use opaque-capability enable to enable opaque LSA advertisement and reception.
Use undo opaque-capability to disable opaque LSA advertisement and reception.
Syntax
opaque-capability enable
undo opaque-capability
Default
The feature is enabled.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
After the opaque LSA advertisement and reception is enabled, OSPF can receive and advertise Type-9, Type-10, and Type-11 opaque LSAs.
Examples
# Disable opaque LSA advertisement and reception.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] undo opaque-capability
ospf
Use ospf to enable an OSPF process.
Use undo ospf to disable an OSPF process.
Syntax
ospf [ process-id | router-id router-id | vpn-instance vpn- instance-name ] *
undo ospf [ process-id ]
Default
No OSPF process is enabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
router-id router-id: Specifies an OSPF router ID in dotted decimal notation.
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 OSPF process runs on the public network.
Usage guidelines
You can enable multiple OSPF processes on a router and specify different router IDs for them.
Enable an OSPF process before performing other tasks.
Examples
# Enable OSPF process 100 and specify router ID 10.10.10.1.
<Sysname> system-view
[Sysname] ospf 100 router-id 10.10.10.1
[Sysname-ospf-100]
ospf authentication-mode
Use ospf authentication-mode to set the authentication mode and key ID on an interface.
Use undo ospf authentication-mode to remove specified configuration.
Syntax
For MD5/HMAC-MD5 authentication:
ospf authentication-mode { hmac-md5 | md5 } key-id { cipher cipher-string | plain plain-string }
undo ospf authentication-mode { hmac-md5 | md5 } key-id
For simple authentication:
ospf authentication-mode simple { cipher cipher-string | plain plain-string }
undo ospf authentication-mode simple
Default
No authentication is configured.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
hmac-md5: Enables HMAC-MD5 authentication.
md5: Enables MD5 authentication.
simple: Enables simple authentication.
key-id: Specifies a key by its ID in the range of 1 to 255.
cipher: Sets a ciphertext key.
cipher-string: Specifies a ciphertext key. For simple authentication, specify a case-sensitive key of 33 to 41 characters. For MD5/HMAC-MD5 authentication, specify a key of 33 to 53 characters.
plain: Sets a plaintext key.
plain-string: Specifies a plaintext key. For simple authentication, specify a case-sensitive key of 1 to 8 characters. For MD5/HMAC-MD5 authentication, specify a key of 1 to 16 characters.
Usage guidelines
Interfaces attached to the same network segment must have the same authentication password and authentication mode.
For secrecy, all keys, including keys configured in plain text, are saved in cipher text.
Examples
# Enable MD5 authentication for the network 131.119.0.0/16 in Area 1. Set the interface key ID to 15, and plaintext authentication password to 123456.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 1
[Sysname-ospf-100-area-0.0.0.1] network 131.119.0.0 0.0.255.255
[Sysname-ospf-100-area-0.0.0.1] authentication-mode md5
[Sysname-ospf-100-area-0.0.0.1] quit
[Sysname-ospf-100] quit
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf authentication-mode md5 15 plain 123456
# Enable simple authentication for the network 131.119.0.0/16 in Area 1. Set the plaintext authentication password to 123456.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 1
[Sysname-ospf-100-area-0.0.0.1] network 131.119.0.0 0.0.255.255
[Sysname-ospf-100-area-0.0.0.1] authentication-mode simple
[Sysname-ospf-100-area-0.0.0.1] quit
[Sysname-ospf-100] quit
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf authentication-mode simple plain 123456
authentication-mode
ospf bfd enable
Use ospf bfd enable to enable BFD on an OSPF interface.
Use undo ospf bfd enable to disable BFD on an OSPF interface.
Syntax
ospf bfd enable [ echo ]
undo ospf bfd enable
Default
BFD for OSPF is disabled.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
echo: Enables BFD single-hop echo detection. Without this keyword, this command enables BFD bidirectional control detection.
Usage guidelines
Do not use OSPF FRR and BFD for OSPF at the same time. Otherwise, OSPF FRR might fail to take effect.
Examples
# Enable BFD for OSPF on VLAN-interface 11.
<Sysname> system-view
[Sysname] ospf
[Sysname-ospf-1] area 0
[Sysname-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.255.255
[Sysname] interface vlan-interface 11
[Sysname-Vlan-interface11] ospf bfd enable
ospf cost
Use ospf cost to set an OSPF cost for an interface.
Use undo ospf cost to restore the default.
Syntax
ospf cost value
undo ospf cost
Default
An interface computes its OSPF cost according to the interface bandwidth.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
value: Specifies an OSPF cost in the range of 0 to 65535 for a loopback interface and in the range of 1 to 65535 for other interfaces.
Usage guidelines
The ospf cost command sets an OSPF cost for an interface. If you do not use this command, the interface automatically computes its OSPF cost.
Examples
# Set the OSPF cost on VLAN-interface 10 to 65.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf cost 65
ospf dr-priority
Use ospf dr-priority to set the router priority for DR/BDR election on an interface.
Use undo ospf dr-priority to restore the default value.
Syntax
ospf dr-priority priority
undo ospf dr-priority
Default
The router priority is 1.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
priority: Specify the router priority for the interface, in the range of 0 to 255.
Usage guidelines
The greater the value, the higher the priority for DR/BDR election. If a device has a priority of 0, it will not be elected as a DR or BDR.
Examples
# Set the router priority on VLAN-interface 10 to 8.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf dr-priority 8
ospf fast-reroute lfa-backup
Use ospf fast-reroute lfa-backup to enable LFA on the interface.
Use undo ospf fast-reroute lfa-backup to disable LFA on the interface.
Syntax
ospf fast-reroute lfa-backup
undo ospf fast-reroute lfa-backup
Default
LFA is enabled on the interface.
Predefined user roles
network-admin
mdc-admin
Usage guidelines
If you enable LFA on an interface, it can be selected as a backup interface. After you disable LFA on the interface, it cannot be selected as a backup.
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] undo ospf fast-reroute lfa-backup
ospf mib-binding
Use ospf mib-binding to bind an OSPF process to MIB operation for responding to SNMP requests.
Use undo ospf mib-binding to restore the default.
Syntax
ospf mib-binding process-id
undo ospf mib-binding
Default
MIB operation is bound to the OSPF process with the smallest process ID.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
Examples
# Bind MIB operation to OSPF process 100.
<Sysname> system-view
[Sysname] ospf mib-binding 100
ospf mtu-enable
Use ospf mtu-enable to enable an interface to add the interface MTU into DD packets.
Use undo ospf mtu-enable to restore the default.
Syntax
ospf mtu-enable
undo ospf mtu-enable
Default
The MTU in DD packets is 0.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
After a virtual link is established through a Virtual-Template or Tunnel, two devices on the link from different vendors might have different MTU values. To make them consistent, restore the interfaces' MTU to the default value 0.
After you configure this command, the interface checks whether the MTU in a received DD packet is greater than its own MTU. If yes, the interface discards the packet.
Examples
# Enable VLAN-interface 10 to add the interface MTU value into DD packets.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf mtu-enable
ospf network-type
Use ospf network-type to set the network type for an interface.
Use undo ospf network-type to restore the default network type for an interface.
Syntax
ospf network-type { broadcast | nbma | p2mp [ unicast ] | p2p }
undo ospf network-type
Default
The network type of an interface is broadcast.
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 OSPF packets.
p2p: Specifies the network type as P2P.
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, and 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.
If only two routers run OSPF on a network, you can configure the network type for the connected interfaces as P2P.
When the network type of an interface is P2MP unicast, all OSPF packets are unicast by the interface.
Examples
# Configure the OSPF network type for VLAN-interface 10 as NBMA.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf network-type nbma
ospf dr-priority
ospf timer dead
Use ospf timer dead to set the neighbor dead interval.
Use undo ospf timer dead to restore the default.
Syntax
ospf timer dead seconds
undo ospf timer dead
Default
The dead interval is 40 seconds for broadcast and P2P interfaces. The dead interval is 120 seconds for P2MP and NBMA interfaces.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
seconds: Specifies the dead interval in the range of 1 to 2147483647 seconds.
Usage guidelines
If an interface receives no hello packet from a neighbor within the dead interval, the interface considers the neighbor down. The dead interval on an interface is at least four times the hello interval. Routers attached to the same segment must have the same dead interval.
Examples
# Configure the dead interval for VLAN-interface 10 as 60 seconds.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf timer dead 60
ospf timer hello
ospf timer hello
Use ospf timer hello to set the hello interval on an interface.
Use undo ospf timer hello to restore the default.
Syntax
ospf timer hello seconds
undo ospf timer hello
Default
The hello interval is 10 seconds for P2P and broadcast interfaces, and is 30 seconds for P2MP and 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.
Usage guidelines
The shorter the hello interval, 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 on VLAN-interface as 20 seconds.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf timer hello 20
ospf timer dead
ospf timer poll
Use ospf timer poll to set the poll interval on an NBMA interface.
Use undo ospf timer poll to restore the default.
Syntax
ospf timer poll seconds
undo ospf timer poll
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 2147483647 seconds.
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 timer interval on VLAN-interface 10 to 130 seconds.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf timer poll 130
ospf timer hello
ospf timer retransmit
Use ospf timer retransmit to set the LSA retransmission interval on an interface.
Use undo ospf timer retransmit to restore the default.
Syntax
ospf timer retransmit interval
undo ospf timer retransmit
Default
The LSA retransmission interval is 5 seconds on an interface.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
interval: Specifies the LSA retransmission interval in the range of 1 to 3600 seconds.
Usage guidelines
After sending an LSA, an interface waits for an acknowledgement packet. If the interface receives no acknowledgement within the retransmission interval, it retransmits the LSA.
To avoid unnecessary retransmissions, set the retransmission interval as needed.
Examples
# Set the LSA retransmission interval to 8 seconds on VLAN-interface 10.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf timer retransmit 8
ospf trans-delay
Use ospf trans-delay to set the LSA transmission delay on an interface.
Use undo ospf trans-delay to restore the default.
Syntax
ospf trans-delay seconds
undo ospf trans-delay
Default
The LSA transmission delay is 1 second.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
seconds: Specifies the LSA transmission delay in the range of 1 to 3600 seconds.
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 LSA transmission delay to 3 seconds on VLAN-interface 10.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf trans-delay 3
peer
Use peer to specify a neighbor and a DR priority for the neighbor.
Use undo peer to remove the configuration.
Syntax
peer ip-address [ cost value | dr-priority dr-priority ]
undo peer ip-address
Default
No neighbor is specified.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
ip-address: Specifies a neighbor IP address.
cost value: Specifies the cost to reach the neighbor, in the range of 1 to 65535.
dr-priority dr-priority: Specifies the neighbor DR priority, in the range of 0 to 255. The default neighbor DR priority is 1.
Usage guidelines
On an X.25 or Frame Relay network, you can configure mappings to make the network fully meshed (any two routers have a direct link in between), so OSPF can handle DR/BDR election as it does on a broadcast network.
Routers on the network cannot find neighbors through broadcasting hello packets, so you must specify neighbors and neighbor DR priorities on the routers.
After startup, a router sends a hello packet to neighbors with DR priorities higher than 0. When the DR and BDR are elected, the DR will send hello packets to all neighbors for adjacency establishment.
The cost set with the peer command applies only to P2MP neighbors. If no cost is specified, the cost to the neighbor equals the local interface's cost.
A router uses the priority set with the peer command to determine whether to send a hello packet to the neighbor rather than for DR election. The DR priority set with the ospf dr-priority command is used for DR election.
Examples
# Specify the neighbor 1.1.1.1.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] peer 1.1.1.1
ospf dr-priority
preference
Use preference to set a preference for OSPF.
Use undo preference to restore the default.
Syntax
preference [ ase ] [ route-policy route-policy-name ] value
undo preference [ ase ]
Default
The preference is 10 for OSPF internal routes and 150 for OSPF external routes (or ASE routes).
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
ase: Sets a preference for OSPF external routes. Without this keyword, the command sets a preference for OSPF 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 the specified routes.
value: Specifies the preference value in the range of 1 to 255. The smaller the value, the higher the preference.
Usage guidelines
If multiple routing protocols find routes to the same destination, the router uses the route found by the protocol with the highest preference.
Examples
# Set a preference of 200 for OSPF external routes.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] preference ase 200
# Use a routing policy to set a preference.
<Sysname> system-view
[Sysname] ip prefix-list test index 10 permit 100.1.1.0 24
[Sysname] route-policy pre permit node 10
[Sysname-route-policy-pre-10] if-match ip-prefix test
[Sysname-route-policy-pre-10] quit
[Sysname] ospf 100
[Sysname-ospf-100] preference route-policy pre
reset ospf counters
Use reset ospf counters to clear OSPF statistics.
Syntax
reset ospf [ process-id ] counters
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
process-id: Clears the statistics an OSPF process specified by its ID in the range of 1 to 65535.
Examples
# Clear OSPF statistics for all processes.
<Sysname> reset ospf counters
reset ospf process
Use reset ospf process to restart all OSPF processes or a specified process.
Syntax
reset ospf [ process-id ] process [ graceful-restart ]
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
graceful-restart: Resets the OSPF process by using GR.
Usage guidelines
If no process is specified, this command restarts all OSPF processes.
The reset ospf process command performs the following actions:
· Clears all invalid LSAs without waiting for their timeouts.
· Makes a newly configured Router ID take effect.
· Starts a new round of DR/BDR election.
· Does not remove previous OSPF configurations.
The system prompts you to select whether to reset OSPF process upon execution of this command.
Examples
# Reset all OSPF processes.
<Sysname> reset ospf process
Reset OSPF process? [Y/N]:y
reset ospf redistribution
Use reset ospf redistribution to restart route redistribution.
Syntax
reset ospf [ process-id ] redistribution
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
Usage guidelines
If no process ID is specified, this command restarts route redistribution for all OSPF processes.
Examples
# Restart route redistribution.
<Sysname> reset ospf redistribution
rfc1583 compatible
Use rfc1583 compatible to enable compatibility with RFC 1583.
Use undo rfc1583 compatible to disable compatibility with RFC 1583.
Syntax
rfc1583 compatible
undo rfc1583 compatible
Default
Compatibility with RFC 1583 is enabled.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
RFC 1583 specifies a different method than RFC 2328 for selecting the best route from multiple AS external routes destined for the same network. Using this command makes them compatible. If RFC 2328 is compatible with RFC 1583, the intra-area route in the backbone area is preferred. If not, the intra-area route in the non-backbone area is preferred to reduce the burden of the backbone area.
Examples
# Disable compatibility with RFC 1583.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] undo rfc1583 compatible
router id
Use router id to configure a global router ID.
Use undo router id to restore the default.
Syntax
router id router-id
undo router id
Default
No global router ID is configured.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
router-id: Specifies the router ID, in the format of an IPv4 address.
Usage guidelines
OSPF uses a router ID to identify a device. If no router ID is specified, the global router ID is used.
If no global router ID is configured, the highest loopback interface IP address is used as the router ID. If no loopback interface IP address is available, the highest physical interface IP address is used, regardless of the interface status (up or down).
During an active/standby switchover, the new active main processing unit (MPU) checks whether the previously backed up router ID is valid. If not, it selects a new router ID.
A new router ID is selected only when the interface IP address used as the router ID is removed or changed. Other events will not trigger a router ID re-selection. For example, router ID re-selection is not triggered when the interface goes down, you change the router ID to the address of a loopback interface after a physical interface address is selected as the router ID, or a higher interface IP address is configured as the router ID.
After a router ID is changed, you must use the reset command to enable it.
Examples
# Configure a global router ID as 1.1.1.1.
<Sysname> system-view
[Sysname] router id 1.1.1.1
silent-interface (OSPF view)
Use silent-interface to disable an interface or all interfaces from sending and receiving OSPF 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 send and receive OSPF packets.
Views
OSPF 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
A disabled interface is a passive interface that cannot send or receive any hello packets.
To disable a network from receiving OSPF routes, issue the command on the interface connected to the network.
Examples
# Disable VLAN-interface 10 from sending and receiving OSPF packets.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] silent-interface vlan-interface 10
snmp-agent trap enable ospf
Use snmp-agent trap enable ospf to enable the sending of SNMP traps for a specific OSPF process.
Use undo snmp-agent trap enable ospf to disable the feature.
Syntax
snmp-agent trap enable ospf [ authentication-failure | bad-packet | config-error | grhelper-status-change | grrestarter-status-change | if-state-change | lsa-maxage | lsa-originate | lsdb-approaching-overflow | lsdb-overflow | neighbor-state-change | nssatranslator-status-change | retransmit | virt-authentication-failure | virt-bad-packet | virt-config-error | virt-retransmit | virtgrhelper-status-change | virtif-state-change | virtneighbor-state-change ] *
undo snmp-agent trap enable ospf [ authentication-failure | bad-packet | config-error | grhelper-status-change | grrestarter-status-change | if-state-change | lsa-maxage | lsa-originate | lsdb-approaching-overflow | lsdb-overflow | neighbor-state-change | nssatranslator-status-change | retransmit | virt-authentication-failure | virt-bad-packet | virt-config-error | virt-retransmit | virtgrhelper-status-change | virtif-state-change | virtneighbor-state-change ] *
Default
OSPF trap sending is enabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
authentication-failure: Specifies traps about authentication failures on an interface.
bad-packet: Specifies traps about error messages received on an interface.
config-error: Specifies traps about error configuration of an interface.
grhelper-status-change: Specifies traps about GR Helper state change.
grrestarter-status-change: Specifies traps about GR Restarter state change.
if-state-change: Specifies traps about interface state change.
lsa-maxage: Specifies LSA max age traps.
lsa-originate: Specifies traps about locally generated LSAs.
lsdb-approaching-overflow: Specifies traps about approaching LSDB overflows.
lsdb-overflow: Specifies LSDB overflow traps.
neighbor-state-change: Specifies traps about neighbor state change.
nssatranslator-status-change: Specifies traps about NSSA translator state change.
retransmit: Specifies traps about packets that are received and forwarded on an interface.
virt-authentication-failure: Specifies traps about authentication failures on a virtual interface.
virt-bad-packet: Specifies traps about error messages received on a virtual interface.
virt-config-error: Specifies traps about error configuration of a virtual interface.
virt-retransmit: Specifies traps about packets that are received and forwarded on a virtual interface.
virtgrhelper-status-change: Specifies traps about neighbor GR Helper state changes of a virtual interface.
virtif-state-change: Specifies traps about virtual interface state change.
virtneighbor-state-change: Specifies traps about the neighbor state change of a virtual interface.
Examples
# Enable OSPF to send SNMP traps about authentication failures on an interface.
<Sysname> system-view
[Sysname] snmp-agent trap enable ospf authentication-failure
snmp trap rate-limit
Use snmp trap rate-limit to configure the number of output traps in a specific time.
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
OSPF outputs 7 traps in 10 seconds.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
trap-interval: Specifies the trap output interval in the range of 1 to 60 seconds.
trap-number: Specifies the number of output traps in a specific time, in the range of 0 to 300.
Examples
# Configure OSPF to output 10 traps in 5 seconds.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] snmp trap rate-limit interval 5 count 10
spf-schedule-interval
Use spf-schedule-interval to set the OSPF 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 calculation interval is 5 seconds, the minimum interval is 50 milliseconds, and the incremental interval is 200 milliseconds.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
maximum-interval: Specifies the maximum OSPF SPF calculation interval in the range of 1 to 60 seconds.
minimum-interval: Specifies the minimum OSPF SPF calculation interval in the range of 10 to 60000 milliseconds.
incremental-interval: Specifies the incremental OSPF SPF 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 as 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, OSPF 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] ospf 100
[Sysname-ospf-100] spf-schedule-interval 10 500 300
stub (OSPF area view)
Use stub to configure an area as a stub area.
Use undo stub to restore the default.
Syntax
stub [ default-route-advertise | no-summary ] *
undo stub
Default
No area is a stub area.
Views
OSPF area view
Predefined user roles
network-admin
mdc-admin
Parameters
default-route-advertise-always: Usable only on a stub ABR. With this keyword, the ABR advertises a default route in a Type-3 LSA into the stub area regardless of whether FULL-state neighbors exist in the backbone area. Without this keyword, the ABR advertises a default route in a Type-3 LSA into the stub area only when at least one FULL-state neighbor exists in the backbone area.
no-summary: Usable only on a stub ABR. With this keyword, the ABR advertises only a default route in a Type-3 LSA into the stub area without advertising any other Type-3 LSAs (such a stub area is a totally stub area).
Usage guidelines
To remove the default-route-advertise-always or stub no-summary configuration on the 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 Area 1 as a stub area.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 1
[Sysname-ospf-100-area-0.0.0.1] stub
default-cost
stub-router
Use stub-router to configure a router as a stub router.
Use undo stub-router to restore the default.
Syntax
stub-router
undo stub-router
Default
No router is a stub router.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
The router LSAs sent by the stub router over different links contain different link type values. A value of 3 represents a link to a stub network, and the cost of the link is not changed. A value of 1, 2, or 4 represents a point-to-point link, a link to a transit network, or a virtual link, and the cost of such links is set to 65535. Neighbors on such links will 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] ospf 100
[Sysname-ospf-100] stub-router
transmit-pacing
Use transmit-pacing to configure the maximum number of LSU packets that can be sent at the specified interval.
Use undo transmit-pacing to restore the default.
Syntax
transmit-pacing interval interval count count
undo transmit-pacing
Default
An OSPF interface sends up to three LSU packets every 20 milliseconds.
Views
OSPF 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 OSPF interfaces, increase this 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 OSPF 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 OSPF process 1 to send up to 10 LSU packets every 30 milliseconds.
<Sysname> system-view
[Sysname] ospf 1
[Sysname-ospf-1] transmit-pacing interval 30 count 10
vlink-peer (OSPF 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 | { hmac-md5 | md5 } key-id { cipher cipher-string | plain plain-string } | retransmit seconds | simple { cipher cipher-string | plain plain-string } | trans-delay seconds ] *
undo vlink-peer router-id [ dead | hello | { hmac-md5 | md5 } key-id | retransmit | simple | trans-delay ] *
Default
No virtual link is configured.
Views
OSPF area view
Predefined user roles
network-admin
mdc-admin
Parameters
router-id: Specifies the router ID of the neighbor on the virtual link.
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.
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.
dead seconds: Sets the dead interval in the range of 1 to 32768 seconds. The default is 40. It must be identical with that on the virtual link neighbor. The dead interval is at least four times the hello interval.
md5: Enables MD5 authentication.
hmac-md5: Enables HMAC-MD5 authentication.
simple: Enables simple authentication.
key-id: Specifies the key ID for MD5 or HMAC-MD5 authentication, in the range of 1 to 255.
cipher: Sets a ciphertext key.
cipher-string: Specifies a ciphertext key. For simple authentication, specify a key of 33 to 41 characters. For MD5/HMAC-MD5 authentication, specify a key of 33 to 53 characters.
plain: Sets a plaintext key.
plain-string: Specifies a plaintext key. For simple authentication, specify a key of 1 to 8 characters. For MD5/HMAC-MD5 authentication, specify a key of 1 to 61 characters.
Usage guidelines
As defined in RFC 2328, all non-backbone areas must maintain connectivity to the backbone. You can use the vlink-peer command to configure a virtual link to connect an area to the backbone.
When you configure this command, follow these guidelines:
· 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.
The authentication mode at the non-backbone virtual link end is determined by the authentication mode at the backbone virtual link end. The two authentication modes (MD5 or simple) are independent, and you cannot specify either mode.
For secrecy, all keys, including keys configured in plain text, are saved in cipher text.
Examples
# Configure a virtual link to the neighbor with router ID 1.1.1.1.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 2
[Sysname-ospf-100-area-0.0.0.2] vlink-peer 1.1.1.1
Related commands
· authentication-mode
· display ospf vlink