No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

AR500, AR510, and AR530 V200R007

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
OSPFv3 Configuration Commands

OSPFv3 Configuration Commands

NOTE:

Among the AR500 series routes, AR502G-L-D-H, AR502GR-L-D-H do not support OSPFv3.

The AR510 series routes do not support OSPFv3.

The AR530 series routes do not support OSPFv3.

abr-summary (OSPFv3 Area)

Function

The abr-summary command configures IPv6 route summarization on an ABR.

The undo abr-summary command cancels IPv6 route summarization on an ABR.

By default, IPv6 route summarization is not configured on an ABR.

Format

abr-summary ipv6-address prefix-length [ cost cost | not-advertise ] *

undo abr-summary ipv6-address prefix-length

Parameters

Parameter Description Value
ipv6-address Specifies the address range of IPv6 routes to be summarized. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
prefix-length Specifies the prefix length. The value is an integer ranging from 1 to 128.
cost cost Specifies the cost of a summarized route. By default, the cost of a summarized route is the maximum cost among those of routes that are summarized. The value is an integer ranging from 1 to 16777214.
not-advertise Indicates that the summarized IPv6 routes that match a specified IPv6 address prefix or prefix length are not advertised. -

Views

OSPFv3 area view

Default Level

2: Configuration level

Usage Guidelines

This command is applicable only to the ABR for route aggregation of the current area. The ABR transmits only one summarized route to other areas.

An area can be configured with multiple summarized network segments. Thus OSPFv3 can summarize multiple network segments.

Example

# Summarize two routes FC00:0:0:1::/64 and FC00:0:0:2::/64 of OSPFv3 area 1 into route FC00:0:0::/48 with the cost being 400, and advertise it to other areas.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] area 1
[Huawei-ospfv3-1-area-0.0.0.1] abr-summary fc00:0:0:: 48 cost 400
Related Topics

area (OSPFv3)

Function

The area command displays the OSPFv3 area view.

Format

area area-id

Parameters

Parameter Description Value
area-id Specifies the OSPFv3 area ID. It can be an integer in the decimal format or in the IPv4 address format. If the value is a decimal integer, it ranges from 0 to 4294967295.If the value is an IPv4 address, it specifies the matched IP address in dotted decimal notation.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The number of devices increases with the expansion of the network. This leads to a large LSDB on every OSPFv3-enabled device on a large-scale network. Consequently, route flapping frequently occurs and thus a large number of OSPF packets are transmitted on the network, which wastes bandwidth resources.

OSPFv3 addresses the preceding problem by logically partitioning an AS into different areas.

Prerequisites

Before creating an OSPFv3 area and enter the OSPFv3 area view, you need to enter the OSPFv3 process view.

Precautions

After an AS is partitioned into different areas, not all areas are equal. The area with the ID being 0 is a backbone area. The backbone area is responsible for forwarding inter-area routes. In addition, the routing information between non-backbone areas must be forwarded through the backbone area.

The first time the area command is run, an OSPFv3 area is created and the OSPFv3 area view is displayed; running the area command later enters the OSPFv3 area view only.

Example

# Enter the OSPFv3 area 0 view.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] area 0
[Huawei-ospfv3-1-area-0.0.0.0]
Related Topics

asbr-summary (OSPFv3)

Function

The asbr-summary command configures IPv6 route summarization on an ASBR.

The undo asbr-summary command cancels IPv6 route summarization on an ASBR.

By default, IPv6 route summarization is not configured on an ASBR.

Format

asbr-summary ipv6-address summary-prefix-length [ cost summary-cost | tag summary-tag | distribute-delay dist-delay-interval | not-advertise ] *

undo asbr-summary ipv6-address summary-prefix-length

Parameters

Parameter Description Value
ipv6-address Specifies the address range of IPv6 routes to be summarized. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
summary-prefix-length Specifies the prefix length. The value is an integer ranging from 1 to 128.
cost summary-cost Specifies the cost of a summarized route. By default, the cost of a summarized route is the maximum cost among those of routes that are summarized. The value is an integer ranging from 1 to 16777214.
tag summary-tag Specifies the tag used to control route advertisement. The value is an integer ranging from 0 to 4294967295.
distribute-delay dist-delay-interval Specifies the delay for advertising summarized routes. The value is an integer ranging from 1 to 65535, in seconds. This parameter has no default value.
not-advertise Indicates that the summarized IPv6 routes that match a specified IPv6 prefix/prefix length are not advertised. -

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

An ASBR connects two or more ASs, and generates AS-External-LSAs.

The asbr-summary command is used on an ASBR to summarize the imported routes that have the same prefix and advertise only the summarized route. This command can be used only on ASBRs.

An ASBR can be configured with multiple summarized routes. Therefore, OSPFv3 can aggregate routes of multiple network segments.

Example

# Configure route summarization.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] asbr-summary aa:: 64 cost 20 tag 100

authentication-mode (OSPFv3)

Function

The authentication-mode command configures an authentication mode and a password for an OSPFv3 process or area.

The undo authentication-mode command deletes the authentication mode and password configured for an OSPFv3 process or area.

By default, no authentication mode or password are configured for any OSPFv3 process or area.

Format

authentication-mode hmac-sha256 key-id key-id { plain plain-text | [ cipher ] cipher-text }

authentication-mode keychain keychain-name

undo authentication-mode hmac-sha256 key-id key-id

undo authentication-mode keychain

Parameters

Parameter Description Value
hmac-sha256 Configures HMAC-SHA256 authentication. -
key-id key-id Specifies the key ID for authentication, which must be the same as the one configured at the other end. The value is an integer ranging from 1 to 65535.
plain Configures the plaintext password type. Only a plaintext password can be entered, and the password is displayed in plaintext in the configuration file.
NOTICE:

If plain is selected, the password is saved in the configuration file in plain text. This brings security risks. It is recommended that you select cipher to save the password in cipher text.

-
plain-text Specifies a plaintext password. The value is a string of 1 to 255 characters, spaces not supported.
cipher Configures the ciphertext password type. You can enter either a plaintext or ciphertext password, but the password is displayed in ciphertext in the configuration file. -
cipher-text Specifies a ciphertext password. The value can be a string of 1 to 255 characters for plaintext passwords and 20 to 392 characters for ciphertext passwords, spaces not supported.
keychain Configures keychain authentication.
NOTE:

Before configuring this parameter, you must run the keychain command to create a keychain. Then, run the key-id, key-string, and algorithm commands to configure a key ID, a password, and an authentication algorithm for this keychain. Otherwise, the OSPF authentication will fail.

OSPFv3 supports only hmac-sha256 in the algorithm command.

-
keychain-name Specifies a keychain name. The value is a string of 1 to 47 case-insensitive characters.

Views

OSPFv3 view or OSPFv3 area view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Due to inherent defects and flawed implementation of the TCP/IP protocol suite, there are an increasing number of attacks, which poses greater threats on TCP/IP networks than ever before. The attacks on network devices may lead to network failures. To configure an authentication mode and a password for an OSPFv3 process or area to improve OSPFv3 network security, run the authentication-mode command.

Precautions

If you use area authentication, the authentication and password configurations on the interfaces of all the routers in the area must be the same.

OSPFv3 area authentication has a lower priority than OSPFv3 interface authentication.

To configure OSPFv3 interface authentication, run the ospfv3 authentication-mode command.

Example

# Configure HMAC-SHA256 authentication for OSPFv3 process 100.

<Huawei> system-view 
[Huawei] ospfv3 100
[Huawei-ospfv3-100] authentication-mode hmac-sha256 key-id 10 cipher huawei

# Configure HMAC-SHA256 authentication for OSPFv3 area 0.

<Huawei> system-view 
[Huawei] ospfv3 100
[Huawei-ospfv3-100] area 0
[Huawei-ospfv3-100-area-0.0.0.0] authentication-mode hmac-sha256 key-id 10 cipher huawei

bandwidth-reference (OSPFv3)

Function

The bandwidth-reference command sets the bandwidth reference value used to calculate the link cost.

The undo bandwidth-reference command restores the default setting.

By default, the bandwidth reference value of the link cost is 100 Mbit/s. That is, the link cost is 100000000/bandwidth.

Format

bandwidth-reference value

undo bandwidth-reference

Parameters

Parameter Description Value
value Specifies the bandwidth reference value used to calculate the link cost. It is an integer ranging from 1 to 2147483648, in Mbit/s. The default value is 100 Mbit/s.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

If the link cost is not set, OSPFv3 calculates the link cost according to the link bandwidth (Cost = Reference Value/Bandwidth). Using the ospfv3 cost command sets the cost of an interface that runs OSPFv3. The priority of the cost set through the ospfv3 cost command is higher than that of the cost set through the bandwidth-reference command.

The bandwidth-reference command has the same function on Eth-Trunk interfaces and physical interfaces. If the command is executed on an Eth-Trunk interface, the bandwidth of the Eth-Trunk interface is the total bandwidth of all its member interfaces.

Example

# Set the bandwidth reference value of the link cost to 1000.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] bandwidth-reference 1000
Related Topics

default (OSPFv3)

Function

The default command sets the default parameters of the external routes that are imported by OSPFv3, The default parameters include cost, tag and type (Type 1 or Type 2).

The undo default command restores the default value of the parameters of the external routes that are imported by OSPFv3.

By default, the default cost of the external routes is 1; the default tag value is 1; the type of the imported external routes is Type 2.

Format

default { cost cost | tag tag | type type } *

undo default { cost [ cost ] | tag [ tag ] | type [ type ] } *

Parameters

Parameter Description Value
cost cost Specifies the default cost of the external route that is imported by OSPFv3. The value is an integer ranging from 1 to 16777214. By default, it is 1.
tag tag Specifies the tag value of the imported routes. The value is an integer that ranges from 0 to 4294967295. By default, the value is 1.
type type Specifies the type of the external routes.
The value is an integer ranging from 1 to 2. By default, it is 2.
  • 1: Type 1 external route
  • 2: Type 2 external route

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

Since OSPFv3 can import external routing information and advertise it to the entire AS, it is necessary to specify the default cost of the external route that is imported by the protocol.

If multiple OSPFv3 processes are enabled, the command is valid only for this process.

Example

# Specify the default cost of the external routes that are imported by OSPFv3 as 10.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] default cost 10

default-cost (OSPFv3 Area)

Function

The default-cost command specifies the cost of the default route that is sent to the stub area by OSPFv3.

The undo default-cost command restores the cost to the default value.

By default, the cost of the Type 3 default route transmitted to the stub area is 1.

Format

default-cost cost

undo default-cost

Parameters

Parameter Description Value
cost Specifies the cost of the default route that is sent to the stub area by OSPFv3. The value ranges from 0 to 16777214. By default, it is 1.

Views

OSPFv3 area view

Default Level

2: Configuration level

Usage Guidelines

This command is applicable only to the ABR that is connected to the stub area.

Before setting the cost of the default route that is transmitted to the stub area by OSPFv3, you need to configure the local area as a stub area by using the stub command. You can use the default-cost command to specify the cost of the default route that is transmitted to the stub area by the ABR.

If multiple OSPFv3s are enabled, the command takes effect only on this process.

Example

# Set the area 1 as the stub area and the cost of the default route that is sent to the stub area to 60.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] area 1
[Huawei-ospfv3-1-area-0.0.0.1] stub
[Huawei-ospfv3-1-area-0.0.0.1] default-cost 60
Related Topics

default-route-advertise (OSPFv3)

Function

The default-route-advertise command advertises default routes into an OSPFv3 routing domain.

The undo default-route-advertise command cancels advertising default routes.

Format

default-route-advertise [ always | cost cost | type type | tag tag | route-policy route-policy-name [ match-any ] ] *

undo default-route-advertise [ always | cost [ cost ] | type [ type ] | tag [ tag ] | route-policy [ route-policy-name ] [ match-any ] ] *

Parameters

Parameter Description Value
always Generates and advertises an LSA that describes a default route, regardless of whether the local device has active non-local OSPFv3 default routes. The industrial switch router that has always configured does not calculate default routes of other industrial switch routers. If always is not specified, an LSA is generated only when there are active non-local OSPFv3 default routes in the routing table of the local device. -
cost cost Specifies the cost of an advertised default route. The value is an integer that ranges from 1 to 16777214. The default value is 1.
type type Specifies the type of an external route.
The value is 1 or 2. The default value is 2.
  • 1: Type 1 external route
  • 2: Type 2 external route
tag tag Specifies the tag value of an advertised default route. The value is an integer that ranges from 0 to 4294967295. The default value is 1.
route-policy route-policy-name Specifies the name of a route-policy. The device advertises default routes according to the parameters configured in the route-policy when there are matched non-local OSPFv3 default routes in the routing table. The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
match-any Indicates that through a route-policy, the device advertises default routes according to the parameters configured in the route-policy when there are matched routes in the routing table. -

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

Before a device advertises a default route into an OSPFv3 routing domain, it compares the preferences of default routes. For example, if an OSPFv3 industrial switch router within the domain also has a static default route configured, ensure that the preference of the static default route is lower than that of the default route advertised by OSPFv3 so that the default route can be added into the current routing table.

Default routes cannot be imported using the import-route command. To advertise default routes, run the default-route-advertise command. The metric of a generated default route is determined by the cost and type parameters in the default-route-advertise command, and the default tag value is 1. If the local routing table does not contain non-local OSPFv3 default routes, specify the always parameter to generate an ASE LSA of a default route.

A route-policy is only used to filter existing active non-local OSPFv3 default routes of the local device, and match routes according to the following rules:

  • If a default route matches the policy, the local device generates a default route according to the parameters configured in the route-policy, such as cost, tag, and type.

  • If a default route does not match the policy and always is not specified, the local device does not generate any default route.

  • If a default route does not match the policy and always is specified, the industrial switch router generates a default route. The parameters of the generated default route are determined by the default-route-advertise [ always | cost cost | type type | tag tag | route-policy route-policy-name ] * command.

NOTE:

The preferences of parameters of the default route configured in a route-policy are higher than those of parameters configured in the default-route-advertise [ always | cost cost | type type | tag tag | route-policy route-policy-name ] * command.

Example

# Advertise the ASE LSA that describes a default route into an OSPFv3 routing domain. The local device does not have a default route.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] default-route-advertise always
Related Topics

description (OSPFv3 Area)

Function

The description command configures a description for an OSPFv3 area.

The undo description command deletes the configured description of an OSPFv3 area.

Format

description text

undo description

Parameters

Parameter Description Value
text Specifies a description for an OSPFv3 area. The value is a string of 1 to 80 case-sensitive space-tolerant characters.

Views

OSPFv3 area view

Default Level

2: Configuration level

Usage Guidelines

By configuring a description for an OSPFv3 area, you can identify different OSPFv3 areas easily.

Example

# Describe the OSPFv3 area 0.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] area 0
[Huawei-ospfv3-1-area-0.0.0.0] description main area

description (OSPFv3)

Function

The description command configures a description for an OSPFv3 process.

The undo description command deletes the configured description of an OSPFv3 process.

Format

description text

undo description

Parameters

Parameter Description Value
text Specifies a description for an OSPFv3 process. The value is a string of 1 to 80 case-sensitive space-tolerant characters.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

By configuring a description for an OSPFv3 process, you can identify different OSPFv3 processes easily.

Example

# Describe the OSPFv3 process 1.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] description main process

display default-parameter ospfv3

Function

The display default-parameter ospfv3 command displays the default OSPFv3 configuration.

Format

display default-parameter ospfv3

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

This command displays only the default configurations, regardless of whether the configurations about OSPFv3 parameters are changed.

Example

# Display the default OSPFv3 configuration.

<Huawei> display default-parameter ospfv3
 OSPFv3 Default Values:
Process View:
 -----------------------------------------------------
 Maximum ECMP Count                         : 32
 SPF Delay Time(sec)                        : 5
 SPF Hold Time(sec)                         : 10
 SPF Max Time(millisec)                     : 10000
 SPF Start Time(millisec)                   : 500
 SPF ExpHold Time(millisec)                 : 2000
 LSA Reorig Time(sec)                       : 5
 LSA Max Time(millisec)                     : 5000
 LSA Start Time(millisec)                   : 500
 LSA ExpHold Time(millisec)                 : 5000
 LSA Arrival Time(millisec)                 : 1000
 Wait Interval for stub-router on-startup   : 500 
 Grace Period(sec)                          : 120
 Retransmit-Interval for Grace LSAs(sec)    : 5 
 Ack wait-time for Grace LSAs(sec)          : 15 
 Helper Max Grace Period Support(sec)       : 1800 
 Bandwidth-Reference(Mbps)                  : 100
 Sham Link Cost                             : 1
 VPN Domain ID                              : 0
 VPN Router Tag                             : 0
 Default Metric                             : 1
 Default Tag                                : 1
 Default Type                               : 2
 Route Preference for Internal Routes       : 10
 Route Preference for External Routes       : 150

 -----------------------------------------------------
 Area View:
 -----------------------------------------------------
 Default Stub Cost                          : 1
 NSSA Translator Stability Index(sec)       : 40
 -----------------------------------------------------
 Interface View:
 -----------------------------------------------------
 Hello Interval(sec)                        : 10
 NBMA Hello Interval(sec)                   : 30
 Dead Interval(sec)                         : 40
 NBMA Dead Interval(sec)                    : 120
 Poll Interval(sec)                         : 120
 Retransmit Interval(sec)                   : 5
 Transmit Delay(sec)                        : 1
 Router DR Priority                         : 1
Table 8-60  Description of the display default-parameter ospfv3 command output

Item

Description

OSPFv3 Default Values

Default values of OSPFv3

Process View

Process view

Area View

Area view

Interface View

Interface view

Maximum ECMP Count

Maximum number of equal-cost routes

SPF Delay Time(sec)

Default delay for SPF calculation

SPF Hold Time(sec)

Hold time interval between two consecutive SPF calculations

SPF Max Time(millisec)

Maximum delay time between two consecutive SPF calculations

SPF Start Time(millisec)

Initial SPF schedule delay

SPF ExpHold Time(millisec)

Maximum hold time between two consecutive SPF calculations

LSA Reorig Time(sec)

The minimum time between distinct originations of any particular LSA.

LSA Max Time(millisec)

The maximum age that an LSA can attain.

LSA Start Time(millisec)

The default value of LSA orgination.

LSA ExpHold Time(millisec)

The intelligent timer for lsa reorigination time.

LSA Arrival Time(millisec)

The minimum time that must elapse between reception of new LSA instances during flooding.

Wait Interval for stub-router on-startup

Default period during which a industrial switch router remains to be a stub industrial switch router during master/slave switchover

Grace Period(sec)

GR period

Retransmit-Interval for Grace LSAs(sec)

Default interval for retransmitting Grace LSAs, in seconds

Ack wait-time for Grace LSAs(sec)

Default time during which a industrial switch router waits to reply the received Grace LSA with an LSAck message

If the industrial switch router does not receive any Grace LSA within the default waiting time, the industrial switch router does not send the LSAck message.

Helper Max Grace Period Support(sec)

Default GR period of the Helper device

Bandwidth-Reference(Mbps)

Default bandwidth reference value used to calculate the link cost, in Mbit/s

Sham Link Cost

Default cost of a sham link

VPN Domain ID

Default domain ID of the VPN

VPN Router Tag

Default router tag of the VPN

Default Metric

Default metric of the imported external route

Default Tag

Default tag of the imported external route

Default Type

Default type of the imported external route

Route Preference for Internal Routes

Default preference of the internal route

Route Preference for External Routes

Default preference of the external route

Default Stub Cost

Default cost of a stub area

NSSA Translator Stability Index(sec)

Default dead time of a translator

Hello Interval(sec)

Default interval for sending Hello packets on a P2P or a broadcast network

NBMA Hello Interval(sec)

Default interval for sending Hello packets on an NBMA network

Dead Interval(sec)

Default interval for declaring a neighbor to be Down after no Hello packets are received on a P2P or broadcast network

NBMA Dead Interval(sec)

Default interval for declaring a neighbor to be Down after no Hello packets are received on an NBMA network

Poll Interval(sec)

Default poll interval for sending Hello packets on an NBMA network

Retransmit Interval(sec)

Default interval for retransmitting packets

Transmit Delay(sec)

Default estimated time for transmitting an LSU over this interface

Before packet transmission, the estimated time needs to be added to the time limit of each LSA. The estimated time should be added to the transmission delay of the inbound interface.

Router DR Priority

Default priority of the DR

display ospfv3

Function

The display ospfv3 command displays the brief information of OSPFv3.

Format

display ospfv3 [ process-id ]

Parameters

Parameter Description Value
process-id Identifies the OSPFv3 process ID. If process-id is not specified, the brief information of all OSPFv3 processes is displayed in the ascending order of the process ID. The value is an integer ranging from 1 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the brief information of OSPFv3.

<Huawei> display ospfv3

 Routing Process "OSPFv3 (1)" with ID 0.0.0.0
 Route Tag: 0
 Multi-VPN-Instance is not enabled 
 SPF Intelligent Timer[millisecs] Max: 10000, Start: 1000, Hold: 2000
 LSA Intelligent Timer[millisecs] Max: 10000, Start: 1000, Hold: 2000
 LSA Arrival interval 1000 millisecs
 Default ASE parameters: Metric: 1 Tag: 1 Type: 2
 Number of AS-External LSA 0. AS-External LSA's Checksum Sum 0x0000
 Number of AS-Scoped Unknown LSA 0. AS-Scoped Unknown LSA's Checksum Sum 0x0000
 Number of FULL neighbors 0
 Number of Exchange and Loading neighbors 0
 Number of LSA originated 0
 Number of LSA received 0
 SPF Count          : 0
 Non Refresh LSA    : 0
 Non Full Nbr Count : 0
 Number of areas in this router is 1

Table 8-61   Description of the display ospfv3 command output

Item

Description

Route Tag

The tag value for the imported VPN route.

Multi-VPN-Instance is not enabled

That the current process does not support Multi-VPN instance.

SPF Intelligent Timer[millisecs]

Indicates the intelligent timers:

  • Max: maximum delay time between two consecutive SPF calculations
  • Start: initial SPF schedule delay
  • Hold: minimum hold time between two consecutive SPF calculations

LSA Intelligent Timer[millisecs]

Indicates LSA by the intelligent timers:

  • Max: maximum delay time between two consecutive re-origination of same instance of LSA
  • Start: initial delay for LSA origination
  • Hold: minimum hold time between two consecutive re-origination of same instance of LSA

LSA Arrival interval

Indicates minimum interval for receiving the same LSA.

Default ASE parameters

Indicates default parameters for AS external LSA, including:

  • Metric: cost of the route
  • Tag: tag value
  • Type: type of LSA (1 or 2)

Number of AS-External LSA

Number of LSA originated for routes outside an AS.

AS-External LSA's Checksum Sum

Indicates checksum of LSA originated for routes outside an AS.

Number of AS-Scoped Unknown LSA

Number of unknown LSA with the flooding range of an entire AS.

AS-Scoped Unknown LSA's Checksum Sum

Indicates checksum of unknown LSA with the flooding range of an entire AS.

Number of FULL neighbors

Number of Full neighbors.

Number of Exchange and Loading neighbors

Number of neighbors in the Exchange state and neighbors in the Loading state.

Number of LSA originated

Number of generated LSAs.

Number of LSA received

Number of received LSAs.

SPF Count

Number of the events triggered by the SPF calculation.

Non Refresh LSA

Number of LSAs that are not updated in the retransmission list during GR.

Non Full Nbr Count

Number of neighbors in the Exchange state and neighbors in the Loading state during GR.

Number of areas in this router is

Number of areas on a industrial switch router.

Related Topics

display ospfv3 abr-summary-list

Function

The display ospfv3 abr-summary-list command displays the aggregation of the route that is imported by OSPFv3.

If the IP address and mask are not specified, the aggregation of all routes that are imported by OSPFv3 is displayed.

Format

display ospfv3 [ process-id ] abr-summary-list [ ipv6-address prefix-length ]

Parameters

Parameter Description Value
process-id Specifies the OSPFv3 process ID. The value is an integer ranging from 1 to 65535.
ipv6-address Specifies the matched IPv6 address. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
prefix-length Specifies the length of the route prefix. The value is an integer ranging from 1 to 128.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the aggregation of the all the routes that are imported by OSPFv3.

<Huawei> display ospfv3 abr-summary-list
OSPFv3 Process (1)
Area ID  :  0.0.0.1
Prefix           Prefix-Len  Matched       Status
FC00:0:0:2001::  16          2[Active]     Advertise
FC00:0:0:3001::  16          0[NotActive]  Advertise
FC00:0:0:4001::  16          0[NotActive]  Advertise
Table 8-62  Description of the display ospfv3 abr-summary-list command output

Item

Description

OSPFv3 Process (1)

OSPFv3 process ID

Area ID

Area ID

Prefix

IPv6 prefix

Prefix-Len

Length of the prefix

Matched

Status of the aggregated routes

Status

Advertisement status of the aggregated routes:

  • Advertise: Advertise after the aggregation.
  • NotAdvertise: Do not advertise after the aggregation.

display ospfv3 area

Function

The display ospfv3 area command displays OSPFv3 area information.

Format

display ospfv3 [ process-id ] area [ area-id ]

Parameters

Parameter Description Value
process-id Specifies the ID for an OSPFv3 process. The value is an integer ranging from 1 to 65535.
area-id Specifies the area ID for the area to be displayed. If the value is a decimal integer, it ranges from 0 to 4294967295. If the value is an IPv4 address, it specifies the matched IP address in dotted decimal notation.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display OSPFv3 area information.

<Huawei> display ospfv3 area
OSPFv3 Process (1)

 Area 0.0.0.0(BACKBONE)  InActive
     Number of interfaces in this area is 1
     SPF algorithm executed 0 times
     Number of LSA 0. Checksum Sum 0x0000
     Number of Unknown LSA 0
     Area Bdr Router count: 0
     Area ASBdr Router count: 0
     Next SPF Trigger Time 500 millisecs
     Router ID conflict state: Normal
 Area 0.0.0.1 Active
     Number of interfaces in this area is 1
     SPF algorithm executed 3 times
     Number of LSA 4. Checksum Sum 0x23AC8
     Number of Unknown LSA 0
     Area Bdr Router count: 0
     Area ASBdr Router count: 1
     Next SPF Trigger Time 500 millisecs
     Router ID conflict state: Normal
Table 8-63  Description of the display ospfv3 area command output

Item

Description

Number of interfaces in this area

Indicates the number of active interfaces.

SPF algorithm executed

Indicates the number of SPF calculations.

Number of LSA

Indicates the number of LSAs in this area.

Check Sum

Indicates the area checksum.

Number of Unknown LSA

Indicates the number of unknown LSAs in the area.

Area Bdr Router count

Indicates the number of ABRs in the area.

Area ASBdr Router count

Indicates the number of ASBRs in the area.

Next SPF Trigger Time

Indicates the time for triggering the next SPF calculation, in milliseconds.

Router ID conflict state

Indicates the Router ID conflict state.

display ospfv3 asbr-summary

Function

The display ospfv3 asbr-summary command displays OSPFv3 route summarization.

Format

display ospfv3 [ process-id ] asbr-summary [ ipv6-address prefix-length ] [ verbose ]

Parameters

Parameter Description Value
process-id Specifies the ID of an OSPFv3 process. The value is an integer ranging from 1 to 65535.
ipv6-address Specifies a matching IPv6 address. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
prefix-length Specifies the length of a route prefix. The value is an integer ranging from 1 to 128.
verbose Displays detailed information about OSPFv3 route summarization. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If neither ipv6-address nor prefix-length is specified, this command displays all detailed information about OSPFv3 route summarization.

Example

# Display OSPFv3 route summarization.

<Huawei> display ospfv3 asbr-summary verbose
 OSPFv3 Process (1)
 Total summary address count :1

          Summary Address

 Prefix        : 10::
 Prefix length : 32
 Tag           : 0 (Not Configured)
 Status        : Advertised
 Cost          : 10 (Configured)
 Delay         : (Not Configured)
 Type          : 2 (Larger than any link state path)
 The Count of Route is: 3

Destination       Mask        Protocol      Proc       Type     Metric
    10::0          64          Static        0           2        1   
    10::2          128         Static        0           2        1   
    10::3          128         Static        0           2        1
Table 8-64  Description of the display ospfv3 asbr-summary command output

Item

Description

Total Summary address count

Number of summarized routes configured by using the asbr-summary command

Summary Address

Detailed information about summarized routes

Prefix

Prefix of a summarized route

Prefix length

Prefix length of a summarized route

Tag

Tag of a summarized route

Status

Whether a summarized route is advertised:

  • Advertised: indicates that a summarized route is advertised.
  • NotAdvertised: indicates that a summarized route is not advertised.

Cost

Cost of a summarized route

Delay

Delay time to start aggregating routes

Type

Type of AS-External routes

  • Type: 1
  • Type: 2

The Count of Route is

Number of summarized routes

Destination

Destination address of a summarized route

Mask

Mask of a summarized route

Protocol

Protocol carried by a summarized route

Proc

Process ID carried by a summarized route

Metric

Metric of a summarized route

Related Topics

display ospfv3 black-box neighbor-down

Function

The display ospfv3 black-box neighbor-down command displays detailed information about OSPFv3 neighbors in the Down state.

Format

display ospfv3 black-box neighbor-down [ number ]

Parameters

Parameter Description Value
number Specifies the number of OSPFv3 neighbors in the Down state to be displayed. The value is an integer ranging from 1 to 10.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If number is not specified, the display ospfv3 black-box neighbor-down command displays detailed information about the latest 10 OSPFv3 neighbors in the Down state.

Example

# Display the latest 2 OSPFv3 neighbors in the Down state.

<Huawei> display ospfv3 black-box neighbor-down 2
 Neighbor Router-id                   : 10.11.11.99
 Interface                            : GigabitEthernet1/0/0
 Process ID                           : 99
 Instance ID                          : 1
 Reason for Neighbor down             : Interface down
 Time at which neighbor went down     : 2010-12-28 12:45:20+08:00
 Neighbor Router-id                   : 10.11.11.99
 Interface                            : GigabitEthernet1/0/0
 Process ID                           : 99
 Instance ID                          : 1
 Reason for Neighbor down             : One-way received
 Time at which neighbor went down     : 2010-12-28 12:45:20+08:00
Table 8-65  Description of the display ospfv3 black-box neighbor-down command output

Item

Description

Neighbor Router-id

Router ID of a neighbor whose neighbor relationship becomes Down

Interface

Interface of a device involved in a neighbor relationship

Process ID

ID of the OSPFv3 process to which the neighbor relationship belongs

Instance ID

ID of the OSPFv3 instance to which the neighbor relationship belongs

Reason for Neighbor down

Reason why a neighbor relationship becomes Down:

  • Interface down
  • Dead timer Expired
  • Sequence number mismatch
  • One-way received
  • Forced down
  • Bad LS Request
  • DR or BDR has changed

Time at which neighbor went down

Date and time at which the neighbor went Down.

display ospfv3 error

Function

The display ospfv3 error command displays OSPFv3 errors.

Format

display ospfv3 [ process-id ] error [ lsa ]

Parameters

Parameter Description Value
process-id Specifies the OSPFv3 process ID.

If no OSPFv3 process number is specified, errors of all OSPFv3 processes are displayed.

The value ranges from 1 to 65535.
lsa Display OSPFv3 LSA errors. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

While analyzing OSPFv3 faults, you can obtain information of errors using the command. You can then diagnose OSPFv3 faults according to the information.

Example

# Display OSPFv3 errors.

<Huawei> display ospfv3 error
          OSPFv3 Process 1 with Router ID 10.0.0.0
                  OSPFv3 Error Statistics

General Packet Errors :
 0     : Bad packet                     0     : Bad version
 0     : Bad area ID                    0     : Bad virtual link
 0     : Packet too small               0     : Transmit error
 0     : Bad Instance ID                0     : Interface down
 0     : Unknown neighbor               0     : Authentication failure
 0     : AuthSeqNum mismatch            0     : AuthKeyId mismatch 
 0     : IPv6: received my own packet   0     : Bad Checksum 

Hello Packet Errors :
 0     : Hello timer mismatch          0     : Dead timer mismatch
 0     : Extern option mismatch        0     : Router ID confusion
 0     : Virtual neighbor unknown

DD Packet Errors :
 0     : Neighbor state low            0     : Extern option mismatch
 0     : Unknown LSA Type              0     : MTU option mismatch
 0     : Router ID confusion

LS ACK packet Errors :
 0     : Neighbor state low            0     : Bad ACK
 0     : Duplicate ACK                 0     : Unknown LSA type

LS REQ packet Errors :
 0     : Neighbor state low            0     : Bad request
 0     : Empty Request

LS UPD packet Errors :
 0     : Neighbor state low            0     : LSA checksum bad
 0     : Received less recent LSA      0     : Unknown LSA type
 0     : Newer self-generate LSA
 0     : Received LSA within LSA Arrival interval

Receive Grace LSA errors :
 0     : Number of invalid LSAs
 0     : Number of policy failed LSAs
 0     : Number of wrong period LSAs

License Errors :
 0     : Max external routes reached    0     : Max NBRs reached
Table 8-66  Description of the display ospfv3 error command output

Item

Description

General Packet Errors

General packet errors.

Bad packet

The analyzed packet errors, including the verification of the length field.

Bad version

OSPFv3 version errors, that is, it is not version 3.

Bad area ID

Area ID in the received packet does not match. That is, when the area IDs in the received packets are different from the local area ID, except area 0, other area IDs are considered incorrect.

Bad virtual link

V-link receives illegal packets.

Packet too small

Length of the received packet is less than the sum of length of IP header and the length field of the packet.

Transmit error

Transmitting packets to socket fails.

Bad Instance ID

The Instance ID errors

Interface down

Times that the OSPFv3 interface goes Down.

Unknown neighbor

For NBMA, sham-link, and V-link networks, the device receives OSPFv3 packets from neighbors that are not enabled with OSPFv3.

Authentication failure

Times that the authentication failed.

AuthSeqNum mismatch

Number of packets with the mismatched receive sequence number.

AuthKeyId mismatch

Number of packets of which the key ID does not match the configured value.

IPv6: received my own packet

Number of IPv6 packets received from self.

Hello Packet Errors

Hello packet errors.

Hello timer mismatch

The Hello interval is not consistent.

Dead timer mismatch

The Dead interval is not consistent.

Extern option mismatch

The extension attributes of the Hello packet are not consistent.

Router ID confusion

Router id is configured to the same.

Virtual neighbor unknown

Router id of the packet is inconsistent with that of the neighbor that is configured by the V-link.

DD Packet Errors

DD packet errors.

Neighbor state low

Cases of error:
  • DD packet is received but its neighbor status is lower than 2-way.

  • LSR packet is received but its neighbor status is lower than Exchange.

  • LSU packet is received but its neighbor status is lower than Exchange.

  • ACK packet is received but its neighbor status is lower than Exchange.

Extern option mismatch

Option of the DD packets is not matched.

Unknown LSA Type

The router receives unknown LSA type from neighbors that are not enabled with OSPFv3.

MTU option mismatch

MTU check of the interface on which OSPFv3 is enabled. The MTU value of the DD packet that is received on the interface is greater than that of this interface.

LS Ack packet Errors

LS ACK packet errors.

Bad ACK

Count of receiving incorrect ACK packets.

Duplicate ACK

Count of receiving repeat ACK packets.

LS REQ packet Errors

Title bar: LS REQ packet errors.

Bad request

BadRequest event in the protocol.

Empty Request

Number of Empty Request.

LS UPD packet Errors

LS UPD packet error.

LSA checksum bad

LSA checksum not proper

Received less recent LSA

Receiving older LSA than the local copy.

Newer self-generate LSA

LSA recently generated by self.

Received LSA within LSA Arrival interval

Received LSA within arrival interval.

Receive Grace LSA errors

Title bar: Grace LSA error.

Number of invalid LSAs

Number of LSAs that are invalid.

Number of policy failed LSAs

Number of LSAs with policy failure.

Number of wrong period LSAs

Number of LSAs with wrong period.

License Errors

License errors.

Max external routes reached

Number of external routes reached the maximum value.

Max NBRs reached

Number of neighbors reached the maximum value.

display ospfv3 graceful-restart-information

Function

The display ospfv3 graceful-restart-information command displays the status of OSPFv3 GR.

Format

display ospfv3 [ process-id ] graceful-restart-information

Parameters

Parameter Description Value
process-id Specifies the OSPFv3 process number. If the process number is not specified, the brief information about all OSPFv3 processes is displayed in an ascending order. The value is an integer that ranges from 1 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the status of OSPFv3 GR.

<Huawei> display ospfv3 graceful-restart-information
            OSPFv3 Router with ID (10.0.0.0) (Process 1)

  Graceful-restart capability      : enabled
  Graceful-restart support         : planned and unplanned, strict lsa check
  Grace-Period Configured          : 120 Sec
  Last Restart-exit Reason         : none

  Helper capability                : enabled
  Helper support                   : planned and unplanned, strict lsa check
  Max Grace-Period Configured      : 1800 Sec
  Last Helper-exit Reason          : none
Table 8-67  Description of the display ospfv3 graceful-restart-information command output

Item

Description

Graceful-restart capability

Indicates whether GR is enabled.
  • enabled
  • disabled

Graceful-restart support

Indicates the GR configuration feature.
  • planned: indicates that only the planned GR is supported.
  • unplanned: indicates that only the un-planned GR is supported.
  • strict lsa check: indicates that the Helper supports strict external LSA check.

Grace-Period Configured

Indicates the GR period.

Helper capability

Indicates whether Helper is enabled.
  • enabled
  • disabled

Helper support

Indicates the Helper Graceful-restart configuration feature.
  • planned: indicates that only the planned GR is supported.
  • unplanned: indicates that only the un-planned GR is supported.
  • strict lsa check: indicates that the Helper supports strict external LSA check.

Max Grace-Period Configured

Indicates the GR period.

Last Helper-exit Reason

Indicates the reason for the Helper device exiting from GR last time.
  • none: indicates that the industrial switch router never enters the Helper mode since it starts.
  • successful: indicates that the Helper successfully exits from GR.
  • topology change: indicates that the network topology changes.
  • interface id change: indicates that the interface ID changes.
  • grace period exp: indicates that GR period expires.
  • hold timer expire: indicates that the hold timer expires.
  • interface address deleted: indicates that the interface address is deleted.

display ospfv3 interface

Function

The display ospfv3 interface command displays the OSPFv3 interface.

Format

display ospfv3 [ process-id ] interface [ area area-id ] [ interface-type interface-number ]

Parameters

Parameter Description Value
process-id Specifies the OSPFv3 process ID. The value is an integer ranging from 1 to 65535.
area area-id Specifies the OSPFv3 area ID. The value of the area ID can be a decimal integer or in the IPv4 address format. If the value is a decimal integer, it ranges from 0 to 4294967295. If the value is an IPv4 address, it specifies the matched IP address in dotted decimal notation.
interface-type interface-number Specifies the type and the number of the interface. If the interface is not specified, information of all OSPFv3 interfaces is displayed. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the OSPFv3 GigabitEthernet1/0/0.

<Huawei> display ospfv3 interface gigabitethernet 1/0/0
 GigabitEthernet1/0/0 is up, line protocol is up
    Interface ID 0x102
    Interface MTU 1500
    IPv6 Prefixes
      FE80::2E0:FFF:FE4E:F101 (Link-Local Address)
OSPFv3 Process (1), Area 0.0.0.1, Instance ID 0
    Router ID 10.1.1.1, Network Type BROADCAST, Cost: 1
    Transmit Delay is 1 sec, State Waiting, Priority 1
    Designated Router (ID) 10.1.1.1
    Interface Address FE80::2E0:9AFF:FE60:8142
    Backup Designated Router (ID) 10.3.3.3
    Interface Address FE80::2E0:68FF:FE05:8142
    Timer interval configured, Hello 10, Dead 40, Wait 40, Retransmit 5
      Hello due in 00:00:02
    Neighbor Count is 0, Adjacent neighbor count is 1
   Interface Event: 2, Lsa Count: 2, Lsa Checksum: 0x9b74
    Interface Physical BandwidthHigh 0, BandwidthLow 100000000
Table 8-68  Description of the display ospfv3 interface command output

Item

Description

Interface ID

Interface ID

Interface MTU

The MTU value

IPv6 Prefixes

IPv6 prefixes

Link-Local Address

The address of local link

OSPFv3 Process

OSPFv3 process ID

Area

Area that the interface belongs to

Instance ID

ID of the instance that the interface belongs to

Router ID

Router ID

Network Type

Network type of the interface that can be displayed as Point-to-Point and Broadcast

Cost

Cost of the interface

Transmit Delay

Transmission delay

State

State of the interface

Priority

Priority of the interface

Designated Router (ID)

Indicates designated router on the link

Backup Designated Router (ID)

Indicates backup designated router on the link

Timer interval configured

Configured interval

  • Hello: Interval for sending Hello packets
  • Dead: Interval of the Dead timer
  • Wait: Interval of the Wait timer
  • Retransmit: Retransmission interval

Hello due in

Indicates time remaining to send Hello packet

Neighbor Count

Number of neighbors

Adjacent neighbor count

Number of adjacency

Interface Event

Indicates number of events on this interface

Lsa Count

Total number of LSA in the interface scope database

Lsa Checksum

Indicates checksum of all the LSAs in the database

Interface Physical BandwidthHigh

Maximum physical bandwidth on the interface

BandwidthLow

Minimum physical bandwidth on the interface

Related Topics

display ospfv3 lsdb

Function

The display ospfv3 lsdb command displays the LSDB of OSPFv3.

Format

display ospfv3 [ process-id ] lsdb [ area area-id ] [ originate-router advertising-router-id | self-originate ] [ { router | network | inter-router [ asbr-router asbr-router-id ] | { inter-prefix | nssa } [ ipv6-address prefix-length ] | link | intra-prefix | grace } [ link-state-id ] ]

display ospfv3 [ process-id ] lsdb [ originate-router advertising-router-id | self-originate ] external [ ipv6-address prefix-length ] [ link-state-id ]

display ospfv3 [ process-id ] lsdb statistics

Parameters

Parameter Description Value
process-id Identifies the OSPFv3 process ID. The value is an integer ranging from 1 to 65535.
area area-id Specifies the OSPFv3 area ID. The value of the area ID can be a decimal integer or in the IPv4 address format. If the value is a decimal integer, it ranges from 0 to 4294967295. If the value is an IPv4 address, it specifies the matched IP address in dotted decimal notation.
external Displays the AS-external LSA in the LSDB. If the area parameter is selected, the external parameter cannot be selected. -
grace Displays the Grace-LSA in the LSDB. -
inter-prefix Displays the Inter-area-prefix LSA in the LSDB. -
nssa Displays the NSSA in the LSDB. -
inter-router Displays the Inter-area-router LSA in the LSDB. -
intra-prefix Displays the Intra-area-prefix LSA in the LSDB. -
link Displays the Link-local LSA in the LSDB. -
network Displays the Network-LSA in the LSDB. -
router Displays the Router-LSA in the LSDB. -
link-state-id Indicates the link state ID. It is in dotted decimal notation.
originate-router advertising-router-id Specifies the Router ID of the industrial switch router that advertises LSA packet. It is in dotted decimal notation.
asbr-router asbr-router-id Specifies the router ID of the ASBR. It is in dotted decimal notation.
self-originate Displays LSAs in the LSDB that are advertised by the local industrial switch router. -
ipv6-address prefix-length Specifies the IPv6 destination address and the length of the prefix. ipv6-address is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. prefix-length is an integer ranging from 0 to 128.
statistics Indicates the statistics of the LSDB. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the OSPFv3 LSDB.

<Huawei> display ospfv3 lsdb
* indicates STALE LSA

           OSPFv3 Router with ID (10.5.5.5) (Process 1)
               Link-LSA (Interface Vlanif1002)

Link State ID   Origin Router    Age   Seq#       CkSum  Prefix
0.0.0.71        10.2.2.2         0995  0x8000000c 0xa44c      1
0.0.0.69        10.5.5.5         0621  0x8000000f 0x20ff      1

               Router-LSA (Area 0.0.0.0)

Link State ID   Origin Router    Age   Seq#       CkSum    Link
0.0.0.0         10.2.2.2         0565  0x8000008b 0xa54f      1
0.0.0.0         10.5.5.5         0616  0x80000014 0x243c      1

               Network-LSA (Area 0.0.0.0)

Link State ID   Origin Router    Age   Seq#       CkSum
0.0.0.71        10.2.2.2         0565  0x8000000a 0x585c

               Inter-Area-Prefix-LSA (Area 0.0.0.0)

Link State ID   Origin Router    Age   Seq#       CkSum
0.0.0.1         10.2.2.2         0320  0x8000000c 0x6a0f
0.0.0.2         10.2.2.2         1637  0x8000000b 0xe1a3
0.0.0.1         10.5.5.5         0616  0x8000000d 0x81f7

               Intra-Area-Prefix-LSA (Area 0.0.0.0)

Link State ID   Origin Router    Age   Seq#       CkSum  Prefix  Reference
0.0.0.1         10.2.2.2         0564  0x8000000e 0x79a6      1  Network-LSA

               Router-LSA (Area 0.0.0.1)

Link State ID   Origin Router    Age   Seq#       CkSum    Link
0.0.0.0         10.5.5.5         0621  0x8000000b 0x8c84      0

               Inter-Area-Prefix-LSA (Area 0.0.0.1)

Link State ID   Origin Router    Age   Seq#       CkSum
0.0.0.1         10.5.5.5         0621  0x8000000a 0x8f08
0.0.0.2         10.5.5.5         0612  0x8000000a 0x105d
0.0.0.3         10.5.5.5         0612  0x8000000a 0x85f2

               Intra-Area-Prefix-LSA (Area 0.0.0.1)

Link State ID   Origin Router    Age   Seq#       CkSum  Prefix  Reference
0.0.0.1         10.5.5.5         0621  0x8000000b 0xab89      1  Router-LSA

               Router-LSA (Area 0.0.0.3)

Link State ID   Origin Router    Age   Seq#       CkSum    Link
0.0.0.0         10.5.5.5         0621  0x8000000b 0x8092      0

               Inter-Area-Prefix-LSA (Area 0.0.0.3)

Link State ID   Origin Router    Age   Seq#       CkSum
0.0.0.1         10.5.5.5         0617  0x8000000b 0x85f5
0.0.0.2         10.5.5.5         0621  0x8000000a 0x8511
0.0.0.3         10.5.5.5         0612  0x8000000a 0x0666
0.0.0.4         10.5.5.5         0612  0x8000000a 0x7bfb

               NSSA-external-LSA (Area 0.0.0.3)

Link State ID   Origin Router    Age   Seq#       CkSum  Type
0.0.0.1         10.5.5.5         0626  0x8000000a 0xe72a E2
Table 8-69  Description of the display ospfv3 lsdb command output

Item

Description

Link-LSA

Description of the Link-LSA

Router-LSA

Description of the Router-LSA

Network-LSA

Description of the Network-LSA

Inter-Area-Prefix-LSA

Description of the Inter-Area-Prefix-LSA

Intra-Area-Prefix-LSA

Description of the Intra-Area-Prefix-LSA

Link State ID

Link state ID in LSA header

Origin Router

industrial switch router that generates LSA

Age

Aging time of LSA

Seq#

Sequence number of LSA (from LSA header)

CkSum

Checksum of LSA

Link

Number of links in router LSA

Prefix

Number of prefixes in Link LSA

Reference

Router-LSA/Network-LSA reference information

# Display the Link-local LSA in LSDB.

<Huawei> display ospfv3 lsdb link
            OSPFv3 Router with ID (10.2.2.2) (Process 1)

                Link-LSA (Interface GigabitEthernet1/0/0)
  LS age: 11
  LS Type: Link-LSA
  Link State ID: 0.0.2.6
  Originating Router: 10.2.2.2
  LS Seq Number: 0x80000002
  Retransmit Count: 0
  Checksum: 0xEFFA
  Length: 56
  Priority: 1
  Options: 0x000013 (-|R|-|-|E|V6)
  Link-Local Address: FE80::1441:0:E213:1
  Number of Prefixes: 1

    Prefix: 2000:1::/64
     Prefix Options: 0 (-|-|-|-|-)
Table 8-70  Description of the display ospfv3 lsdb link command output

Item

Description

LS age

Aging time of LSA

LS Type

Type of LSA:
  • Router-LSA

  • Network-LSA

  • Inter-Area-Prefix-LSA

  • Inter-Area-Router-LSA

  • AS-external-LSA

  • Link-LSA

  • Intra-Area-Prefix-LSA

  • NSSA-LSA

Link State ID

Link state ID in LSA header

Originating Router

Router that generates LSA

LS Seq Number

Sequence number of LSA (from LSA header)

Checksum

Checksum of LSA

Length

Length of the LSA

Priority

Priority of the interface that corresponds to the link.

Options

Value of options of the link

Link-Local Address

Link local address

Number of Prefixes

Number of IPv6 prefixes in the LSA

Prefix

IPv6 prefix

Prefix Options

Value of options of the prefix

Related Topics

display ospfv3 next-hop

Function

The display ospfv3 next-hop command displays the next-hop routing table of OSPFv3.

Format

display ospfv3 [ process-id ] next-hop

Parameters

Parameter Description Value
process-id Specifies the OSPFv3 process ID. The value is an integer ranging from 1 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the next-hop routing table of OSPFv3 process 1.

<Huawei> display ospfv3 1 next-hop
OSPFv3 Process (1)
Neighbor-Id     Next-Hop                                Interface   RefCount
3.3.3.9         FE80::2E0:FCFF:FE01:814F                GE1/0/0    1
Table 8-71  Description of the display ospfv3 next-hop command output

Item

Description

OSPFv3 Process

ID of the OSPFv3 process

Neighbor-Id

Neighbor ID

Next-Hop

Next hop address

Interface

Egress

RefCount

Number of routes applying the next hop

display ospfv3 path

Function

The display ospfv3 path command displays the paths to a destination address.

Format

display ospfv3 [ process-id ] path

Parameters

Parameter Description Value
process-id Specifies the ID of an OSPFv3 process. The value is an integer ranging from 1 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If the process ID is not specified, paths in all processes are displayed.

Example

# Display all OSPFv3 paths.

<Huawei> display ospfv3 path
OSPFv3 Process (1)
Type        AreaId/LSACost   PathCost
Intra       0.0.0.1          2
Inter       0.0.0.1          2
External    0.0.0.10         1
Table 8-72  Description of the display ospfv3 path command output

Item

Description

OSPFv3 Process

ID of the OSPFv3 process

Type

Path type:
  • Intra: indicates the intra-area routes.
  • Inter: indicates the inter-area routes.
  • External: indicates the AS-external routes.

AreaId/LSACost

  • Area ID in case of an intra-area or inter-area path.
  • LSA cost in case the path type is External.
  • Cost in case of a path to a destination outside an AS

PathCost

Cost of the path

display ospfv3 peer

Function

The display ospfv3 peer command displays the qualified OSPFv3 neighbor.

Format

display ospfv3 [ process-id ] [ area area-id ] peer [ interface-type interface-number | neighbor-id ] [ verbose ]

Parameters

Parameter Description Value
process-id Specifies the OSPFv3 process ID. The value is an integer ranging from 1 to 65535.
area area-id Specifies the neighbor of the specific area. The area-id can be a decimal integer or in IPv4 address format. The integer ranges from 0 to 4294967295.
interface-type interface-number Indicates the type and the number of the interface. -
neighbor-id Specifies router-ID of the neighbor. It is in dotted decimal notation.
verbose Displays detailed information of the neighbor of each area. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display neighbor information about OSPFv3 process 1 on GigabitEthernet1/0/0.

<Huawei> display ospfv3 1 peer gigabitethernet 1/0/0
OSPFv3 Process (1)
OSPFv3 Area (0.0.0.0)
Neighbor ID     Pri  State            Dead Time Interface            Instance ID
1.1.1.1           1  Full/ -          00:00:30  GE1/0/0              0

# Display the detailed neighbor information of OSPFv3 process 100 on GigabitEthernet1/0/0.

<Huawei> display ospfv3 100 peer gigabitethernet 1/0/0 verbose
OSPFv3 Process (100)
 Neighbor 10.1.1.1 is Full, interface address FE80::3D43:0:8C14:1
    In the area 0.0.0.1 via interface GigabitEthernet1/0/0
    DR Priority is 1 DR is 0.0.0.0 BDR is 0.0.0.0
    Options is 0x000013 (-|R|-|-|E|V6)
    Dead timer due in 00:00:29
    Neighbour is up for 18:40:40
    Database Summary List 0
    Link State Request List 0
    Link State Retransmission List 0
    Neighbour Event: 6
    Neighbour If Id: 0x1017
Table 8-73  Description of the display ospfv3 peer command output

Item

Description

OSPFv3 Process

ID of the OSPFv3 process

OSPFv3 Area

ID of the OSPFv3 area

Neighbor ID

Neighbor ID

Pri

Priority of the neighbor industrial switch router

State

State of the neighbor, including Down, Attempt, Init, 2-Way, ExStart, Exchange, Loading, and Full

Dead Time

Dead time of the neighbor

Interface

Interface that connects with the neighbor

Instance ID

ID of the instance that the neighbor belongs to

Neighbor

Neighbor ID

interface address

Link address of the the neighbor interface

In the area 0.0.0.1 via interface GigabitEthernet1/0/0

GigabitEthernet 1/0/0 of the neighbor is in Area 1

DR Priority

Priority of DR

DR

Designated Router

BDR

Border Area Router

Options

Options of the neighbor

Dead timer due in 00:00:29

The time before the neighbor dies

Link State Request List

Number of LSAs in the request list of the neighbor

Link State Retransmission List

Number of LSAs in the retransmission list of the neighbor

Neighbour Event

Number of times NFSM (Neighbor Finite State Machine) state changed

Neighbour If Id

Interface ID of the neighbor

display ospfv3 request-list

Function

The display ospfv3 request-list command displays the statistics of the request list of OSPFv3.

Format

display ospfv3 [ process-id ] request-list [ [ area area-id | interface interface-type interface-number | peer router-id ] * | statistics ]

Parameters

Parameter Description Value
process-id Specifies the process ID of OSPFv3. The value is an integer ranging from 1 to 65535.
area area-id Specifies the OSPFv3 area ID. The integer ranges from 0 to 4294967295. The value of the area ID can be a decimal integer or in the IPv4 address format.
interface interface-type interface-number Specifies the type and number of the interface. -
peer router-id Indicates the Router ID of a neighbor. It is in dotted decimal notation.
statistics Displays the statistics of the request list of OSPFv3. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display of the command is used to diagnose faults.

Example

# Display the statistics of the request list in OSPFv3.

<Huawei> display ospfv3 request-list
    OSPFv3 Process (1)                                                  
    Interface  GE1/0/0        Area-ID   0.0.0.1                            
    Nbr-ID   10.254.255.255                                              
    LS-Type               LS-ID           AdvRouter       SeqNum       Age  
    Link-LSA              0.0.2.2         10.254.255.255  0x80000001   151 
    Router-LSA            0.0.0.0         10.254.255.255  0x80000005   46 
    Intra-Area-Prefix-LSA 0.0.0.1         10.254.255.255  0x80000001   45 
    AS-External-LSA       0.0.0.1         10.254.255.255  0x80000001   113 
    AS-External-LSA       0.0.0.2         10.254.255.255  0x80000001   113
Table 8-74  Description of the display ospfv3 request-list command output

Item

Description

OSPFv3 Process

ID of the OSPFv3 process

Interface

Interface that connects with the neighbor

Area-ID

ID of the area that the interface belongs to

Nbr-ID

Router ID of the neighbor

LS-Type

LSA type:
  • Link-LSA: is generated by the industrial switch router for each link and is advertised in the local link.

  • Router-LSA: is generated by each industrial switch router and advertised in the area whether the industrial switch router resides. It describes the link state and cost of the industrial switch router.

  • Intra-Area-Prefix-LSA: is generated by the ABR and is advertised in the area that is associated with the LSA.

  • AS-External-LSA: is generated by the ASBR and is advertised to the entire AS (except the stub area). It describes the routes that reach other ASs.

LS-ID

Link State ID ( from LSA header)

AdvRouter

Advertising router (from LSA header)

SeqNum

Sequence number (from LSA header)

Age

Aging time (from LSA header)

display ospfv3 retrans-list

Function

The display ospfv3 retrans-list command displays the statistics of the retransmission list in OSPFv3.

Format

display ospfv3 [ process-id ] retrans-list [ [ area area-id | interface interface-type interface-number | peer router-id ] * | statistics ]

Parameters

Parameter Description Value
process-id Specifies the process ID of OSPFv3. The value is an integer ranging from 1 to 65535.
area area-id Specifies the OSPFv3 area ID. The integer ranges from 0 to 4294967295. The value of the area ID can be a decimal integer or in the IPv4 address format.
interface interface-type interface-number Specifies the type and number of the interface. -
peer router-id Indicates the Router ID of a neighbor. It is in dotted decimal notation.
statistics Displays the statistics of the retransmission list in OSPFv3. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display of the command is used to diagnose faults.

Example

# Display the statistics of the retransmission list in OSPFv3.

<Huawei> display ospfv3 retrans-list
     OSPFv3 Process (1)                                                   
     Interface  GE1/0/0        Area-ID   0.0.0.1                            
     Nbr-ID   10.22.2.255                                                
     LS-Type               LS-ID           AdvRouter       SeqNum       Age 
     Network-LSA           0.0.2.2         10.254.255.255  0x80000002   1 
     Intra-Area-Prefix-LSA 0.0.0.2         10.254.255.255  0x80000002   1
Table 8-75  Description of the display ospfv3 retrans-list command output

Item

Description

OSPFv3 Process

ID of the OSPFv3 process

Interface

Interface that connects with the neighbor

Area-ID

ID of the area that the interface belongs to

Nbr-ID

Router ID of the neighbor

LS-Type

LSA type:
  • Network-LSA: is generated by the DR of a broadcast network or an NBMA network and is advertised in the area where the DR resides. It describes the link state of the network segment.

  • Intra-Area-Prefix-LSA: is generated by the ABR and is advertised in the area that is associated with the LSA.

LS-ID

Link State ID (from the LSA header)

AdvRouter

Advertising router (from LSA header)

SeqNum

Sequence number (from LSA header)

Age

Aging time (from LSA header)

display ospfv3 routing

Function

The display ospfv3 routing command displays the OSPFv3 routing table.

Format

display ospfv3 [ process-id ] routing [ ipv6-address prefix-length | abr-routes | asbr-routes | intra-routes | inter-routes | ase-routes | nssa-routes | [ statistics ] [ uninstalled ] ]

Parameters

Parameter Description Value
process-id Identifies the OSPFv3 process ID. The value is an integer ranging from 1 to 65535.
ipv6-address Indicates the IPv6 address. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
prefix-length Specifies the length of the prefix. The value is an integer ranging from 0 to 128.
abr-routes Displays the routing table of ABR in OSPFv3. -
asbr-routes Displays routing table of ASBR in OSPFv3. -
intra-routes Displays the statistics of OSPFv3 routes in an area. -
inter-routes Displays the statistics of OSPFv3 routes between areas. -
ase-routes Displays the statistics of OSPFv3 routes outside an AS. -
nssa-routes Displays the statistics of OSPFv3 routes in an NSSA. -
statistics Displays the statistics of all routing tables. -
uninstalled Displays the routes are not installed into the RM. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

By using this command with different parameters, you can view the routes of a specified interface or next hop.

The command output can help you troubleshoot OSPFv3 faults.

Example

# Display the OSPFv3 routing table.

<Huawei> display ospfv3 routing
Codes : E2 - Type 2 External, E1 - Type 1 External, IA - Inter-Area,
        N - NSSA, U - Uninstalled, D - Denied by Import Policy
OSPFv3 Process (1)
     Destination                                              Metric
       Next-hop
     U  100::/64                                                1
       via FE80::2E0:48FF:FE66:2701, GigabitEthernet2/0/0
     2000:1::/64                                                3124
       via FE80::1441:0:E213:1, GigabitEthernet1/0/0
Table 8-76  Description of the display ospfv3 routing command output

Item

Description

Codes

The following information provides the full spelling and explanation:

  • E2: Type 2 external route
  • E1: Type 1 external route
  • IA: Inter-area route
  • N: NSSA route
  • U: OSPFv3 routers that not advertise to IPv6 router table
  • D: OSPFv3 routes denied by import route policy

OSPFv3 Process

OSPFv3 process

Destination

Destination address

Metric

Metric to the destination

Next-hop

Next hop to the destination

U

display OSPFv3 routes that not advertise to IPv6 routing table

Related Topics

display ospfv3 topology

Function

The display ospfv3 topology command displays the OSPFv3 area topology.

Format

display ospfv3 [ process-id ] topology [ area area-id ]

Parameters

Parameter Description Value
process-id Identifies the OSPFv3 process ID. The value is an integer ranging from 1 to 65535.
area area-id Specifies the area ID. The value of the area ID can be a decimal integer or in the IPv4 address format. The integer ranges from 0 to 4294967295.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the topology of OSPFv3 area 1.

<Huawei> display ospfv3 topology area 1
OSPFv3 Process (1)
OSPFv3 Area (0.0.0.1) topology
Type  ID(If-Index)       Bits      Metric    Next-Hop        Interface
Rtr   1.1.1.1                      --
Table 8-77  Description of the display ospfv3 topology command output

Item

Description

OSPFv3 Process

ID of the OSPFv3 process

OSPFv3 Area

ID of the OSPFv3 area

Type

SPF type:
  • Rtr: Router

  • Net: Network

ID (If-Index)

Router ID ( If-Index ) is the interface ID of the DR in the network type.

Bits

B bit and E bit indicates industrial switch router type
  • B bit: ABR
  • E bit: ASBR

Metric

Metric of path to the node

Next-Hop

Next hop of the path to the node

Interface

Egress of the path to the node

Related Topics

display ospfv3 statistics maxage-lsa

Function

The display ospfv3 statistics maxage-lsa command displays information about MaxAge Router LSAs.

Format

display ospfv3 [ process-id ] statistics maxage-lsa

Parameters

Parameter Description Value
process-id

Specifies the ID of an OSPFv3 process.

If no process ID is specified, information about MaxAge Router LSAs in all OSPFv3 processes is displayed.

The value is an integer ranging from 1 to 4294967295.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To query information about MaxAge Router LSAs, run the display ospfv3 statistics maxage-lsa command. The command output helps troubleshooting route flapping.

Example

# Display information about MaxAge Router LSAs.

<Huawei> display ospfv3 statistics maxage-lsa
                                                                                                                                    
          OSPFv3 Process 1 with Router ID 10.10.10.2                                                                                
                  Statistics of Router-LSAs                                                                                         
          ---------------------------------------------------                                                                       
                                                                                                                                    
                          Area: 0.0.0.1                                                                                             
Origin Router                MaxAge count     Last MaxAge time                                                                      
10.10.10.2                              1  2015-07-25 15:06:49                         
Table 8-79  Description of the display ospfv3 statistics maxage-lsa command output

Item

Description

Origin Router

Device that advertised the MaxAge Router LSA

MaxAge count

Number of times an LSA reached the maximum aging time

Last MaxAge time

Time when an LSA last reached the maximum aging time

display snmp-agent trap feature-name ospfv3 all

Function

The display snmp-agent trap feature-name ospfv3 all command displays all trap messages of the OSPFv3 module.

Format

display snmp-agent trap feature-name ospfv3 all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display all trap messages of the OSPFv3 module.

<Huawei> display snmp-agent trap feature-name ospfv3 all
--------------------------------------------------------------
Feature name: ospfv3
Trap number : 12
-----------------------------------------------------------------
Trap name                           Default switch status   Current switch status
virtifstatechange                   off                     off
nbrstatechange                      off                     off
virtnbrstatechange                  off                     off
ifconfigerror                       off                     off
virtifconfigerror                   off                     off
ifrxbadpacket                       off                     off
virtifrxbadpacket                   off                     off
ifstatechange                       off                     off
restartstatuschange                 off                     off
nbrrestarthelperstatuschange        off                     off
virtnbrrestarthelperstatuschange
                                    off                     off
nssatranslatorstatuschange          off                     off
lastauthenticationkeyexpiry         off                     off
authenticationsequencenumberwrap    off                     off
intraarearouteridconflictrecovered                                              
                                    off                     on                      
peerflappingsuppressstatuschange                                                
                                    off                     on 
Table 8-80  Description of the display snmp-agent trap feature-name ospfv3 all command output

Item

Description

Feature name

Name of feature

Trap number

Number of traps of OSPFv3 module.

Trap name

Name of traps of OSPFv3 module, including:
  • virtifstatechange: enables the traps for virtual interface state changes.

  • nbrstatechange: enables the traps for neighbor state changes.

  • virtnbrstatechange: enables the traps for neighbor state changes on the virtual-link.

  • ifconfigerror: enables the traps for interface configuration errors.

  • virtifconfigerror: enables the traps for virtual interface configuration errors.

  • ifrxbadpacket: enables the traps for bad packets received on the interface.

  • virtifrxbadpacket: enables the traps for bad packets received on the virtual interface.

  • ifstatechange: enables the traps for the interface state changes.

  • restartstatuschange: enables the traps for restarter state changes during GR.

  • nbrrestarthelperstatuschange: enables the traps for helper state changes during GR.

  • virtnbrrestarthelperstatuschange: enables the traps for helper state changes during GR on the virtual link.

  • nssatranslatorstatuschange: enables the traps for the NSSA translator state changes.

  • lastauthenticationkeyexpiry: enables the trap for last authentication key in keychain expiry.

  • authenticationsequencenumberwrap: enables the trap for cryptographic sequence number wrapping.

  • intraarearouteridconflictrecovered

    : enables the trap for router ID conflict resolving.
  • peerflappingsuppressstatuschange

    : enables the trap for neighbor flapping suppression status changes.

Default switch status

Status of the default trap switch:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

Current switch status

Status of the current trap switch:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

domain-id (OSPFv3)

Function

The domain-id command sets an OSPFv3 domain ID.

The undo domain-id command restores the default setting.

By default, the domain ID is null.

Format

domain-id { null | domain-id [ type type value value | secondary ] * }

undo domain-id { domain-id [ type type value value ] }

Parameters

Parameter Description Value
null Specifies the OSPFv3 domain ID to null. -
domain-id Specifies the OSPFv3 domain ID. It can be expressed by an integer or in dotted decimal notation. If the domain ID is expressed by an integer, its value ranges from 0 to 4294967295; it is converted to the dotted decimal notation and carried 1 with 256 when being displayed. If the domain ID is in dotted decimal notation format, it is displayed as originally entered.
type type Specifies the type of the OSPFv3 domain ID. The value is an integer that can be 0005, 0105, 0205, or 8005. The default value is 0005.
value value Specifies the value of the OSPFv3 domain ID type. The value is a hexadecimal number that ranges from 0 to FFFF. The default value is 0.
secondary Indicates the ID of a secondary domain. -

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

Generally, the routes that are imported from a PE are advertised as External-LSAs. The routes that belong to different nodes of the same OSPFv3 domain are advertised as Type 3 LSAs (intra-domain routes). This requires that different nodes in the same OSPFv3 domain have the same domain ID.

Two values, 0 and null, of the domain ID indicate different meanings.

The maximum number of secondary domain IDs on each OSPFv3 process is 10. The maximum number of secondary domain IDs may vary with products.

The parameter secondary can be configured only when the primary domain ID is configured. When the undo domain-id command is run, if no parameter is specified, the primary domain ID is deleted.

Example

# Set the VPN domain ID in OSPFv3 VPN extension.

<Huawei> system-view
[Huawei] ip vpn-instance huawei
[Huawei-vpn-instance-huawei] ipv6-family
[Huawei-vpn-instance-huawei] route-distinguisher 100:1
[Huawei-vpn-instance-huawei] quit
[Huawei] ospfv3 1 vpn-instance huawei
[Huawei-ospfv3-1] domain-id 234

filter export (OSPFv3)

Function

The filter export command filters the outgoing Type3 LSAs of the local area.

The undo filter export command restores the default setting.

By default, the outgoing Type3 LSAs of the local area cannot be filtered.

Format

filter { acl6-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } export

undo filter [ acl6-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name ] export

Parameters

Parameter Description Value
acl6-number Specifies the number of a basic ACL. The value is an integer that ranges from 2000 to 2999.
acl6-name acl6-name Specifies the name of a named ACL. The value is a string of 1 to 32 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).
ipv6-prefix ipv6-prefix-name Specifies the name of an IP prefix list. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
route-policy route-policy-name Specifies the name of a routing policy. The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

OSPFv3 area view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The command can be used to filter out invalid LSAs sent to neighbors to reduce the size of the LSDB and speed up network convergence.

Configuration Impact

After filtering conditions are set for the outgoing Type3 LSAs to be advertised using the filter export command, only the outgoing Type3 LSAs that pass the filtering can be received and advertised.

Precautions

  • The command can be configured only on an ABR.
  • For a named ACL, when the rule command is used to configure a filtering rule, the filtering rule takes effective only when the source address range is specified by the source parameter and the time period is specified by the time-range parameter.
  • Run the filter import (OSPFv3) command to set filtering conditions for the incoming Type3 LSAs to be advertised.

Example

# Configure OSPFv3 to filter the outgoing Type3 LSAs.

<Huawei> system-view
[Huawei] ospfv3 100
[Huawei-ospfv3-100] area 1
[Huawei-ospfv3-100-area-0.0.0.1] filter 2000 export

filter import (OSPFv3)

Function

The filter import command filters the incoming Type3 LSAs of the local area.

The undo filter import command restores the default setting.

By default, the incoming Type3 LSAs cannot be filtered.

Format

filter { acl6-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } import

undo filter [ acl6-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name ] import

Parameters

Parameter Description Value
acl6-number Specifies the number of a basic ACL. The value is an integer that ranges from 2000 to 2999.
acl6-name acl6-name Specifies the name of a named ACL. The value is a string of 1 to 32 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).
ipv6-prefix ipv6-prefix-name Specifies the name of an IP prefix list. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
route-policy route-policy-name Specifies the name of a routing policy. The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

OSPFv3 area view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The command can be used to filter out invalid LSAs sent to neighbors to reduce the size of the LSDB and speed up network convergence.

Configuration Impact

After filtering conditions are set for the incoming Type3 LSAs to be advertised using the filter import command, only the incoming Type3 LSAs that pass the filtering can be received and advertised.

Precautions

  • The command can be configured only on an ABR.
  • For a named ACL, when the rule command is used to configure a filtering rule, the filtering rule takes effective only when the source address range is specified by the source parameter and the time period is specified by the time-range parameter.
  • Run the filter export (OSPFv3) command to set filtering conditions for the outgoing Type3 LSAs to be advertised.

Example

# Filter incoming Type3 LSAs within the local area.

<Huawei> system-view
[Huawei] ospfv3 100
[Huawei-ospfv3-100] area 1
[Huawei-ospfv3-100-area-0.0.0.1] filter ipv6-prefix my-prefix-list import

filter-policy export (OSPFv3)

Function

The filter-policy export command sets the OSPFv3 rules to filter the imported routes.

The undo filter-policy export command restores the default setting.

By default, the imported routes are not filtered.

Format

filter-policy { acl6-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name } export [ protocol [ process-id ] ]

undo filter-policy [ acl6-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name ] export [ protocol [ process-id ] ]

Parameters

Parameter Description Value
acl6-number Specifies the ACL6 number. The value is an integer ranging from 2000 to 2999.
acl6-name acl6-name Specifies the name of a IPv6 Named ACL. The value is a string of 1 to 32 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).
ipv6-prefix ipv6-prefix-name Specifies the name of the prefix list. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
protocol Specifies the protocol from which the route is imported. If the routes of other protocols are imported, you can use the parameter to filter the imported routes. If the parameter is the default one, all imported routes are filtered. It can be bgp, direct, isis, unr, ospfv3, ripng, or static.
process-id Needs to be specified for ripng, isis, or ospfv3. The value is an integer ranging from 1 to 65535.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

The filter-policy export command is only valid for the routes that are imported by using the import-route command.

Example

# Filter the imported routes based on the rule defined by ACL6 2002.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] filter-policy 2002 export
Related Topics

filter-policy import (OSPFv3)

Function

The filter-policy import command sets the OSPFv3 rules to filter the received routes.

The undo filter-policy import command restores the default setting.

By default, the received routes are not filtered.

Format

filter-policy { acl6-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name } import

undo filter-policy [ acl6-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name ] import

Parameters

Parameter Description Value
acl6-number Specifies the ACL6 number. The value is an integer ranging from 2000 to 2999.
acl6-name acl6-name Specifies the name of a IPv6 Named ACL. The value is a string of 1 to 32 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).
ipv6-prefix ipv6-prefix-name Specifies the name of the IPv6 address prefix list. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

The filter-policy import command only filters the routes calculated by OSPFv3. Routes that do not pass the filtering are neither added to the OSPFv3 routing table nor advertised.

For a IPv6 Named ACL, when the rule command is used to configure a filtering rule, the filtering rule is effective only with the source address range that is specified by the source parameter and with the time period that is specified by the time-range parameter.

Example

# Filter the received routes based on the IPv6 address prefix list named abc.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] filter-policy ipv6-prefix abc import

graceful-restart (OSPFv3)

Function

The graceful-restart command enables GR of the OSPFv3 process.

The undo graceful-restart command disables GR of the OSPFv3 process.

By default, OSPFv3 GR is not enabled.

Format

graceful-restart [ period period | ack-time time | retransmit-interval interval | lsa-checking-ignore | planned-only ] *

undo graceful-restart [ period [ period ] | ack-time [ time ] | retransmit-interval [ interval ] | lsa-checking-ignore | planned-only ] *

Parameters

Parameter Description Value
period period Specifies the GR period. The value is an integer ranging from 1 to 1800, expressed in seconds. By default, the value is 120 seconds.
ack-time time Specifies the period during which a industrial switch router waits for the Grace-LSA Ack message from its neighbor. The value is an integer ranging from 1 to 30, expressed in seconds. By default, the value is 15 seconds.
retransmit-interval interval Specifies the interval for retransmitting Grace-LSAs. The value is an integer ranging from 1 to 5, expressed in seconds. By default, the value is 5 seconds.
lsa-checking-ignore Indicates that strict check is not performed on LSAs. By default, industrial switch routers perform strict check on received LSAs. -
planned-only Indicates that industrial switch routers support Planned-GR only. By default, industrial switch routers support Planned-GR and Unplanned-GR. -

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

ack-time is an optional parameter. After the parameter is specified, the restarter can discover more neighbors in ack-time period.

Example

# Enable GR of the OSPFv3 process.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] graceful-restart

helper-role (OSPFv3)

Function

The helper-role command configures a industrial switch router to support the GR Helper mode.

The undo helper-role command cancels GR Helper mode.

By default, the industrial switch router is not enabled to support GR Helper mode.

Format

helper-role [ { ip-prefix ip-prefix-name | acl-number acl-number | acl-name acl-name } | max-grace-period period | planned-only | lsa-checking-ignore ] *

undo helper-role [ [ ip-prefix [ ip-prefix-name ] | acl-number [ acl-number ] | acl-name [ acl-name ] ] | max-grace-period period | planned-only | lsa-checking-ignore ] *

Parameters

Parameter Description Value
ip-prefix ip-prefix-name Specifies the name of the IP prefix list. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
acl-number acl-number Specifies the number of the basic ACL. The value is an integer that ranges from 2000 to 2999.
acl-name acl-name Specifies the name of a IPv6 Named ACL. The value is a string of 1 to 32 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).
max-grace-period period Specifies the permitted maximum restart period. The value is an integer ranging from 1 to 1800, expressed in seconds. By default, the value is 1800 seconds.
planned-only Indicates that industrial switch routers support Planned-GR only. By default, industrial switch routers support Planned-GR and Unplanned-GR. -
lsa-checking-ignore Indicates that strict check is not performed on LSAs. By default, industrial switch routers perform strict check on received LSAs. -

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

Routers cannot use the helper mode during the GR process.

For a Named ACL, when the rule command is used to configure a filtering rule, the filtering rule is effective only with the source address range that is specified by the source parameter and with the time period that is specified by the time-range parameter.

Example

# Configure a industrial switch router to support the helper mode.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] helper-role acl-number 2001 max-grace-period 250 planned-only lsa-checking-ignore

import-route (OSPFv3)

Function

The import-route command imports an external route. Before the routes are imported, the OSPFv3 process of the route must be active.

The undo import-route command stops importing external routes.

By default, no route of other protocols is imported.

Format

import-route { bgp [ permit-ibgp ] | unr | direct | ripng help-process-id | static | isis help-process-id | ospfv3 help-process-id } [ { cost cost | inherit-cost } | type type | tag tag | route-policy route-policy-name ] *

undo import-route { bgp | unr | direct | ripng help-process-id | static | isis help-process-id | ospfv3 help-process-id }

Parameters

Parameter Description Value
bgp Specifies the protocol from which routes are imported, as bgp. -
permit-ibgp IBGP routes that are permitted to be imported. The import of IBGP routes may cause route loops. Therefore, this command must not be configured unless it is necessary. -
unr Specifies the imported source routing protocol as unr.

User Network Route (UNR) is allocated if dynamic routing protocols cannot be used when users are getting online.

-
direct Specifies the imported source routing protocol as direct. -
ripng Specifies the protocol from which routes are imported, as ripng. -
static Specifies the imported source routing protocol as static. -
isis Specifies the protocol from which routes are imported, as isis. -
ospfv3 Specifies the protocol from which routes are imported, as ospfv3. -
help-process-id Specifies the process ID of the imported source protocol. When the imported protocol is ripng, isis or ospfv3, you should specify the parameter. The value is an integer ranging from 1 to 65535.
cost cost Indicates the cost of the imported route. The value is an integer ranging from 1 to 16777214.By default, it is 1.
inherit-cost dicates the original cost of the imported routes. -
type type Specifies the type of the external routes.
The value is an integer ranging from 1 to 2. By default, it is 2.
  • 1: Type 1 external route
  • 2: Type 2 external route
tag tag Specifies the tag value of the imported routes. The value is an integer that ranges from 0 to 4294967295. By default, the value is 1.
route-policy route-policy-name Specifies the name of the routing policy. Only the routes that match the route-policy-name are imported. The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

On a non-PE device, only EBGP routes are imported after the import-route bgp command is configured. IBGP routes are also imported after the import-route bgp permit-ibgp command is configured. If IBGP routes are imported, routing loops may occur.In this case, run the preference (OSPFv3) and preference (BGP) commands to prevent loops by specifying preferences of OSPFv3 and BGP routes.If IBGP routes need to be imported, configure the import-route bgp permit-ibgp command, and run the preference (OSPFv3) and preference (BGP) commands to set the preference of OSPFv3 ASE routes lower than that of IBGP routes (preference value of OSPFv3 ASE routes larger than that of IBGP routes).

On a PE, configuring the import-route bgp command imports both EBGP routes and IBGP routes, no matter whether the import-route bgp permit-ibgp command is configured or not.If the import-route bgp permit-ibgp command and the default-route-advertise (OSPFv3) command are both configured, the active IBGP default routes can be imported into OSPFv3.

NOTE:

After the import-route direct command is executed, routes to the network segment where the IPv6 address of the management interface belongs are also imported in the OSPFv3 routing table. Therefore, use this command with caution.

Example

# Import the RIPng route of type 2. The cost of the route is 50.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] import-route ripng 1 type 2 cost 50

# OSPFv3 process 100 imports the routes discovered by OSPFv3 process 160.

<Huawei> system-view
[Huawei] ospfv3 100
[Huawei-ospfv3-100] import-route ospfv3 160

lsa-arrival-interval (OSPFv3)

Function

The lsa-arrival-interval command sets the interval for receiving OSPFv3 LSA.

The undo lsa-arrival-interval command restores the default setting.

By default, the interval for receiving OSPFv3 LSAs is 1000 milliseconds.

Format

lsa-arrival-interval arrival-interval

undo lsa-arrival-interval

Parameters

Parameter Description Value
arrival-interval Specifies the interval for receiving OSPFv3 LSAs . The value is an integer ranging from 1 to 10000, in milliseconds. The default value is 1000.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

To prevents too many device resources from being consumed due to network connections or frequent route flapping, the lsa-arrival-intervalcommand can be used to set the interval for receiving OSPFv3 LSAs. A device updates an LSA only when the receiving interval expires.

On a stable network where routes need to be rapidly converged, the lsa-arrival-interval command can be used to set the millisecond-level interval for receiving LSAs and update LSAs in time so that topology changes or route changes can be immediately sensed. In this manner, the LSDB synchronization can be speeded up.

Example

# Set the interval for receiving OSPFv3 LSAs to 10000 ms.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] lsa-arrival-interval 10000

lsa-originate-interval (OSPFv3)

Function

The lsa-originate-interval command sets the interval for updating OSPFv3 LSAs .

The undo lsa-originate-interval command restores the default setting.

By default, the interval for updating OSPFv3 LSAs is the default value of the SPF intelligent timer.

Format

lsa-originate-interval intelligent-timer lsa-originate-max-interval lsa-originate-start-interval hold-interval

undo lsa-originate-interval

Parameters

Parameter Description Value
intelligent-timer Sets the interval for updating OSPFv3 Type 1 Router-LSAs, Tpe 2 Network-LSAs, and Type 8 Link-LSAs by using an intelligent timer. -
lsa-originate-max-interval Specifies the maximum interval for updating OSPFv3 LSAs. The value ranges from 1 to 10000, in milliseconds. The default value is 5000.
lsa-originate-start-interval Specifies the initial interval for updating OSPFv3 LSAs. The value ranges from 0 to 1000, in milliseconds. The default value is 500.
hold-interval Specifies the hold interval for updating OSPFv3 LSAs. The value ranges from 1 to 5000, in milliseconds. The default value is 1000.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

On a stable network where routes need to be fast converged, the parameter intelligent-timer needs to be specified to set the interval for updating LSAs (in milliseconds) so that topology changes or route changes can be immediately advertised to the network by using LSAs. In this manner, route convergence can be speeded up. This prevents too many network bandwidths and device resources from being consumed due to network connections or frequent route flapping.

Example

# Set the maximum interval for updating OSPFv3 LSAs to 10000 ms, the initial interval to 700 ms, and the hold interval to 4000 ms.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] lsa-originate-interval intelligent-timer 10000 700 4000

maximum load-balancing (OSPFv3)

Function

The maximum load-balancing command sets the maximum number of equal-cost routes for carrying out load balancing.

The undo maximum load-balancing command restores the default setting.

By default, the maximum number of equal-cost routes supported by the device is 4.

Format

maximum load-balancing number

undo maximum load-balancing

Parameters

Parameter Description Value
number Specifies the maximum number of equal-cost routes. The value is an integer that ranges from 1 to 4.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

Applicable Environment

If a routing protocol discovers multiple routes with the same cost to a single destination, they can carry out load balancing. The maximum load-balancing command sets the maximum number of equal-cost routes that can carry out load balancing. This optimizes the routing policy and ensures traffic forwarding on a complex network.

Effect

Packets will be load-balanced by multiple equal-cost routes to a single destination.

Follow-up Procedure

If more existing equal-cost OSPFv3 routes than the value set using the maximum load-balancing command are available, the system randomly selects equal-cost routes equal to the value set using this command to carry out load balancing. The nexthop command allows routes with a specified weight to carry out load balancing.

Precautions

To disable load balancing, set the value of number to 1.

Example

# Set the maximum number of equal-cost routes that OSPFv3 can support to 3.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] maximum load-balancing 3

# Restore the default maximum number of equal-cost routes for carrying out load balancing.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] undo maximum load-balancing
Related Topics

maxage-lsa route-calculate-delay (OSPFv3)

Function

The maxage-lsa route-calculate-delay command configures a route calculation delay that is triggered when the device receives a MaxAge Router LSA.

The undo maxage-lsa route-calculate-delay command restores the default configuration.

By default, the delay is 20s.

Format

maxage-lsa route-calculate-delay delay-interval

undo maxage-lsa route-calculate-delay

Parameters

Parameter Description Value
delay-interval Specifies a route calculation delay that is triggered when the device receives a MaxAge Router LSA. The value is an integer ranging from 0 to 65535, in seconds. If the value is set to 0, route calculation is not delayed when the device receives a MaxAge Router LSA.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

Frequent OSPFv3 LSA flapping may lead to route flapping, adversely affecting services. To address this problem, run the maxage-lsa route-calculate-delay command to configure the device to delay route calculation when it receives a MaxAge Router LSA, which suppresses the frequent OSPFv3 LSA flapping that may occur.

Example

# Configure the device to delay route calculation for 200s when the device receives a MaxAge Router LSA.

<Huawei> system-view
[Huawei] ospfv3 100
[Huawei-ospfv3-100] maxage-lsa route-calculate-delay 200

nexthop (OSPFv3)

Function

The nexthop command sets the preference for equal-cost routes.

The undo nexthop command cancels the preference of equal-cost routes.

By default, the preference is not set for equal-cost routes. That is, equal-cost routes forward packets at the same time for load balancing.

Format

nexthop router-id interface-type interface-number weight value

undo nexthop router-id interface-type interface-number

Parameters

Parameter Description Value
router-id Specifies the router ID of a neighbor. It is in dotted decimal notation.
interface-type interface-number Specifies the type and number of an interface. -
weight value Specifies the weight of the next hop. The smaller the weight is, the higher the route preference is. It is an integer ranging from 1 to 254.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

After OSPFv3 calculates equal-cost routes, you can run the nexthop command to select the route with the highest preference from the equal-cost routes as the next hop. OSPFv3 selects a next hop from these equal-cost routes according to the weight. The smaller the weight is, the higher the route preference is.

Example

# Set the preference for equal-cost routes in OSPFv3.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] nexthop 10.2.2.2 gigabitethernet 1/0/0 weight 240

nssa (OSPFv3 Area)

Function

The nssa command configures an OSPFv3 area as an NSSA.

The undo nssa command cancels the configuration.

Format

nssa [ default-route-advertise [ cost cost | type type | tag tag ] * | no-import-route | no-summary | translator-always | translator-interval translator-interval | set-n-bit ] *

undo nssa

Parameters

Parameter Description Value
default-route-advertise Generates default Type7 LSAs on the ASBR and then advertises them to the NSSA.
NOTE:
The ABR generates a default NSSA LSA (Type7 LSA) automatically and advertises it in the NSSA.
-
cost cost Specifies the default cost of Type 7 LSAs. It is an integer ranging from 1 to 16777214. The default value is 1.
type type Specifies the type of the external routes.
The value is an integer ranging from 1 to 2. By default, it is 2.
  • 1: Type 1 external route
  • 2: Type 2 external route
tag tag Specifies the tag value of the OSPFv3 route imported to an NSSA. It is an integer ranging from 0 to 4294967295. The default value is 0.
no-import-route Indicates that no external routes are imported to NSSAs. -
no-summary Disables ABRs from sending summary LSAs to NSSAs. -
translator-always Specifies the ABR in an NSSA as the translator. Multiple ABRs in an NSSA can be configured as translators. -
translator-interval translator-interval Specifies the timeout period of a translator. It is an integer ranging from 1 to 120, in seconds. The default value is 40 seconds.
set-n-bit Indicates that the N-bit is set in DD packets. -

Views

OSPFv3 area view

Default Level

2: Configuration level

Usage Guidelines

If an area is configured to the nssa area, all industrial switch routers of the area must be configured with the NSSA attribute.

The area may be updated after NSSA attributes are configured or deleted. Thus, the NSSA attributes can be re-configured or deleted only after the last update of NSSA attributes is complete.

The keyword default-route-advertise is used to generate default Type 7 LSAs. Regardless of whether there is route ::/0 in the routing table on an ABR, a Type 7 LSA default route is generated. A Type 7 LSA default route can be generated only when there is route ::/0 in the routing table on an ASBR.

When an ASBR is also an ABR, you can specify no-import-route to disable OSPFv3 from advertising the external routes imported through the import-route command to NSSAs. To reduce the number of LSAs to be transmitted to NSSAs, you can specify no-summary on an ABR to disable the ABR from transmitting summary LSAs (Type 3 LSAs) to NSSAs.

NOTE:
  • When the LS age field (aging time) in the LSA header reaches 3600 seconds, this LSA is deleted.

  • After the keyword set-n-bit is set, a industrial switch router re-establishes neighbor relationships with industrial switch routers directly connected to it in the NSSA.

Example

# Configure Area 1 as an NSSA, and set the timeout period of the translator to 20s.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] area 1
[Huawei-ospfv3-1-area-0.0.0.1] nssa translator-interval 20

ospfv3

Function

The ospfv3 command enables an OSPFv3 process and bind it to a default or specified VPN instance.

The undo ospfv3 command disables the OSPFv3 process.

By default, the system does not support OSPFv3.

Format

ospfv3 [ process-id ] [ vpn-instance vpn-instance-name ]

undo ospfv3 process-id

Parameters

Parameter Description Value
process-id Specifies the OSPFv3 process ID. The value is an integer ranging from 1 to 65535. By default, it is 1.
vpn-instance vpn-instance-name Specifies the name of the VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Only when you configure the Route ID in the OSPFv3 view, the OSPFv3 process can run normally. Otherwise, the OSPFv3 process can be viewed but cannot generate LSAs.

If a VPN instance is specified, the OSPFv3 process belongs to the VPN instance. If no VPN instance is specified, the OSPFv3 process is a global instance.

NOTE:
Before configuring OSPFv3-related parameters, you must enable OSPFv3.

Example

# Enable the OSPFv3 protocol.

<Huawei> system-view
[Huawei] ospfv3

ospfv3 area

Function

The ospfv3 area command enables the OSPFv3 process on an interface and specifies the area the process belongs to.

The undo ospfv3 area command disables the OSPFv3 process on the interface.

By default, the OSPFv3 protocol is not enabled on the interface.

Format

ospfv3 process-id area area-id [ instance instance-id ]

undo ospfv3 process-id area area-id [ instance instance-id ]

Parameters

Parameter Description Value
process-id Specifies the OSPFv3 process ID. The value is an integer ranging from 1 to 65535.
area area-id Specifies the OSPFv3 area ID. The value of the area ID can be a decimal integer or in the IPv4 address format. The integer ranges from 0 to 4294967295.
instance instance-id Specifies the instance ID of the interface. The value is an integer ranging from 0 to 255. The default value is 0.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Before running this command on an interface, run the ipv6 enable command to enable IPv6 in the interface view.

Example

# Enable OSPFv3 in GigabitEthernet1/0/0, and enable OSPFv3 in area 1.

<Huawei> system-view
[Huawei] ipv6
[Huawei] ospfv3
[Huawei-ospfv3-1] router-id 10.1.1.1
[Huawei-ospfv3-1] quit
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] ipv6 enable
[Huawei-GigabitEthernet1/0/0] ospfv3 1 area 1

ospfv3 authentication-mode

Function

The ospfv3 authentication-mode command configures an authentication mode and a password for an OSPFv3 interface.

The undo ospfv3 authentication-mode command deletes the authentication mode and password configured for an OSPFv3 interface.

By default, no authentication mode or password are configured for any OSPFv3 interface.

Format

ospfv3 authentication-mode hmac-sha256 key-id key-id { plain plain-text | [ cipher ] cipher-text } [ instance instance-id ]

ospfv3 authentication-mode keychain keychain-name [ instance instance-id ]

undo ospfv3 authentication-mode hmac-sha256 key-id key-id [ plain plain-text | cipher cipher-text ] [ instance instance-id ]

undo ospfv3 authentication-mode keychain [ keychain-name ] [ instance instance-id ]

Parameters

Parameter Description Value
hmac-sha256 Configures the HMAC-SHA256 authentication mode. N/A
key-id key-id Specifies the key ID for authentication, which must be the same as the one configured at the other end. The value is an integer ranging from 1 to 255.
plain Configures the plaintext password type. Only a plaintext password can be entered, and the password is displayed in plaintext in the configuration file.
NOTICE:

If plain is selected, the password is saved in the configuration file in plain text. This brings security risks. It is recommended that you select cipher to save the password in cipher text.

N/A
plain-text Specifies a plaintext password. The value is a string of 1 to 255 characters, spaces not supported.
cipher Configures the ciphertext password type. You can enter either a plaintext or ciphertext password, but the password is displayed in ciphertext in the configuration file. N/A
cipher-text Specifies a ciphertext password. The value can be a string of 1 to 255 characters for plaintext passwords and 20 to 392 characters for ciphertext passwords, spaces not supported.
keychain Configures keychain authentication.
NOTE:

Before you configure keychain authentication, run the keychain command to configure a keychain, the key-id command to configure a key ID, the key-string command to configure a password, and the algorithm command to configure an algorithm. If these commands are not run, OSPFv3 authentication fails.

N/A
keychain-name Specifies a keychain name. The value is a string of 1 to 47 case-insensitive characters. Except the question mark (?) and space. However, when double quotation marks (") are used around the string, spaces are allowed in the string.
instance instance-id Specifies the ID of a VLAN to which the specified interface belongs. The value ranges from 0 to 255, with default value 0.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Due to inherent defects and flawed implementation of the TCP/IP protocol suite, there are an increasing number of attacks, which poses greater threats on TCP/IP networks than ever before. The attacks on network devices may lead to network failures. To configure an authentication mode and a password for an OSPFv3 interface to improve OSPFv3 network security, run the ospfv3 authentication-mode command.

Precautions

OSPFv3 interface authentication takes precedence over OSPFv3 area authentication.

To configure OSPFv3 area authentication, run the authentication-mode command.

Example

# Configure OSPFv3 HMAC-SHA256 authentication on GE0/0/1.

<Huawei> system-view
[Huawei] ipv6
[Huawei] ospfv3
[Huawei-ospfv3-1] router-id 10.1.1.1
[Huawei-ospfv3-1] quit
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] ipv6 enable
[Huawei-GigabitEthernet0/0/1] ospfv3 1 area 0
[Huawei-GigabitEthernet0/0/1] ospfv3 authentication-mode hmac-sha256 key-id 10 cipher huawei

ospfv3 cost

Function

The ospfv3 cost command sets the cost of the interface in different instances.

The undo ospfv3 cost command restores the default cost of the interface in different instances.

Format

ospfv3 cost cost [ instance instance-id ]

undo ospfv3 cost [ cost ] [ instance instance-id ]

Parameters

Parameter Description Value
cost Specifies the cost for running OSPFv3. The value is an integer ranging from 1 to 65535.
instance instance-id Specifies the instance ID of the interface. The value is an integer ranging from 0 to 255. The default value is 0.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Before running this command on an interface, run the ospfv3 area command on the interface to enable OSPFv3.

Example

# Set the cost for public instance to run OSPFv3 on GigabitEthernet1/0/0 to 33.

<Huawei> system-view
[Huawei] ipv6
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] ospfv3 1 area 1
[Huawei-GigabitEthernet1/0/0] ospfv3 cost 33

ospfv3 dr-priority

Function

The ospfv3 dr-priority command sets the priority of an interface that takes part in the DR or BDR election.

The undo ospfv3 dr-priority command restores the default value.

By default, the priority of an interface that takes part in the DR or BDR election is 1.

Format

ospfv3 dr-priority priority [ instance instance-id ]

undo ospfv3 dr-priority [ priority ] [ instance instance-id ]

Parameters

Parameter Description Value
priority Specifies the priority of the interface that candidates for DR or BDR. The value is an integer ranging from 0 to 255. The default value is 1.
instance instance-id Specifies the instance ID of the interface. The value is an integer ranging from 0 to 255. The default value is 0.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

The priority of the interface determines the qualification of the interface when electing DR or BDR. The interface with the higher priority is preferred.

Before running this command on an interface, run the ospfv3 area command on the interface to enable OSPFv3.

Example

# Set the priority of public instance for electing DR or BDR to 8 on GigabitEthernet1/0/0.

<Huawei> system-view
[Huawei] ipv6
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] ospfv3 1 area 1
[Huawei-GigabitEthernet1/0/0] ospfv3 dr-priority 8

ospfv3 mib-binding

Function

The ospfv3 mib-binding command binds an OSPFv3 process to SNMP and makes OSPFv3 respond to SNMP requests.

The undo ospfv3 mib-binding command disables the binding.

By default, there is no binding between the OSPFv3 process and SNMP.

Format

ospfv3 mib-binding process-id

undo ospfv3 mib-binding

Parameters

Parameter Description Value
process-id Specifies the OSPFv3 process ID. The value ranges from 1 to 65535.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When multiple OSPFv3 processes are enabled, you can bind OSPFv3 MIB to a process so that this process can be processed.

Before running this command, run the ospfv3 command in the system view to create an OSPFv3 process.

Example

# Bind OSPFv3 process to SNMP.

<Huawei> system-view
[Huawei] ospfv3
[Huawei-ospfv3-1] quit
[Huawei] ospfv3 mib-binding 100

# Disable the binding.

<Huawei> system-view
[Huawei] undo ospfv3 mib-binding

ospfv3 mtu-ignore

Function

The ospfv3 mtu-ignore command disables the MTU check on DD packets.

The undo ospfv3 mtu-ignore command restores the default value.

By default, the MTU check on DD packets is enabled.

Format

ospfv3 mtu-ignore [ instance instance-id ]

undo ospfv3 mtu-ignore [ instance instance-id ]

Parameters

Parameter Description Value
instance instance-id Specifies the interface instance ID. The value is an integer ranging from 0 to 255. The default value is 0.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Before running this command on an interface, run the ospfv3 area command on the interface to enable OSPFv3.

Example

# Disable OSPFv3 from checking the MTU of the DD packets.

<Huawei> system-view
[Huawei] ipv6
[Huawei] ospfv3
[Huawei-ospfv3-1] router-id 10.1.1.1
[Huawei-ospfv3-1] quit
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] ipv6 enable
[Huawei-GigabitEthernet1/0/0] ospfv3 1 area 1
[Huawei-GigabitEthernet1/0/0] ospfv3 mtu-ignore

ospfv3 network-type

Function

The ospfv3 network-type command sets the network type of the OSPFv3 interface.

The undo ospfv3 network-type command restores the default network type of the OSPFv3 interface.

By default, the network type of an interface is determined by the physical interface. The network type of Ethernet interface is broadcast, that of the serial interface (encapsulated with PPP or HDLC) is p2p, and that of ATM interface and Frame-relay interface is nbma.

Format

ospfv3 network-type { broadcast | nbma | p2mp [ non-broadcast ] | p2p } [ instance instance-id ]

undo ospfv3 network-type [ broadcast | nbma | p2mp [ non-broadcast ] | p2p ] [ instance instance-id ]

Parameters

Parameter Description Value
broadcast Indicates that the network type of the interface is changed to broadcast. -
nbma Indicates that the network type of the interface is changed to NBMA. -
p2mp Indicates that the network type of the interface is changed to point-to-multipoint. -
non-broadcast Indicates that the network type of the interface is changed to non-broadcast point-to-multipoint. -
p2p Indicates that the network type of the interface is changed to point-to-point. -
instance instance-id Specifies the instance ID of the interface. The value is an integer ranging from 0 to 255. The default value is 0.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Before configuring this command, you need to run the ospfv3 area command in the interface view to enable the OSPFv3 process.

Example

# Set network type of GigabitEthernet1/0/0 to NBMA.

<Huawei> system-view
[Huawei] ipv6
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] ospfv3 network-type nbma

ospfv3 peer router-id

Function

The ospfv3 peer router-id command sets the DR priority and IPv6 addresses for adjacent industrial switch routers on an NBMA network.

The undo ospfv3 peer router-id command removes the setting.

By default, the IPv6 addresses for the adjacent industrial switch routers on an NBMA network is not set.

Format

ospfv3 peer router-id router-id ipv6-address [ dr-eligible | cost cost | poll interval | instance instance-id ] *

undo ospfv3 peer router-id router-id [ ipv6-address ] [ dr-eligible | cost [ cost ] | poll [ interval ] | instance instance-id ] *

Parameters

Parameter Description Value
router-id Specifies the Router ID of the adjacent node. The value is in dotted decimal notation.
ipv6-address Specifies the Link-local address of the adjacent node. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
dr-eligible Specifies the neighbor can take part in the DR election. -
cost cost Specifies the cost of the interface on the neighbor industrial switch router of the NBMA network. The value is an integer ranging from 1 to 65535.
poll interval Specifies the interval for sending the polling Hello packet on the neighbor industrial switch router of the NBMA network. The value is an integer ranging from 1 to 65535.
instance instance-id Specifies the instance ID of the interface. The value is an integer ranging from 0 to 255. The default value is 0.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# On GigabitEthernet1/0/0, specify the peer end to take part in DR selection.

<Huawei> system-view
[Huawei] ipv6
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] ospfv3 peer router-id 1.1.1.1 FE80::1 dr-eligible
Related Topics

ospfv3 timer dead

Function

The ospfv3 timer dead command sets the dead interval of the OSPFv3 neighbor of the instance on the interface.

The undo ospfv3 timer dead command restores the default value.

By default, the dead interval of OSPFv3 neighbor is 40 seconds for the interface of P2P or Broadcast type. The dead interval of OSPFv3 neighbor is 120 seconds for the interface of P2MP or NBMA type.

Format

ospfv3 timer dead interval [ instance instance-id ]

undo ospfv3 timer dead [ interval ] [ instance instance-id ]

Parameters

Parameter Description Value
interval Indicates the dead interval of OSPFv3. The value is an integer ranging from 1 to 65535, in seconds.
instance instance-id Specifies the interface instance ID. The value is an integer ranging from 0 to 255. The default value is 0.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Dead interval of OSPFv3 neighbor refers to that the neighbor is invalid if the neighbor does not receive the Hello packets from its neighbor in the interval. The dead interval of industrial switch routers in the same network segment must be consistent.

Before running this command on an interface, run the ospfv3 area command on the interface to enable OSPFv3.

Example

# Set the dead interval of the neighbor to 80 seconds for GigabitEthernet1/0/0.

<Huawei> system-view
[Huawei] ipv6
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] ospfv3 timer dead 80
Related Topics

ospfv3 timer hello

Function

The ospfv3 timer hello command specifies the interval for sending Hello packets on the interface instance.

The undo ospfv3 timer hello command restores the default interval.

By default, for the interface of the P2P and broadcast type, the interval for sending Hello packets is 10 seconds. For the interface of the P2MP and NBMA type, the interval for sending Hello packets is 30 seconds.

Format

ospfv3 timer hello interval [ instance instance-id ]

undo ospfv3 timer hello [ interval ] [ instance instance-id ]

Parameters

Parameter Description Value
interval Indicates the interval for an interface to send the Hello packets. The value is an integer ranging from 1 to 65535, in seconds.
instance instance-id Specifies the interface instance ID. The value is an integer ranging from 0 to 255. The default value is 0.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Before running this command on an interface, run the ospfv3 area command on the interface to enable OSPFv3.

Example

# Set the interval for sending Hello packets on GigabitEthernet1/0/0 to 20 seconds.

<Huawei> system-view
[Huawei] ipv6
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] ospfv3 timer hello 20
Related Topics

ospfv3 timer poll

Function

The ospfv3 timer poll command sets the polling interval for sending Hello packets on NBMA network.

The undo ospfv3 timer poll command restores the default polling interval.

By default, the polling interval for sending Hello packets on NBMA network is 120 seconds.

Format

ospfv3 timer poll interval [ instance instance-id ]

undo ospfv3 timer poll [ interval ] [ instance instance-id ]

Parameters

Parameter Description Value
interval Specifies the polling interval of Hello packets. The value is an integer ranging from 1 to 65535, in seconds.
instance instance-id Specifies the instance ID of the interface. The value is an integer ranging from 0 to 255. The default value is 0.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

On the NBMA network, if a neighbor is invalid, you can configure industrial switch routers to send Hello packet based on the polling interval that is set by the ospfv3 timer poll command. The polling interval should be at least 4 times that of the Hello interval.

OSPFv3 does not support the configuration on a null interface.

Before running this command on an interface, run the ospfv3 area command on the interface to enable OSPFv3.

Example

# Set the polling interval for sending Hello packets on the GigabitEthernet1/0/0 to 130 seconds.

<Huawei> system-view
[Huawei] ipv6
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] ospfv3 timer poll 130

ospfv3 timer retransmit

Function

The ospfv3 timer retransmit command specifies the interval for retransmitting the LSA on the interface instance.

The undo ospfv3 timer retransmit command restores the default value.

By default, the interval for retransmitting LSAs is 5 seconds.

Format

ospfv3 timer retransmit interval [ instance instance-id ]

undo ospfv3 timer retransmit [ interval ] [ instance instance-id ]

Parameters

Parameter Description Value
interval Indicates the interval for retransmitting LSAs. The value is an integer ranging from 1 to 3600, in seconds.
instance instance-id Specifies the interface instance ID. The value is an integer ranging from 0 to 255. The default value is 0.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

After sending an LSA to its neighbor, a industrial switch router needs to wait for the Ack packet from the neighbor. If the industrial switch router does not receive the Ack packet in the retransmission interval, the industrial switch router retransmits the LSA.

The interval for retransmitting LSA between the neighboring industrial switch routers should not be set too short. Otherwise, it leads to unnecessary retransmission.

Before running this command on an interface, run the ospfv3 area command on the interface to enable OSPFv3.

Example

# Set the interval for retransmitting the LSA between GigabitEthernet1/0/0 and its neighboring industrial switch router to 12 seconds.

<Huawei> system-view
[Huawei] ipv6
[Huawei] ospfv3
[Huawei-ospfv3-1] router-id 10.1.1.1
[Huawei-ospfv3-1] quit
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] ipv6 enable
[Huawei-GigabitEthernet1/0/0] ospfv3 1 area 1
[Huawei-GigabitEthernet1/0/0] ospfv3 timer retransmit 12

ospfv3 trans-delay

Function

The ospfv3 trans-delay command sets the delay for transmitting LSA on an interface instance.

The undo ospfv3 trans-delay command restores the default value.

By default, the delay for transmitting LSA is 1 second.

Format

ospfv3 trans-delay interval [ instance instance-id ]

undo ospfv3 trans-delay [ interval ] [ instance instance-id ]

Parameters

Parameter Description Value
interval Indicates the delay for transmitting LSA on an interface. The value is an integer ranging from 1 to 800, in seconds. By default, it is 1 second.
instance instance-id Specifies the interface instance ID. The value is an integer ranging from 0 to 255. The default value is 0.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

The LSA in the LSDB of the local industrial switch router ages with time. The aging of the LSA increases by 1 per second, but the aging of the LSA does not change in the transmission process. Therefore, it is necessary to add the delay to the aging time of the LSA before the LSA is sent.

Before running this command on an interface, run the ospfv3 area command on the interface to enable OSPFv3.

Example

# Set the delay for transmitting LSA on GigabitEthernet1/0/0 to 3 seconds.

<Huawei> system-view
[Huawei] ipv6
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] ospfv3 trans-delay 3

ospfv3 valid-ttl-hops

Function

The ospfv3 valid-ttl-hops command enables OSPFv3 GTSM and sets a TTL value.

The undo ospfv3 valid-ttl-hops command disables OSPFv3 GTSM.

By default, OSPFv3 GTSM is disabled.

Format

ospfv3 valid-ttl-hops valid-ttl-hops-value [ vpn-instance vpn-instance-name ]

undo ospfv3 valid-ttl-hops [ valid-ttl-hops-value ] [ vpn-instance vpn-instance-name ]

Parameters

Parameter Description Value
valid-ttl-hops-value Specifies a TTL. The value is an integer ranging from 1 to 255.
vpn-instance vpn-instance-name Indicates the name of a VPN instance. If this parameter is specified, only the TTL values of the packets in the specified VPN instance are checked. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If an OSPFv3 network requires high security, you can configure OSPFv3 GTSM and an authentication mode to improve network security. During network attacks, attackers may simulate OSPFv3 packets and continuously send them to a device. If the packets are destined for the device, it directly sends them to the control plane for processing without validating them. As a result, the increased processing workload on the control plane results in high CPU usage. GTSM protects devices against potential attacks and improves system security by checking whether the TTL value in each IP packet header is within a pre-defined range.

To enable OSPFv3 GTSM, run the ospfv3 valid-ttl-hops. To check the TTL values of packets that match a GTSM policy in a specified VPN instance, specify vpn-instance in the command.

The ospfv3 valid-ttl-hops command enables OSPFv3 GTSM on both the public network and VPNs. For example, if you run the ospfv3 valid-ttl-hops 5 vpn-instance vpn1 command, OSPFv3 GTSM takes effect on both the public network and VPN 1, the TTL values of the OSPFv3 packets in the VPN 1 are checked, and the default action is performed on the packets that fail to match the GTSM policy.

Follow-up Procedure

GTSM checks the TTL values of only the packets that match a GTSM policy. For packets that do not match the GTSM policy, you can specify pass in the gtsm default-action command to allow these packets to pass the filtering or specify drop in the command to discard them.

Precautions

  • If a VPN instance is specified in the ospfv3 valid-ttl-hops command and an interface is bound to the VPN instance, the interface discards all received unicast packets if the set TTL value is less than the actual hop count on the network.
  • If a virtual link or sham link is deployed, configure a TTL value based on the actual hop count on the network (the number of routers through which the virtual link or sham link passes) to prevent the local router from discarding packets from neighbors over the virtual link or sham link.
  • Therefore, if you want to apply the configured TTL value to packets only in a VPN or the public network, specify pass in the gtsm default-action command to prevent the OSPFv3 packets in other instances from being discarded incorrectly.

Example

# Enable OSPFv3 GTSM and set the maximum number of TTL hops to 5 for the packets that can be received from the public network.

<Huawei> system-view
[Huawei] ospfv3 valid-ttl-hops 5

preference (OSPFv3)

Function

The preference command sets the preference for an OSPFv3 route.

The undo preference command restores the default setting.

By default, the preference of the OSPFv3 route is 10. When ASE is specified, the default value is 150.

Format

preference [ ase ] { preference | route-policy route-policy-name } *

undo preference [ ase ]

Parameters

Parameter Description Value
ase Sets the preference for an AS external route or an NSSA route. -
preference Specifies the preference for OSPFv3 routes. It is an integer ranging from 1 to 255.
route-policy route-policy-name Specifies the name of a routing policy and sets the preference for specified routes. The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

The smaller the preference value, the higher the preference.

Multiple dynamic routing protocols may be run on a industrial switch router at the same time. Consequently, there is a problem of sharing and selecting routing information among routing protocols. Therefore, the system sets a default reference for each routing protocol. If different routing protocols find multiple routes to the same destination, the route discovered by the routing protocol with a higher preference is selected to forward IP packets.

Example

# Set the preference for OSPFv3 routes.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] preference 5

reset ospfv3

Function

The reset ospfv3 command restarts the OSPFv3 process.

The reset ospfv3 counters command resets OSPFv3 statistics.

Format

reset ospfv3 { process-id | all } [ graceful-restart [ extend-period period ] ]

reset ospfv3 { process-id | all } counters [ neighbor [ interface-type interface-number ] [ router-id ] ]

Parameters

Parameter Description Value
process-id Specifies the OSPFv3 process number. The value is an integer that ranges from 1 to 65535.
all Restarts all OSPFv3 processes. -
graceful-restart Restarts the OSPFv3 process in GR mode. -
extend-period period Prolongs the current GR period. The value is an integer that ranges from 1 to 1800, expressed in seconds.
neighbor Resets neighbor statistics. -
interface-type interface-number Specifies the type and number of the interface. -
router-id Specifies the router ID of a neighbor. It is in dotted decimal notation.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

You can choose general restart or graceful restart through the parameters.

By setting extend-period, you can prolong the current GR period. The prolonged GR period becomes invalid after the process restarts. This parameter takes effect for one time. That is, after the industrial switch router performs GR next time, the value of the period returns to the one set by using graceful-restart [ extend-period period ].

If OSPFv3 connections are reset, OSPFv3 neighbor relationships will be interrupted and the original information cannot be restored. Exercise caution before running the reset ospfv3 command.

Example

# Reset OSPFv3 statistics.

<Huawei> reset ospfv3 1 counters

router-id (OSPFv3)

Function

The router-id command sets the Router ID for the industrial switch router that runs OSPFv3.

The undo router-id command deletes the Router ID that is set for OSPFv3 industrial switch router.

By default, there is no Router ID for the industrial switch router that runs OSPFv3.

Format

router-id router-id

undo router-id

Parameters

Parameter Description Value
router-id Indicates the Router ID. It is in dotted decimal notation.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

The Router ID of an OSPFv3 process is unique in an AS. If no Router ID is set, the OSPFv3 process does not run.

When you set a Router ID, ensure that the Router IDs of any two processes are different in an AS.

NOTE:

Multiple OSPFv3 processes can run on a industrial switch router by setting the different process ID. In this case, you need to specify different Router IDs for different processes.

Example

# Set the Router ID of the OSPFv3 process 1 to 10.1.1.3.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] router-id 10.1.1.3
Related Topics

sham-hello enable (OSPFv3)

Function

The sham-hello enable command enables OSPFv3 to regard the LSU packets and the LSAck packets the same as the Hello packets.

The undo sham-hello command disables the operation.

By default, the sham-hello feature is disabled.

Format

sham-hello enable

undo sham-hello

Parameters

none

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

The sham-hello enable command, OSPFv3 can regard the LSU packets and the LSAck packets the same as the Hello packets. After receiving this kind of packets, OSPFv3 refreshes the timeout timer of the neighbors to maintain the integrity of their relationship.

Example

# Enable sham-hello.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] sham-hello enable

silent-interface (OSPFv3)

Function

The silent-interface command suppresses the specified interface from sending and receiving OSPFv3 packets.

The undo silent-interface command restores the default setting.

By default, the interface is permitted to send or receive OSPFv3 packets.

Format

silent-interface interface-type interface-number

undo silent-interface interface-type interface-number

Parameters

Parameter Description Value
interface-type interface-number Indicates the interface type and interface number. -

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

Different processes can suppress the same interface from sending and receiving OSPFv3 packets. But the silent-interface command takes effect only on the OSPFv3 interface of the process.

Example

# Suppress GigabitEthernet1/0/0 from sending and receiving OSPFv3 packets.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] silent-interface GigabitEthernet 1/0/0

snmp-agent trap enable feature-name ospfv3

Function

The snmp-agent trap enable feature-name ospfv3 command enables the trap function for the OSPFv3 module.

The undo snmp-agent trap enable feature-name ospfv3 command disables the trap function for the OSPFv3 module.

By default, all traps function of the OSPFv3 module are disabled.

Format

snmp-agent trap enable feature-name ospfv3 [ trap-name { ifconfigerror | ifrxbadpacket | ifstatechange | nbrrestarthelperstatuschange | nbrstatechange | nssatranslatorstatuschange | restartstatuschange | virtifconfigerror | virtifrxbadpacket | virtifstatechange | virtnbrrestarthelperstatuschange | virtnbrstatechange | authenticationsequencenumberwrap | lastauthenticationkeyexpiry } ]

undo snmp-agent trap enable feature-name ospfv3 [ trap-name { ifconfigerror | ifrxbadpacket | ifstatechange | nbrrestarthelperstatuschange | nbrstatechange | nssatranslatorstatuschange | restartstatuschange | virtifconfigerror | virtifrxbadpacket | virtifstatechange | virtnbrrestarthelperstatuschange | virtnbrstatechange | authenticationsequencenumberwrap | lastauthenticationkeyexpiry } ]

Parameters

Parameter Description Value
trap-name Enables the traps of OSPFv3 events of specified types. -
ifconfigerror Enables the traps of errors of the interface configuration. -
ifrxbadpacket Enables the traps of received bad packets. -
ifstatechange Enables the traps of changes of the interface state. -
nbrrestarthelperstatuschange Enables the traps of changes of the state of the helper during GR. -
nbrstatechange Enables the traps of changes of the neighbor state. -
nssatranslatorstatuschange Enables the traps of changes of the NSSA translator state. -
restartstatuschange Enables the traps of changes of the state of the restarter during GR. -
virtifconfigerror Enables the traps of error of the virtual interface configuration. -
virtifrxbadpacket Enables the traps of the bad packet that is received on the virtual interface. -
virtifstatechange Enables the traps of changes of the virtual interface state. -
virtnbrrestarthelperstatuschange Enables the traps of changes of the GR helper state of neighboring nodes on the virtual link. -
virtnbrstatechange Enables the traps of changes of the state for the neighbor of the virtual-link. -
authenticationsequencenumberwrap Enables the trap for cryptographic sequence number wrapping. -
lastauthenticationkeyexpiry Enables the trap for last authentication key in keychain expiry. -

Views

System view

Default Level

3: Management level

Usage Guidelines

To enable the traps of one or more events, you can specify trap-name.

NOTE:
  • The non-excessive traps of OSPFv3 module includes:
    • VirtIfStateChange

    • NbrStateChange

    • VirtNbrStateChange

    • IfConfigError

    • VirtIfConfigError

    • IfRxBadPacket

    • VirtIfRxBadPacket

    • IfStateChange

    • RestartStatusChange

    • NbrRestartHelperStatusChange

    • NSSATransLlatorStatusChange

    • VirtNbrRestartHelperStatusChange

    • authenticationsequencenumberwrap

    • lastauthenticationkeyexpiry

  • OSPFv3 module has no excessive trap.

Example

# Enable the industrial switch router to send the trap of errors of the OSPFv3 interface configuration.

<Huawei> system-view
[Huawei] snmp-agent trap enable feature-name ospfv3 trap-name ifconfigerror

spf timers

Function

The spf timers command sets the interval for calculating OSPFv3 routes by a common SPF timer.

The undo spf timers command restores the default setting.

By default, the interval for calculating OSPFv3 routes by a common SPF timer is not set.

Format

spf timers delay-interval hold-interval

undo spf timers

Parameters

Parameter Description Value
delay-interval Specifies the delay for OSPFv3 from receiving network changes to performing SPF calculation. The value is an integer ranging from 0 to 65535 seconds. By default, it is 5 seconds.
hold-interval Specifies the hold interval between two consecutive SPF calculations. The value is an integer ranging from 0 to 65535 seconds. By default, it is 10 seconds.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

According to the local LSDB, the industrial switch router that runs OSPFv3 can calculate a SPT with itself as the root and determines the next hop to the destination network according to the SPT. Adjusting SPF calculation interval can avoid the exhaustion of bandwidth and industrial switch router sources caused by frequent change of the network.

NOTE:
A common SPF timer and an intelligent SPF timer are mutually exclusive.

Example

# Set both the OSPFv3 route calculation interval and the hold interval to 6 seconds.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] spf timers 6 6

spf-schedule-interval (OSPFv3)

Function

The spf-schedule-interval command sets the interval for OSPFv3 to calculate routes by an intelligent SPF timer.

The undo spf-schedule-interval command restores the default setting.

By default, the intelligent timer is enabled. The interval for the SPF calculation is expressed in milliseconds. The maximum interval for the SPF calculation is 10000 ms, the initial interval is 500 ms, and the Holdtime interval is 2000 ms.

Format

spf-schedule-interval { delay-interval hold-interval | intelligent-timer max-interval start-interval hold-interval-1 }

undo spf-schedule-interval

Parameters

Parameter Description Value
delay-interval Specifies the delay from the time when OSPFv3 receives a route change to the time when the SPF calculation is performed. The value is an integer ranging from 0 to 65535, in seconds. The default value is 5.
hold-interval Specifies the hold interval between two consecutive SPF calculations. The value is an integer ranging from 0 to 65535, in seconds. The default value is 10.
intelligent-timer Specifies the SPF calculation interval set through an intelligent timer. -
max-interval Specifies the maximum interval for performing the SPF calculation. The value is an integer ranging from 1 to 20000, in milliseconds. The default value is 10000.
start-interval Specifies the initial interval for performing the OSPFv3 SPF calculation. The value is an integer ranging from 1 to 1000, in milliseconds. The default value is 500.
hold-interval-1 Specifies the hold interval for performing the OSPFv3 SPF calculation. The value is an integer ranging from 1 to 5000, in milliseconds. The default value is 2000.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

Based on the local LSDB, a device that runs OSPFv3 uses the SPF algorithm to calculate the shortest path tree with itself as the root, and determines the next hop to the destination network based on the shortest path tree. Adjusting the interval at which the SPF calculation is performed can prevent too many bandwidth resources and device resources from being consumed due to frequent network changes.

NOTE:
A common SPF timer and an intelligent SPF timer are mutually exclusive.

Configuration Impact

After this command is configured, the interval for the SPF calculation is as follows:

  1. The initial interval for the SPF calculation is specified by the parameter start-interval.
  2. The interval for the SPF calculation for the nth (n≥2) time is equal to hold-interval×2(n-2).
  3. When the interval specified by hold-interval×2(n-2) reaches the maximum interval specified by max-interval, OSPFv3 performs SPF calculation at the maximum interval until max-interval expires without flapping or the OSPF process is restarted.

Example

# Set the interval at which OSPFv3 route calculation is performed to 5s and the hold interval at which OSPFv3 route calculation is performed to 6s.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] spf-schedule-interval 5 6

# Set the maximum interval for performing the SPF calculation to 10000 ms, the initial interval to 700 ms, and the hold interval to 4000 ms.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] spf-schedule-interval intelligent-timer 10000 700 4000

stub (OSPFv3 Area)

Function

The stub command sets an OSPFv3 area to the stub area.

The undo stub command cancels the settings.

By default, no area is set to the stub area.

Format

stub [ no-summary ]

undo stub

Parameters

Parameter Description Value
no-summary Indicates that the parameter is used only for the ABR of the stub area. After the parameter is configured, ABR advertises only one summary-LSA of the default route, and does not generate any other summary-LSA. This area is also called a totally stub area. -

Views

OSPFv3 area view

Default Level

2: Configuration level

Usage Guidelines

If an area is configured to the stub area, all industrial switch routers of the area must be configured with the stub attribute.

The backbone area cannot be configured as a stub area.

Example

# Set the OSPFv3 area 1 to the stub area.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] area 1
[Huawei-ospfv3-1-area-0.0.0.1] stub

stub-router (OSPFv3)

Function

The stub-router command configures a device as stub router.

The undo stub-router command restores the default configuration.

By default, no stub router exists.

Format

stub-router [ on-startup [ interval ] ]

undo stub-router

Parameters

Parameter Description Value
on-startup [ interval ] Specifies the interval during which a device acts as a stub router when the device is restarted or faulty.
  • If on-startup is not specified, the device is always a stub router, even if the cost of all routes advertised by the device is 65535.
  • If on-startup is specified, the device works as a stub router only when it restarts or is faulty. The hold time of the stub router state is determined by interval parameter. If the interval parameter is not configured, the default interval (500 seconds) is used.
The value is an integer ranging from 5 to 65535, in seconds. By default, it is 500 seconds.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

After the stub-router command is configured on a industrial switch router, the stub router informs other OSPFv3 devices not to use this stub router for data forwarding by increasing the metrics of the links in the Router-LSA generated by the industrial switch router. Since the metric is not infinite, the devices to this stub router still exist. The metrics of all links in the device Router-LSAs generated by the stub router are set to 65535.

Example

# Configure the device as a stub router.

<Huawei> system-view
[Huawei] ospfv3 1
[Huawei-ospfv3-1] stub-router

reset ospfv3 statistics maxage-lsa

Function

The reset ospfv3 statistics maxage-lsa command deletes the statistics about router LSAs that have reached the maximum aging time.

Format

reset ospfv3 [ process-id ] statistics maxage-lsa

Parameters

Parameter Description Value
process-id Specifies the ID of an OSPFv3 process. The value is an integer ranging from 1 to 65535.

Views

All views

Default Level

2: Configuration level

Usage Guidelines

After the statistics about router LSAs that have reached the maximum aging time are deleted, OSPFv3 services are not affected.

Statistics cannot be restored after being deleted. Therefore, exercise caution when running the command.

Example

# Delete the statistics about router LSAs that have reached the maximum aging time.

<Huawei> reset ospfv3 statistics maxage-lsa
Translation
Download
Updated: 2019-02-18

Document ID: EDOC1000097293

Views: 35258

Downloads: 101

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next