07-Layer 3 - IP Routing Command Reference

HomeSupportSwitchesH3C S12500 Switch SeriesReference GuidesCommand ReferencesH3C S12500 Command References-Release1828P04-6W18207-Layer 3 - IP Routing Command Reference
11-OSPFv3 Commands
Title Size Download
11-OSPFv3 Commands 254.94 KB

abr-summary (OSPFv3 area view)

Syntax

abr-summary ipv6-address prefix-length [ not-advertise ]

undo abr-summary ipv6-address prefix-length

View

OSPFv3 area view

Default level

2: System level

Parameters

ipv6-address: Specifies the destination IPv6 address of the summary route.

prefix-length: Specifies the prefix length of the destination IPv6 address, in the range of 0 to 128. This argument specifies the number of consecutive 1s of the prefix, which defines the network ID.

not-advertise: Specifies not to advertise the summary IPv6 route.

Description

Use abr-summary to configure an IPv6 summary route on an area border router.

Use undo abr-summary to remove an IPv6 summary route. Then the summarized routes are advertised.

By default, no route summarization is available on an ABR.

You can use this command only on an ABR to configure a summary route for the area. The ABR advertises only the summary route to other areas. Multiple contiguous networks might be available in an area, where you can summarize them with one route for advertisement.

Examples

# Summarize networks 2000:1:1:1::/64 and 2000:1:1:2::/64 in Area 1 with 2000:1:1::/48.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] area 1

[Sysname-ospfv3-1-area-0.0.0.1] abr-summary 2000:1:1:: 48

area (OSPFv3 view)

Syntax

area area-id

View

OSPFv3 view

Default level

2: System level

Parameters

area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is translated into an IPv4 address by the system.

Description

Use area to enter OSPFv3 area view.

The undo form of the command is not available. An area is removed automatically if there is no configuration and no interface is up in the area.

Examples

# Enter OSPFv3 Area 0 view.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] area 0

[Sysname-ospfv3-1-area-0.0.0.0]

bandwidth-reference

Syntax

bandwidth-reference value

undo bandwidth-reference

View

OSPFv3 view

Default level

2: System level

Parameters

value: Specifies the bandwidth reference value for link cost calculation, in the range of 1 to 2147483648 Mbps.

Description

Use bandwidth-reference to specify a reference bandwidth value for link cost calculation.

Use undo bandwidth-reference to restore the default value.

The default value is 100 Mbps.

You can configure an OSPFv3 cost for an interface with one of the following two methods:

·     Configure the cost value in interface view.

·     Configure a bandwidth reference value, and OSPFv3 computes the cost automatically based on the bandwidth reference value: Interface OSPFv3 cost = Bandwidth reference value/Interface bandwidth. If the calculated cost is greater than 65535, the value of 65535 is used.

If no cost value is configured for an interface, OSPFv3 automatically computes the interface cost value.

Examples

# Specify the reference bandwidth value as 1000 Mbps.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] bandwidth-reference 1000

default cost

Syntax

default cost value

undo default cost

View

OSPFv3 view

Default level

2: System level

Parameters

value: Specifies a default cost for redistributed routes, in the range of 0 to 16777214.

Description

Use default cost to configure a default cost for redistributed routes.

Use undo default cost to restore the default.

By default, the default cost is 1.

You need to configure the default cost value for redistributed routes to advertise them throughout the whole AS.

If multiple OSPFv3 processes are available, use of this command takes effect for the current process only.

Examples

# Specify the default cost for redistributed routes as 10.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] default cost 10

default-cost (OSPFv3 area view)

Syntax

default-cost value

undo default-cost

View

OSPFv3 area view

Default level

2: System level

Parameters

value: Specifies a cost for the default route advertised to the stub area, in the range of 0 to 16777214. The default is 1.

Description

Use default-cost to specify the cost of the default route to be advertised to the stub area or NSSA area.

Use undo-default-cost to restore the default.

By default, the cost of the default route advertised to the stub area or NSSA area is specified by the default-cost command. For a stub area, the setting is the cost of the default route. For an NSSA area, the setting is the cost of the default Inter-Area-Prefix-LSA route.

If multiple OSPFv3 processes are running, use of this command takes effect only for the current process.

Examples

# Configure Area 1 as a stub area, and specify the cost of the default route advertised to the stub area as 60.

<Sysname> system-view

[Sysname] ospfv3

[Sysname-ospfv3-1] area 1

[Sysname-ospfv3-1-area-0.0.0.1] stub

[Sysname-ospfv3-1-area-0.0.0.1] default-cost 60

default-route-advertise

Syntax

default-route-advertise [ always | cost value | route-policy route-policy-name | type type ] *

undo default-route-advertise

View

OSPFv3 view

Default level

2: System level

Parameters

always: Generates a default route in an ASE LSA into the OSPFv3 routing domain regardless of whether the default route exists in the  routing table. Without this keyword, the command can distribute a default route in a Type-5 LSA into the OSPFv3 routing domain only when the default route exists in the routing table.

cost value: Specifies a cost for the default route, in the range of 0 to 16777214. Without this option, the default cost is specified by the default cost command.

route-policy route-policy-name: Specifies a routing policy, the name of which is a case-sensitive string of 1 to 63 characters.

type type: Specifies a type for the ASE LSA: 1 or 2. The default is 2.

Description

Use default-route-advertise to generate a default route into the OSPFv3 routing domain.

Use undo default-route-advertise to disable OSPFv3 from redistributing a default route.

By default, no default route is redistributed.

Using the import-route command cannot redistribute a default route. To do so, you need to use the default-route-advertise command. If no default route exists in the router's routing table, use the default-route-advertise always command to generate a default route in a Type-5 LSA.

You can reference a routing policy to set the cost and type of the default route:

·     The default route passing the routing policy uses the cost set by the apply cost clause, and the type set by the apply cost-type clause in the routing policy.

·     The default route cost's priority from high to low is: the cost set by the apply cost clause in the routing policy, the one set by the default-route-advertise command and the one set by the default cost command.

·     The default route type's priority from high to low is: the type set by the apply cost-type clause in the routing policy, and the one set by the default-route-advertise command.

·     If the always keyword is included, the default route is advertised regardless of whether it passes the routing policy and uses the cost and type specified by the apply cost, apply cost-type clauses in the first node of the routing policy.

Related commands: import-route.

Examples

# Generate a default route into the OSPFv3 routing domain.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] default-route-advertise always

display ospfv3

Syntax

display ospfv3 [ process-id ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ospfv3 to display the brief information of an OSPFv3 process. If no process ID is specified, OSPFv3 brief information about all processes will be displayed.

Examples

# Display brief information about all OSPFv3 processes.

<Sysname> display ospfv3

Routing Process "OSPFv3 (1)" with ID 1.1.1.1

 

Graceful restart restarter enabled

 Graceful restart helper enabled

 Graceful restart helper srtict-lsa-checking enabled

 Graceful restart interval 150 secs

 SPF schedule delay 5 secs, Hold time between SPFs 10 secs

 Minimum LSA interval 5 secs, Minimum LSA arrival 1 secs

 Number of external LSA 2. These external LSAs' checksum Sum 0x20C8

 Number of AS-Scoped Unknown LSA 0

 Number of LSA originated 3

 Number of LSA received 0

 Number of areas in this router is 2

  Area BACKBONE(0)

       Number of interfaces in this area is 1

       SPF algorithm executed 3 times

       Number of LSA 4. These LSAs' checksum Sum 0x5CB6

       Number of Unknown LSA 0

  Area 0.0.0.1(NSSA)

       Number of interfaces in this area is 1

       SPF algorithm executed 1 times

       Translator state: Disabled

       Translate stability timer interval: 10s (5s left)

       Number of LSA 2. These LSAs' checksum Sum 0x20C8

       Number of Unknown LSA 0

Table 1 Command output

Field

Description

Routing Process "OSPFv3 (1)" with ID 1.1.1.1

OSPFv3 process is 1, and router ID is 1.1.1.1.

Graceful restart restarter enabled

The current process supports GR.

Graceful restart helper enabled

The current process supports the GR helper capability.

Graceful restart helper srtict-lsa-checking enabled

The current process supports GR helper strict LSA checking.

Graceful restart interval 150 secs

GR restart interval.

SPF schedule delay

Delay interval of SPF calculation.

Hold time between SPFs

Hold time between SPF calculations.

Minimum LSA interval

Minimum interval for generating LSAs.

Minimum LSA arrival

Minimum LSA repeat arrival interval.

Number of external LSA

Number of ASE LSAs.

These external LSAs' checksum Sum

Sum of all the ASE LSAs' checksum.

Number of AS-Scoped Unknown LSA

Number of LSAs with unknown flooding scope.

Number of LSA originated

Number of LSAs originated.

Number of LSA received

Number of LSAs received.

Number of areas in this router

Number of areas this router is attached to.

Area

Area ID.

Number of interfaces in this area

Number of interfaces attached to this area.

SPF algorithm executed 1 times

SPF algorithm is executed 1 time.

Translator state

Translator status:

·     EnabledThe translator is specified by command.

·     ElectedThe translator is elected.

·     DisabledThe device is not a translator.

Translators refer to devices that are capable of translating NSSA-external-LSAs to AS-external-LSAs.

Translate stability timer interval

Stability interval of the translator.

Number of LSA

Number of LSAs.

These LSAs' checksum Sum

Sum of all LSAs' checksum.

Number of Unknown LSA

Number of unknown LSAs.

 

display ospfv3 graceful-restart status

Syntax

display ospfv3 [ process-id  ] graceful-restart status [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ospfv3 graceful-restart status to display GR status of the specified OSPFv3 process.

If no process ID is specified, GR status of all processes will be displayed.

Examples

# Display GR status of all OSPFv3 processes (GR restarter).

<Sysname> display ospfv3 graceful-restart status

           OSPFv3 Router with ID (1.1.1.1) (Process 1)

             graceful restart  information

GR status        :GR in progress

GR remaining time: 100

# Display GR status of all OSPFv3 processes (GR helper).

<Sysname> display ospfv3 graceful-restart status

           OSPFv3 Router with ID (1.1.1.1) (Process 1)

             graceful restart  information

GR status:Helper

Neighbor ID    Interface  Instance ID  Remaining time

1.1.1.1        Vlan1000   1            100

Table 2 Command output

Field

Description

OSPFv3 Router with ID (1.1.1.1) (Process 1)

graceful restart information

The GR status of OSPFv3 process 1 with router ID 1.1.1.1 is displayed.

GR status

GR status:

·     GR in progress—GR is in process.

·     Calculating routesRoute calculation is in process.

·     Flushing LSAsThe switch is flushing stale LSA.

·     NormalThe switch is not in GR or helper status.

·     Helper—Helper status.

GR remaining time

Remaining time before the GR timer expires.

Neighbor ID

Router ID of the neighbor router.

Interface

Output interface.

Instance ID

Instance ID.

 

display ospfv3 interface

Syntax

display ospfv3 interface [ interface-type interface-number | statistic ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface-type interface-number: Specifies an interface by its type and number.

statistic: Displays the interface statistics.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ospfv3 interface to display OSPFv3 interface information.

Examples

# Display OSPFv3 interface information on VLAN-interface 10.

<Sysname> display ospfv3 interface vlan-interface 10

Vlan-interface 10 is up, line protocol is up

  Interface ID 518

  IPv6 Prefixes

    FE80::1441:0:E213:1 (Link-Local Address)

    2000:1::1

  OSPFv3 Process (1), Area 0.0.0.1, Instance ID 0

    Router ID 2.2.2.2, Network Type POINTOPOINT, Cost: 1562

    Transmit Delay is 1 sec, State Point-To-Point, Priority 1

    No designated router on this link

    No backup designated router on this link

    Timer interval configured, Hello: 10, Dead: 40, Wait: 40, Retransmit: 5

       Hello due in 00:00:02

Neighbor Count is 1, Adjacent neighbor count is 1

    IPsec policy name: policy001, SPI: 300

    BFD: Enabled

Table 3 Command output

Field

Description

Interface ID

Interface ID.

IPv6 Prefixes

IPv6 Prefix.

OSPFv3 Process

OSPFv3 Process.

Area

Area ID.

Instance ID

Instance ID.

Router ID

Router ID.

Network Type

Network type of the interface.

Cost

Cost value of the interface.

Transmit Delay

Transmission delay of the interface.

State

Interface state.

Priority

DR priority of the interface.

No designated router on this link

No designated router on this link.

No backup designated router on this link

No backup designated router on this link.

Timer interval configured

Time intervals in seconds configured on the interface:

·     Hello—Hello interval.

·     Dead—Dead interval.

·     Wait—After this timer expires, the interface quits from the waiting state.

·     Retransmit—LSA retransmission interval.

Hello due in 00:00:02

Hello packet will be sent in 2 seconds.

Neighbor Count

Number of Neighbors on the interface.

Adjacent neighbor count

Number of Adjacencies on the interface.

SPI

SPI defined in the IPsec policy.

BFD

BFD status on the interface (enabled or disabled).

 

display ospfv3 lsdb

Syntax

display ospfv3 [ process-id ] lsdb [ { external | grace | inter-prefix | inter-router | intra-prefix | link | network |nssa |  router } [ link-state-id ] [ originate-router router-id ] | total ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.

external: Displays information about AS-external LSAs.

grace: Displays information about Grace-LSAs.

inter-prefix: Displays information about Inter-area-prefix LSAs.

inter-router: Displays information about Inter-area-router LSAs.

intra-prefix: Displays information about Intra-area-prefix LSAs.

link: Displays information about Link-LSAs.

network: Displays information about Network-LSAs.

Nssa: Displays information about NSSA-external-LSAs.

router: Displays information about Router-LSAs.

link-state-id: Specifies a link state ID, an IPv4 address.

originate-router router-id: Specifies an advertising router by its ID.

total: Displays the LSA statistics in the LSDB.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ospfv3 lsdb to display OSPFv3 LSDB information.

Examples

# Display OSPFv3 LSDB information.

<Sysname> display ospfv3 lsdb

           OSPFv3 Router with ID (2.2.2.2) (Process 1)

 

               Link-LSA (Interface Vlan-interface11)

 

Link State ID   Origin Router    Age   SeqNum     CkSum  Prefix

0.0.2.6         1.1.1.1          0055  0x80000001 0x4642      0

0.0.2.6         2.2.2.2          0053  0x80000001 0xf267      0

 

               Grace-LSA (Interface Vlan-interface11)

 

Link State ID   Origin Router    Age   SeqNum     CkSum

0.0.2.6         1.1.1.1          100   0x8000004  0xba1f

 

               Router-LSA (Area 0.0.0.1)

 

Link State ID   Origin Router    Age   SepNum       CkSum    Link

0.0.0.0         1.1.1.1          0050  0x80000002 0x12d1     1

0.0.0.0         2.2.2.2          0048  0x80000002 0xa142     1

 

               NSSA-external-LSA (Area 0.0.0.1)

 

Link State ID   Origin Router    Age   SeqNum     CkSum

0.0.0.1         2.2.2.2          0005  0x80000001 0x5d23

Table 4 Command output

Field

Description

Link State ID

Link State ID.

Origin Router

Originating Router.

Age

Age of LSAs.

SeqNum

LSA sequence number.

CkSum

LSA Checksum.

Prefix

Number of Prefixes.

Link

Number of links.

Reference

Type of referenced LSA.

 

# Display Link-local LSA information in the LSDB.

<Sysname> display ospfv3 lsdb link

            OSPFv3 Router with ID (2.2.2.2) (Process 1)

 

                Link-LSA (Interface Vlan-interface11)

 

  LS age: 11

  LS Type: Link-LSA

  Link State ID: 0.0.2.6

  Originating Router: 2.2.2.2

  LS Seq Number: 0x80000002

  Checksum: 0xEFFA

  Length: 56

  Priority: 1

  Options: 0x000013 (-|R|-|x|E|V6)

  Link-Local Address: FE80::1441:0:E213:1

  Number of Prefixes: 1

    Prefix: 2000:1::/64

    Prefix Options: 0 (-|-|x|-|-)

Table 5 Command output

Field

Description

LS age

Age of LSA.

LS Type

Type of LSA.

Link State ID

Link state ID.

Originating Router

Originating Router.

LS Seq Number

LSA Sequence Number.

Checksum

LSA Checksum.

Length

LSA Length.

Priority

Router Priority.

Options

Options.

Link-Local Address

Link-Local Address.

Number of Prefixes

Number of Prefixes.

Prefix

Address prefix.

Prefix Options

Prefix options.

 

# Display NSSA-external-LSA information in the LSDB.

<Sysname> display ospfv3 lsdb nssa

OSPFv3 Router with ID (1.1.1.1) (Process 1)

 

                NSSA-external-LSA (Area 0.0.0.1)

 ----------------------------------------------------------------

  LS age            : 248

  LS Type           : NSSA-External-LSA

  Link State ID     : 0.0.0.1

  Originating Router: 2.2.2.2

  LS Seq Number     : 0x80000001

  Checksum          : 0x5D23

  Length            : 44

      Metric Type   : 2 (Larger than any link state path)

      Metric        : 1

      Prefix        : 1::1/128

      Prefix Options: 0 (-|P|x|-|-)

      Forward Address: 170::5

Table 6 Command output

Field

Description

LS age

Age of LSA.

LS Type

Type of LSA.

Originating Router

Originating router.

LS Seq Number

LSA sequence number.

Checksum

LSA checksum.

Length

LSA length.

Metric Type

Cost type.

Metric

Cost.

Prefix

Address prefix.

Prefix Options

Prefix options. P-bit indicates that the translation of NSSA-external-LSAs to AS-external-LSAs is available.

Forward Address

Forwarding address.

 

# Display LSA statistics in the LSDB.

<Sysname> display ospfv3 lsdb total

            OSPFv3 (Process 1) Database Total

 

  Type Of LSA                      Number

  Router-LSA              :        1

  Network-LSA             :        0

  Inter-Area-Prefix-LSA   :        0

  Inter-Area-Router-LSA   :        0

  AS-external-LSA         :        0

  NSSA-external-LSA       :        1

  Link-LSA                :        1

  Intra-Area-Prefix-LSA   :        0

  Grace-LSA               :        0

  Unknown-LSA             :        0

 

  Total Number Of LSAs    :        3

Table 7 Command output

Field

Description

Type Of LSA

Type of LSA.

Number

Number of LSAs.

Unknown-LSA

Unknown LSA.

Total Number Of LSAs

Total number of LSAs.

 

display ospfv3 lsdb statistic

Syntax

display ospfv3 lsdb statistic [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ospfv3 lsdb statistic to display LSA statistics in the OSPFv3 LSDB.

Examples

# Display OSPFv3 LSDB statistics.

<System> display ospfv3 lsdb statistic

 

            OSPFv3 Router with ID (1.1.1.1) (Process 1)

                           LSA Statistics

ASE :100--------------------------------------------------------------------------

Area ID         Router   Network  InterPre InterRou IntraPre Link Grace NSSA

0.0.0.0         2        1        1        0        1                   0

0.0.0.1         1        0        1        0        1                   1

Total           3        1        2        0        2        3    0     1

Table 8 Command output

Field

Description

Area ID

Area ID.

Router

Router-LSA number.

Network

Network-LSA number.

InterPre

Inter-Area-Prefix-LSA number.

InterRou

Inter-Area-Router-LSA number.

IntraPre

Intra-Area-Prefix-LSA number.

Link

Link-LSA number.

Grace

Grace-LSA number.

NSSA

NSSA-external-LSA number.

ASE

AS-external-LSA number.

Total

Total LSA number.

 

display ospfv3 next-hop

Syntax

display ospfv3 [ process-id ] next-hop [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ospfv3 next-hop to display OSPFv3 next hop information.

If no process is specified, next hop information of all OSPFv3 processes is displayed.

Examples

# Display OSPFv3 next hop information.

<Sysname> display ospfv3 next-hop

 

            OSPFv3 Router with ID (2.2.2.2) (Process 1)

Neighbor-Id     Next-Hop                              Interface   RefCount

1.1.1.1         FE80::20F:E2FF:FE00:1                 GE1/1/1      1

Table 9 Command output

Field

Description

Neighbor-Id

Neighboring router ID.

Next-hop

Next-hop address.

Interface

Output interface.

RefCount

Reference count.

 

display ospfv3 peer

Syntax

display ospfv3 [ process-id ] [ area area-id ] peer [ [ interface-type interface-number ] [ verbose ] | peer-router-id ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.

area: Specifies to display neighbor information of the specified area.

area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is translated into an IPv4 address by the system.

interface-type interface-number: Specifies an interface by its type and number.

verbose: Displays detailed neighbor information.

peer-router-id: Specifies a neighbor by its router ID.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ospfv3 peer to display OSPFv3 neighbor information.

·     If no area-id is specified, the neighbor information of all areas is displayed.

·     If no process-id is specified, the information of all processes is displayed.

·     If no interface or neighbor Router-ID is specified, the neighbor information of all interfaces is displayed.

Examples

# Display the neighbor information of OSPFv3 process 1 on an interface.

<Sysname> display ospfv3 1 peer vlan-interface 10

                      OSPFv3 Process (1)

Neighbor ID     Pri   State            Dead Time   Interface  Instance ID

1.1.1.1         1     Full/ -          00:00:30    vlan10     0

Table 10 Command output

Field

Description

Neighbor ID

Router ID of a neighbor.

Pri

Priority of neighbor router.

State

Neighbor state.

Dead Time

Dead time remained.

Interface

Interface connected to the neighbor.

Instance ID

Instance ID.

 

# Display detailed neighbor information of OSPFv3 process 1 of an interface.

<Sysname> display ospfv3 1 peer vlan-interface 33 verbose

                      OSPFv3 Process (1)

 Neighbor 1.1.1.1 is Full, interface address FE80::20F:E2FF:FE49:8050

    In the area 0.0.0.1 via interface Vlan-interface33

    DR is 1.1.1.1 BDR is 2.2.2.2

    Options is 0x000013 (-|R|-|x|E|V6)

    Dead timer due in 00:00:39

    Neighbor is up for 00:25:31

    Database Summary List 0

    Link State Request List 0

    Link State Retransmission List 0

    Graceful restart state: Normal

Table 11 Command output

Field

Description

Neighbor

Neighbor ID.

interface address

Interface address.

In the area 0.0.0.1 via interface Vlan-interface33

VLAN-interface 33 belongs to area 1.

DR is 0.0.0.0 BDR is 0.0.0.0

Neither DR nor BDR is elected.

Options is 0x000013 (-|R|-|x|E|V6)

The option is 0x000013 (-|R|-|x|E|V6).

Dead timer due in 00:00:29

Dead timer due in 00:00:29.

Neighbor is up for 00:06:28

Neighbor is up for 00:06:28.

Database Summary List

Number of LSAs sent in DD packet.

Link State Request List

Number of LSAs in the link state request list.

Link State Retransmission List

Number of LSAs in the link state retransmission list.

Graceful restart state

GR status:

·     Doing GR—GR is in process.

·     Complete GRThe neighbor has completed GR.

·     NormalNormal status.

·     HelperThe device is a GR helper of the neighbor.

 

display ospfv3 peer statistic

Syntax

display ospfv3 peer statistic [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ospfv3 peer statistic to display information about all OSPFv3 neighbors on the router, that is, numbers of neighbors in different states.

Examples

# Display information about all OSPFv3 neighbors.

<Sysname> display ospfv3 peer statistic

 

            OSPFv3 Router with ID (1.1.1.1) (Process 1)

                           Neighbor Statistics

 ----------------------------------------------------------------------

Area ID         Down     Init     2-way    ExStar   Exchange Loading  Full

0.0.0.0         0        0        0        0        0        0        1

Total           0        0        0        0        0        0        1

Table 12 Command output

Field

Description

Area ID

Area ID.

Down

In this state, neighbor initial state, the router has not received any information from a neighboring router for a period of time.

Init

In this state, the switch received a Hello packet from the neighbor but the packet contains no Router ID of the neighbor. Mutual communication is not setup.

2-Way

Indicates mutual communication between the router and its neighbor is available. DR/BDR election is finished under this state (or higher).

ExStart

In this state, the router decides on the initial DD sequence number and master/slave relationship of the two parties.

Exchange

In this state, the router exchanges DD packets with the neighbor.

Loading

In this state, the router sends LSRs to request the neighbor for needed LSAs.

Full

Indicates LSDB synchronization has been accomplished between neighbors.

Total

Total number of neighbors under the same state.

 

display ospfv3 request-list

Syntax

display ospfv3 [ process-id ] request-list [ { external | grace | inter-prefix | inter-router | intra-prefix | link | network | nssa | router } [ link-state-id ] [ originate-router ip-address ] | statistics ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.

external: Displays the AS-external LSA information of the OSPFv3 link state request list.

grace: Displays the Grace-LSA information of the OSPFv3 link state request list.

inter-prefix: Displays the Inter-area-prefix LSA information of the OSPFv3 link state request list.

inter-router: Displays the Inter-area-router LSA information of the OSPFv3 link state request list.

intra-prefix: Displays the Intra-area-prefix LSA information of the OSPFv3 link state request list.

link: Displays the Link LSA information of the OSPFv3 link state request list.

network: Displays the Network-LSA information of the OSPFv3 link state request list.

nssa: Displays the NSSA-external-LSA information of the OSPFv3 link state request list.

router: Displays the Router-LSA information of the OSPFv3 link state request list.

link-state-id: Specifies a link state ID, in the format of an IPv4 address.

originate-router ip-address: Specifies the router ID of an advertising router.

statistics: Displays the LSA statistics of the OSPFv3 link state request list.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ospfv3 request-list to display OSPFv3 link state request list information.

If no process is specified, the link state request list information of all OSPFv3 processes is displayed.

Examples

# Display the information of OSPFv3 link state request list.

<Sysname> display ospfv3 request-list

         OSPFv3 Router with ID (11.1.1.1) (Process 1)

             Interface GE1/1/2    Area-ID 0.0.0.0

--------------------------------------------------------------------------

                          Nbr-ID   12.1.1.1

LS-Type               LS-ID           AdvRouter       SeqNum       Age  CkSum

Router-LSA            0.0.0.0         12.1.1.1        0x80000014    774  0xe5b0

Table 13 Command output

Field

Description

Interface

Interface name.

Area-ID

Area ID.

Nbr-ID

Neighbor router ID.

LS-Type

Type of LSA.

LS-ID

Link state ID.

AdvRouter

Advertising router.

SeqNum

LSA sequence number.

Age

Age of LSA.

CkSum

Checksum.

 

# Display the statistics of OSPFv3 link state request list.

<Sysname> display ospfv3 request-list statistics

            OSPFv3 Router with ID (11.1.1.1) (Process 1)

Interface  Neighbor        LSA-Count

Vlan11     10.1.1.1        0

Table 14 Command output

Field

Description

Interface

Interface name.

Neighbor

Neighbor router ID.

LSA-Count

Number of LSAs in the request list.

 

display ospfv3 retrans-list

Syntax

display ospfv3 [ process-id ] retrans-list [ { external | grace | inter-prefix | inter-router | intra-prefix | link | network | nssa | router } [ link-state-id ] [ originate-router ip-address ] | statistics ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.

external: Displays the AS-external LSA information of the OSPFv3 link state retransmission list.

grace: Displays the Grace-LSA information of the OSPFv3 link state retransmission list.

inter-prefix: Displays the Inter-area-prefix LSA information of the OSPFv3 link state retransmission list.

inter-router: Displays the Inter-area-router LSA information of the OSPFv3 link state retransmission list.

intra-prefix: Displays the Intra-area-prefix LSA information of the OSPFv3 link state retransmission list.

link: Displays the Link LSA information of the OSPFv3 link state retransmission list.

network: Displays the Network-LSA information of the OSPFv3 link state retransmission list.

nssa: Displays the NSSA-external-LSA information of the OSPFv3 link state retransmission list.

router: Displays the Router-LSA information of the OSPFv3 link state retransmission list.

link-state-id: Specifies a link state ID, an IPv4 address.

originate-router ip-address: Specifies the router ID of an advertising router.

statistics: Displays the LSA statistics of the OSPFv3 link state retransmission list.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ospfv3 retrans-list to display the OSPFv3 link state retransmission list.

If no process is specified, the link state retransmission list information of all OSPFv3 processes is displayed.

Examples

# Display the information of the OSPFv3 link state retransmission list.

<Sysname> display ospfv3 retrans-list

            OSPFv3 Router with ID (11.1.1.1) (Process 1)

             Interface GE1/1/2    Area-ID 0.0.0.0

--------------------------------------------------------------------------                                                                             

--------------------------------

                          Nbr-ID   12.1.1.1

LS-Type               LS-ID           AdvRouter       SeqNum       Age  CkSum

Link-LSA              0.15.0.24       12.1.1.1        0x80000003    519  0x7823

Router-LSA            0.0.0.0         12.1.1.1        0x80000014    774  0xe5b0

Table 15 Command output

Field

Description

Interface

Interface name.

Area-ID

Area ID.

Nbr-ID

Neighbor router ID.

LS-Type

Type of LSA.

LS-ID

Link state ID.

AdvRouter

Advertising Router.

SeqNum

LSA sequence Number.

Age

Age of LSA.

CkSum

Checksum.

 

# Display the statistics of OSPFv3 link state retransmission list.

<Sysname>display ospfv3 retrans-list statistics

            OSPFv3 Router with ID (11.1.1.1) (Process 1)

Interface  Neighbor        LSA-Count

GE1/1/2    12.1.1.1        2

Table 16 Command output

Field

Description

Interface

Interface name.

Neighbor

Neighbor ID.

LSA-Count

Number of LSAs in the retransmission request list.

 

display ospfv3 routing

Syntax

display ospfv3 [ process-id ] routing [ ipv6-address prefix-length | ipv6-address/prefix-length | abr-routes | asbr-routes | all | statistics ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.

ipv6-address: Specifies an IPv6 address prefix.

prefix-length: Specifies a prefix length in the range of 0 to 128.

abr-routes: Displays routes to ABR.

asbr-routes: Displays routes to ASBR.

all: Displays all routes.

statistics: Displays the OSPFv3 routing table statistics.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ospfv3 routing to display OSPFv3 routing table information.

If no process is specified, routing table information of all OSPFv3 processes is displayed.

Examples

# Display OSPFv3 routing table information.

<Sysname> display ospfv3 routing

 

I  - Intra area route,    E1 - Type 1 external route,    N1 – Type 1 NSSA route

 IA - Inter area route,    E2 – Type 2 external route,    N2 – Type 2 NSSA route

 *  - Selected route

 

            OSPFv3 Router with ID (1.1.1.1) (Process 1)

 ------------------------------------------------------------------------

 *Destination: 2001::/64

  Type       : I                                        Cost     : 1

  NextHop    : directly-connected                       Interface: Vlan11

Table 17 Command output

Field

Description

Destination

Destination network segment.

Type

Route type.

Cost

Route cost value.

NextHop

Next hop address.

Interface

Output interface.

 

# Display the statistics of OSPFv3 routing table.

<Sysname> display ospfv3 routing statistics

            OSPFv3 Router with ID (1.1.1.1) (Process 1)

                           OSPFv3 Routing Statistics

 Intra-area-routes   :   1

 Inter-area-routes   :   0

 External-routes     :   0

 NSSA-routes         :   0

Table 18 Command output

Field

Description

Intra-area-routes

Number of Intra-area-routes.

Inter-area-routes

Number of inter-area routes.

External-routes

Number of external routes.

NSSA-routes

Number of NSSA routes.

 

display ospfv3 statistics

Syntax

display ospfv3 statistics [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ospfv3 statistics to display outbound/inbound OSPFv3 packet statistics on associated interfaces.

Examples

# Display outbound/inbound OSPFv3 packet statistics on associated interfaces.

<Sysname> display ospfv3 statistics

 

                       OSPFv3 Statistics

Interface GE1/1/1 Instance 0

 Type              Input       Output

 Hello             189         63

 DB Description    10          8

 Ls Req            2           1

 Ls Upd            16          6

 Ls Ack            10          6 

 Discarded         0           0

Table 19 Command output

Field

Description

Interface

Interface name.

Instance

Instance number.

Type

Type of packet.

Input

Number of packets received by the interface.

Output

Number of packets sent by the interface.

Hello

Hello packet.

DB Description

Database description packet.

Ls Req

Link state request packet.

Ls Upd

Link state update packet.

Ls Ack

Link state acknowledgement packet.

Discarded

Number of discarded packets.

 

display ospfv3 topology

Syntax

display ospfv3 [ process-id ] topology [ area area-id ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

process-id: Displays the topology information of an OSPFv3 process. The process ID is in the range of 1 to 65535.

area: Displays the topology information of the specified area.

area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is translated into an IPv4 address by the system.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ospfv3 topology to display OSPFv3 topology information. If no process is specified, topology information of all OSPFv3 processes is displayed.

Examples

# Display OSPFv3 area 1 topology information.

<Sysname> 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                      --

Rtr   2.2.2.2                      1         2.2.2.2         Vlan11

Rtr   3.3.3.3                      1         3.3.3.3         Vlan11

Rtr   4.4.4.4                      1         4.4.4.4         Vlan11

Net   4.4.4.4(983049)              1         0.0.0.0         Vlan11

Table 20 Command output

Field

Description

Type

Type of node.

ID(If-Index)

Router ID.

Bits

Flag bit.

Metric

Cost value.

Next-Hop

Next hop.

Interface

Output interface.

 

display ospfv3 vlink

Syntax

display ospfv3 [ process-id ] vlink [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ospfv3 vlink to display OSPFv3 virtual link information. If no process is specified, virtual link information of all OSPFv3 processes is displayed.

Examples

# Display OSPFv3 virtual link information.

<Sysname> display ospfv3 vlink

     Virtual Link VLINK1 to router 1.1.1.1 is up

       Transit area :0.0.0.1 via interface Vlan-interface11, instance ID: 0

       Local address: 2000:1::1

       Remote address: 2001:1:1::1

       Transmit Delay is 1 sec, State: P-To-P,

       Timer intervals configured, Hello: 10, Dead: 40, Wait: 40, Retransmit: 5

         Hello due in 00:00:02

         Adjacency state :Full

Table 21 Command output

Field

Description

Virtual Link VLINK1 to router 1.1.1.1 is up

The virtual link VLINK1 to router 1.1.1.1 is up.

Transit area 0.0.0.1 via interface Vlan-interface11

VLAN-interface 11 in transit area 0.0.0.1.

instance ID

Instance ID.

Local address

Local IPv6 address.

Remote address

Remote IPv6 address.

Transmit Delay

Transmit delay of sending LSAs.

State

Interface state.

Timer intervals configured, Hello: 10, Dead: 40, Wait: 40, Retransmit: 5

Timer intervals in seconds:

·     Hello—10.

·     Dead—40.

·     Wait—40.

·     Retransmit—5.

Hello due in 00:00:02

Send hello packets in 2 seconds.

Adjacency state

Adjacency state.

 

enable ipsec-policy (OSPFv3 area view)

Syntax

enable ipsec-policy policy-name

undo enable ipsec-policy

View

OSPFv3 area view

Default level

2: System level

Parameters

policy-name: Specifies an IPsec policy by its name, a string of 1 to 15 characters.

Description

Use enable ipsec-policy to apply an IPsec policy in the OSPFv3 area.

Use undo enable ipsec-policy to remove the IPsec policy from the OSPFv3 area.

By default, no IPsec policy is applied in an area.

The IPsec policy to be applied must have been configured.

Examples

# Apply IPsec policy policy001 to OSPFv3 area 0.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] area 0

[Sysname-ospfv3-1-area-0.0.0.0] enable ipsec-policy policy001

filter-policy export (OSPFv3 view)

Syntax

filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } export [ bgp4+ | direct | isisv6 process-id | ospfv3 process-id | ripng process-id | static ]

undo filter-policy export [ bgp4+ | direct | isisv6 process-id | ospfv3 process-id | ripng process-id | static ]

View

OSPFv3 view

Default level

2: System level

Parameters

acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999.

ipv6-prefix ipv6-prefix-name: Specifies the name of an IPv6 prefix list, a string of up to 19 characters.

bgp4+: Filters IPv6 BGP routes.

direct: Filters direct routes.

isisv6 process-id: Filters the routes of an IPv6 IS-IS process, which is in the range of 1 to 65535.

ospfv3 process-id: Filters the routes of an OSPFv3 process, which is in the range of 1 to 65535.

ripng process-id: Filters the routes of a RIPng process, which in the range of 1 to 65535.

static: Filters static routes.

Description

Use filter-policy export to filter redistributed routes.

Use undo filter-policy export to remove the configuration.

By default, OSPFv3 does not filter redistributed routes.

If no protocol is specified, all redistributed routes will be filtered.

If you want to reference an advanced ACL (with a number from 3000 to 3999) in the command, the ACL should be configured with the rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix command to deny/permit a route with the specified destination, or with the rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix destination dest dest-prefix command to deny/permit a route with the specified destination and prefix. The source keyword specifies the destination address of a route while the destination keyword specifies the prefix of the route (the prefix must be valid; otherwise, the configuration is ineffective).

Using the filter-policy export command filters only routes redistributed by the import-route command. If the import-route command is not configured to redistribute routes from other protocols and other OSPFv3 processes, use of the filter-policy export command does not take effect.

Examples

# Filter all redistributed routes using IPv6 ACL 2001.

<Sysname> system-view

[Sysname] acl ipv6 number 2001

[Sysname-acl6-basic-2000] rule permit source 2002:1:: 64

[Sysname-acl6-basic-2000] quit

[Sysname] ospfv3

[Sysname-ospfv3-1] filter-policy 2001 export

# Configure IPv6 ACL 3000 to permit only route 2001::1/128 to pass, and reference IPv6 ACL 3000 to filter redistributed routes.

<Sysname> system-view

[Sysname] acl ipv6 number 3000

[Sysname-acl6-adv-3000] rule 10 permit ipv6 source 2001::1 128 destination ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 128

[Sysname-acl6-adv-3000] rule 100 deny ipv6

[Sysname-acl6-adv-3000] quit

[Sysname] ospfv3

[Sysname-ospfv3-1] filter-policy 3000 export

filter-policy import (OSPFv3 view)

Syntax

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

undo filter-policy import

View

OSPFv3 view

Default level

2: System level

Parameters

acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999.

ipv6-prefix ipv6-prefix-name: Specifies the name of an IPv6 prefix list, a string of up to 19 characters.

Description

Use filter-policy import to configure OSPFv3 to filter routes computed from received LSAs.

Use undo filter-policy import to remove the configuration.

By default, OSPFv3 does not filter routes computed from received LSAs.

If you want to reference an advanced ACL (with a number from 3000 to 3999) in the command, the ACL should be configured with the rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix command to deny/permit a route with the specified destination, or with the rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix destination dest dest-prefix command to deny/permit a route with the specified destination and prefix. The source keyword specifies the destination address of a route while the destination keyword specifies the prefix of the route (the prefix must be valid; otherwise, the configuration is ineffective).

Using the filter-policy import command only filters routes computed by OSPFv3. The routes that fail to pass are not added to the routing table.

Examples

# Filter received routes using the IPv6 prefix list abc.

<Sysname> system-view

[Sysname] ip ipv6-prefix abc permit 2002:1:: 64

[Sysname] ospfv3 1

[Sysname-ospfv3-1] filter-policy ipv6-prefix abc import

# Configure IPv6 ACL 3000 to permit only route 2001::1/128 to pass, and reference IPv6 ACL 3000 to filter received routes.

<Sysname> system-view

[Sysname] acl ipv6 number 3000

[Sysname-acl6-adv-3000] rule 10 permit ipv6 source 2001::1 128 destination ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 128

[Sysname-acl6-adv-3000] rule 100 deny ipv6

[Sysname-acl6-adv-3000] quit

[Sysname] ospfv3

[Sysname-ospfv3-1] filter-policy 3000 import

graceful-restart enable

Syntax

graceful-restart enable

undo graceful-restart enable

View

OSPFv3 view

Default level

2: System level

Parameters

None

Description

Use graceful-restart enable to enable the GR capability for OSPFv3.

Use undo graceful-restart enable to disable the GR capability for OSPFv3.

By default, the GR capability for OSPFv3 is disabled.

You cannot enable the GR capability for an area of the current process already configured with the vlink-peer command.

Examples

# Enable the GR capability for OSPFv3 process 1.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] graceful-restart enable

graceful-restart helper enable

Syntax

graceful-restart helper enable

undo graceful-restart helper enable

View

OSPFv3 view

Default level

2: System level

Parameters

None

Description

Use graceful-restart helper enable to enable the GR helper capability for OSPFv3.

Use undo graceful-restart helper enable to disable the GR helper capability for OSPFv3.

By default, the GR helper capability for OSPFv3 is enabled.

Examples

# Enable the GR helper capability for OSPFv3 process 1.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] graceful-restart helper enable

graceful-restart helper strict-lsa-checking

Syntax

graceful-restart helper strict-lsa-checking

undo graceful-restart helper strict-lsa-checking

View

OSPFv3 view

Default level

2: System level

Parameters

None

Description

Use graceful-restart helper strict-lsa-checking to enable strict LSA checking for the GR helper. When an LSA change on the GR helper is detected, the GR helper switch exits the GR helper mode.

Use undo graceful-restart helper strict-lsa-checking to disable strict LSA checking for the GR helper.

By default, strict LSA checking for the GR helper is disabled.

Examples

# Enable strict LSA checking for the GR helper in OSPFv3 process 1.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] graceful-restart helper strict-lsa-checking

graceful-restart interval

Syntax

graceful-restart interval interval-value

undo graceful-restart interval

View

OSPFv3 view

Default level

2: System level

Parameters

interval-value: Specifies the GR restart interval in the range of 40 to 1800 seconds.

Description

Use graceful-restart interval to configure the GR restart interval.

Use undo graceful-restart interval to restore the default.

By default, the GR restart interval is 120 seconds.

The value of the GR restart interval cannot be smaller than the maximum OSPFv3 neighbor dead time of all the OSPFv3 interfaces; otherwise, GR restart might fail.

Related commands: ospfv3 timer dead.

Examples

# Configure the GR restart interval for OSPFv3 process 1 as 100 seconds.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] graceful-restart interval 100

import-route (OSPFv3 view)

Syntax

import-route protocol [ process-id | allow-ibgp ] [ cost value | route-policy route-policy-name | type type ] *

undo import-route protocol [ process-id ]

View

OSPFv3 view

Default level

2: System level

Parameters

protocol: Redistributes routes from a specified routing protocol, which can be bgp4+, direct, isisv6, ospfv3, ripng, or static.

process-id: Process ID of the routing protocol, in the range of 1 to 65536. The default is 1. This argument takes effect only when the protocol is isisv6, ospfv3, or ripng.

allow-ibgp: Allows redistributing IBGP routes. This keyword takes effect only the protocol is bgp4+.

cost value: Specifies a cost for redistributed routes, in the range of 1 to 16777214. The default is 1.

route-policy route-policy-name: Redistributes only the routes that match the specified routing policy. route-policy-name is a case-sensitive string of 1 to 63 characters.

type type: Specifies the type for redistributed routes, 1 or 2. The default is 2.

Using the import-route bgp4+ command redistributes only EBGP routes. Using the import-route bgp4+ allow-ibgp command redistributes both EBGP and IBGP routes.

Description

Use import-route to redistribute routes.

Use undo import-route to disable routes redistribution.

OSPFv3 does not redistribute routes from other protocols by default.

Examples

# Configure to redistribute routes from RIPng and specify the type as type 2 and cost as 50.

<Sysname> system-view

[Sysname] ospfv3

[Sysname-ospfv3-1] import-route ripng 10 type 2 cost 50

# Configure OSPFv3 process 100 to redistribute the routes found by OSPFv3 process 160.

<Sysname> system-view

[Sysname] ospfv3 100

[Sysname-ospfv3-100] import-route ospfv3 160

log-peer-change

Syntax

log-peer-change

undo log-peer-change

View

OSPFv3 view

Default level

2: System level

Parameters

None

Description

Use log-peer-change to enable the logging on neighbor state changes.

Use undo maximum load-balancing to disable the logging.

With this feature enabled, information about neighbor state changes of the current OSPFv3 process will display on the configuration terminal.

Examples

# Disable the logging on neighbor state changes of OSPFv3 process 100.

<Sysname> system-view

[Sysname] ospfv3 100

[Sysname-ospfv3-100] undo log-peer-change

maximum load-balancing (OSPFv3 view)

Syntax

maximum load-balancing maximum

undo maximum load-balancing

View

OSPFv3 view

Default level

2: System level

Parameters

maximum: Specifies the maximum number of ECMP routes for load balancing, in the range of 1 to 16. The argument being set to 1 means no ECMP load balancing is available.

Description

Use maximum load-balancing to configure the maximum number of equal-cost multi-path (ECMP) for load balancing.

Use undo maximum load-balancing to restore the default.

By default, the maximum number of ECMP routes is 16.

Examples

# Configure the maximum number of ECMP routes as 6.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] maximum load-balancing 6

nssa (OSPFv3 area view)

Syntax

nssa [ default-route-advertise [ cost cost | type type ] * | no-import-route | no-summary | suppress-fa | { translate-always | translate-never } | translator-stability-interval value ] *

undo nssa

View

OSPFv3 area view

Default level

2: System level

Parameters

default-route-advertise: Usable on an NSSA ABR or an ASBR only. If it is configured on an NSSA ABR, the ABR generates a default route in an NSSA-external-LSA into the NSSA regardless of whether the default route is available. If it is configured on an ASBR, the ASBR generates the default route in an NSSA-external-LSA into the attached area only when a default route is available. By default, the ABR or ASBR of an NSSA area advertises no default routes.

cost cost: Specifies the cost of the default route in an NSSA-external-LSA, in the range of 0 to 16777214.

type type: Specifies the type of the default route in an NSSA-external-LSA, in the range of 1 to 2. The default value is 2.

no-import-route: Usable only on an NSSA ABR that is also the ASBR of the OSPFv3 routing domain to disable redistributing routes in NSSA-external-LSAs into the NSSA area, making sure that routes can be correctly redistributed.

no-summary: Usable only on an NSSA ABR to advertise only a default route in an Inter-Area-Prefix-LSA into the NSSA area. No Inter-Area-Prefix-LSA is advertised in the area. Such an area is a totally NSSA area.

suppress-fa: Suppresses the forwarding address (FA) from being advertised in the translation of NSSA-external-LSAs to AS-external-LSAs.

translate-always: Specifies the NSSA ABR as a translator to translate NSSA-external-LSAs to AS-external-LSAs.

translate-never: Specifies the device not to be a translator.

translator-stability-interval value: Specifies the stability interval of the translator, during which the translator can maintain its translating capability after a device with a higher priority becomes a new translator. The value argument is the stability interval in the range of 0 to 900 seconds and defaults to 0 (which means the translator does not maintain its translating capability if a new translator arises).

Description

Use nssa to configure an area as an NSSA area.

Use undo nssa to restore the default.

By default, no area is configured as an NSSA area.

All routers attached to an NSSA area must be configured with the nssa command in area view.

With the default-route-advertise keyword configured, the default route cost is selected in the following sequence: the nssa command, the default-cost command in OSPFv3 area view, and the default-cost command in OSPFv3 view.

Examples

# Configure OSPFv3 area 1 as an NSSA area.

<Sysname> system-view

[Sysname] ospfv3 100

[Sysname-ospfv3-100] area 1

[Sysname-ospfv3-100-area-0.0.0.1] nssa

ospfv3

Syntax

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

undo ospfv3 [ process-id ]

View

System view

Default level

2: System level

Parameters

process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. The default is 1.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the OSPFv3 process belongs to the public network.

Description

Use ospfv3 to enable an OSPFv3 process and enter OSPFv3 view.

Use undo ospfv3 to disable an OSPFv3 process.

The system runs no OSPFv3 process by default.

Related commands: router-id.

 

IMPORTANT:

An OSPFv3 process can run correctly only when Router ID is configured in OSPFv3 view. Otherwise, you can find the process, but which cannot generate any LSA.

 

Examples

# Enable the OSPFv3 process with process ID as 120 and configure the Router ID as 1.1.1.1.

<Sysname> system-view

[Sysname] ospfv3 120

[Sysname-ospfv3-120] router-id 1.1.1.1

ospfv3 area

Syntax

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

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

View

Interface view

Default level

2: System level

Parameters

process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.

area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is translated into an IPv4 address by the system.

instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.

Description

Use ospfv3 area to enable an OSPFv3 process on the interface and specify the area for the interface.

Use undo ospfv3 area to disable an OSPFv3 process.

OSPFv3 is not enabled on an interface by default.

Examples

# Enable OSPFv3 process 1 on VLAN-interface 10 that belongs to instance 1 and specify area 1 for the interface.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospfv3 1 area 1 instance 1

ospfv3 bfd enable

Syntax

ospfv3 bfd enable [ instance instance-id ]

undo ospfv3 bfd enable [ instance instance-id ]

View

Interface view

Default level

2: System level

Parameters

instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.

Description

Use ospfv3 bfd enable to enable BFD for link failure detection on an OSPFv3 interface.

Use undo ospfv3 bfd enable to disable BFD on the OSPFv3 interface.

By default, the OSPFv3 interface is not enabled with BFD.

Examples

# Enable BFD on VLAN-interface 11 in instance 1.

<Sysname> system-view

[Sysname] interface vlan-interface 11

[Sysname-Vlan-interface11] ospfv3 bfd enable instance 1

ospfv3 cost

Syntax

ospfv3 cost value [ instance instance-id ]

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

View

Interface view

Default level

2: System level

Parameters

value: Specifies an OSPFv3 cost for the interface, in the range of 1 to 65535.

instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.

Description

Use ospfv3 cost to configure the OSPFv3 cost of the interface in an instance.

Use undo ospfv3 cost to restore the default OSPFv3 cost of the interface in an instance.

The default cost depends on the interface type: 1 for a VLAN interface; 0 for a loopback interface; computed according to the bandwidth for other interfaces with the formula: Interface OSPFv3 cost = Bandwidth reference value (100 Mbps) ÷ Interface bandwidth (Mbps).

If the calculated cost is greater than 65535, the value of 65535 is used; if the calculated cost is smaller than 1, the value of 1 is used.

Examples

# Specifies the OSPFv3 cost of VLAN-interface 10 in instance 1 as 33.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospfv3 cost 33 instance 1

ospfv3 dr-priority

Syntax

ospfv3 dr-priority priority [ instance instance-id ]

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

View

Interface view

Default level

2: System level

Parameters

priority: Specifies a DR priority in the range of 0 to 255.

instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.

Description

Use ospfv3 dr-priority to set the DR priority for an interface in an instance.

Use undo ospfv3 dr-priority to restore the default value.

The DR priority on an interface defaults to 1.

An interface's DR priority determines its privilege in DR/BDR selection, and the interface with the highest priority is preferred.

Examples

# Set the DR priority for VLAN-interface 10 in instance 1 to 8.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospfv3 dr-priority 8 instance 1

ospfv3 ipsec-policy

Syntax

ospfv3 ipsec-policy policy-name [ instance instance-id ]

undo ospfv3 ipsec-policy policy-name [ instance instance-id ]

View

Interface view

Default level

2: System level

Parameters

policy-name: Specifies an IPsec policy by its name, a string of 1 to 15 characters.

instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.

Description

Use ospfv3 ipsec-policy to apply an IPsec policy on an OSPFv3 interface.

Use undo ospfv3 ipsec-policy to remove the IPsec policy from the OSPFv3 interface.

By default, no IPsec policy is applied on an OSPFv3 interface.

The IPsec policy to be applied must have been configured.

Examples

# Apply IPsec policy policy001 to OSPFv3 interface VLAN-interface 10.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospfv3 ipsec-policy policy001 instance 1

ospfv3 mtu-ignore

Syntax

ospfv3 mtu-ignore [ instance instance-id ]

undo ospfv3 mtu-ignore [ instance instance-id ]

View

Interface view

Default level

2: System level

Parameters

instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.

Description

Use ospfv3 mtu-ignore to configure an interface to ignore MTU check during DD packet exchange.

Use undo ospfv3 mtu-ignore to restore the default.

By default, an interface performs MTU check during DD packet exchange. A neighbor relationship can be established only if the interface's MTU is the same as that of the peer.

Examples

# Configure VLAN-interface 10 that belongs to instance 1 to ignore MTU check when sending DD packets.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospfv3 mtu-ignore instance 1

ospfv3 network-type

 Syntax

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 ]

View

Interface view

Default level

2: System level

Parameters

broadcast: Specifies the network type as Broadcast.

nbma: Specifies the network type as NBMA.

p2mp: Specifies the network type as P2MP.

p2p: Specifies the network type as P2P.

non-broadcast: Specifies the interface to send packets in unicast mode. By default, an OSPFv3 interface whose network type is P2MP sends packets in multicast mode.

instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.

Description

Use ospfv3 network-type to set the network type for an OSPFv3 interface.

Use undo ospfv3 network-type to restore the default.

By default, the network type of an interface depends on its link layer protocol. For example:

·     For PPP, the default network type is P2P.

·     For Ethernet, the default network type is broadcast.

 Examples

# Configure the network type of VLAN-interface 10 as NBMA.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospfv3 network-type nbma

ospfv3 peer

Syntax

ospfv3 peer ipv6-address [ dr-priority dr-priority ] [ instance instance-id ]

undo ospfv3 peer ipv6-address [ dr-priority dr-priority ] [ instance instance-id ]

View

Interface view

Default level

2: System level

Parameters

ipv6-address: Specifies the neighbor link-local IP address.

dr-priority: Specifies the neighbor DR priority in the range of 0 to 255. The default is 1.

instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.

Description

Use ospfv3 peer to specify a neighbor and the DR priority of the neighbor.

Use undo ospfv3 peer to remove the configuration.

A router uses the priority set with the ospfv3 peer command to determine whether to send a hello packet to the neighbor rather than for DR election.

Examples

# Specify the neighbor fe80::1111.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospfv3 peer fe80::1111

ospfv3 timer dead

Syntax

ospfv3 timer dead seconds [ instance instance-id ]

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

View

Interface view

Default level

2: System level

Parameters

seconds: Specifies the dead time in seconds, in the range of 1 to 65535.

instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.

Description

Use ospfv3 timer dead to configure the OSPFv3 neighbor dead time for an interface that belongs to a specified instance.

Use undo ospfv3 timer dead to restore the default.

By default, the OSPFv3 neighbor dead time is 40 seconds for P2P and Broadcast interfaces, and is 120 seconds for P2MP and NBMA interfaces.

OSPFv3 neighbor dead time: if an interface receives no hello packet from a neighbor after dead time elapses, the interface will consider the neighbor dead.

The dead seconds value is at least four times the Hello seconds value and must be identical on interfaces attached to the same network segment.

Related commands: ospfv3 timer hello.

Examples

# Configure the OSPFv3 neighbor dead time as 80 seconds for VLAN-interface 10 in instance 1.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospfv3 timer dead 80 instance 1

ospfv3 timer hello

Syntax

ospfv3 timer hello seconds [ instance instance-id ]

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

View

Interface view

Default level

2: System level

Parameters

seconds: Specifies the interval between hello packets, in the range of 1 to 65535 seconds.

instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.

Description

Use ospfv3 timer hello to configure the hello interval for an interface that belongs to an instance.

Use undo ospfv3 timer hello to restore the default.

By default, the hello interval is 10 seconds for P2P and Broadcast interfaces, and is not supported on the P2MP or NBMA interfaces.

Related commands: ospfv3 timer dead.

Examples

# Configure the hello interval as 20 seconds for VLAN-interface 10 in instance 1.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospfv3 timer hello 20 instance 1

ospfv3 timer retransmit

Syntax

ospfv3 timer retransmit interval [ instance instance-id ]

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

View

Interface view

Default level

2: System level

Parameters

interval: Specifies the LSA retransmission interval in seconds, in the range of 1 to 65535.

instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.

Description

Use ospfv3 timer retransmit to configure the LSA retransmission interval for an interface in an instance.

Use undo ospfv3 timer retransmit to restore the default.

The interval defaults to 5 seconds.

After sending a LSA to its neighbor, the switch waits for an acknowledgement. If receiving no acknowledgement after the LSA retransmission interval elapses, it will retransmit the LSA.

The LSA retransmission interval should not be too small for avoidance of unnecessary retransmissions.

Examples

# Configure the LSA retransmission interval on VLAN-interface 10 in instance 1 as 12 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospfv3 timer retransmit 12 instance 1

ospfv3 timer poll

Syntax

ospfv3 timer poll seconds [ instance instance-id ]

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

View

Interface view

Default level

2: System level

Parameters

seconds: Specifies the poll interval in seconds, in the range of 1 to 65535.

instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.

Description

Use ospfv3 timer poll to set the poll interval on an NBMA interface.

Use undo ospfv3 timer poll to restore the default value.

By default, the poll interval is 120 seconds.

Examples

# Set the poll timer interval on VLAN-interface 10 to 130 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospfv3 timer poll 130

ospfv3 trans-delay

Syntax

ospfv3 trans-delay seconds [ instance instance-id ]

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

View

Interface view

Default level

2: System level

Parameters

seconds: Specifies the transmission delay in seconds, in the range of 1 to 3600.

instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.

Description

Use ospfv3 trans-delay to configure the transmission delay for an interface with an instance ID.

Use undo ospfv3 trans-delay to restore the default.

The transmission delay defaults to 1 second.

As LSAs are aged in the LSDB (incremented by 1 every second) but not aged on transmission, it is necessary to add a delay time to the age time before sending a LSA. This configuration is important for low-speed networks.

Examples

# Configure the transmission delay as 3 seconds for VLAN-interface 10 in instance 1.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospfv3 trans-delay 3 instance 1

preference

Syntax

preference [ ase ] [ route-policy route-policy-name ] preference

undo preference [ ase ]

View

OSPFv3 view

Default level

2: System level

Parameters

ase: Applies the preference to OSPFv3 external routes. If the keyword is not specified, the preference applies to OSPFv3 internal routes.

route-policy route-policy-name: References a routing policy to set preference for specific routes. The name is a case-sensitive string of 1 to 63 characters.

Preference: Specifies the preference of OSPFv3, in the range of 1 to 255.

Description

Use preference to specify a preference for OSPFv3 routes.

Use undo preference to restore the default.

By default, the preference for OSPFv3 internal routes is 10, and that for OSPFv3 external routes is 150.

The smaller the value is, the higher the preference is.

A router might run multiple routing protocols. Each protocol has a preference. When several routing protocols find multiple routes to the same destination, the route found by the protocol with the highest preference is selected.

Examples

# Set a preference of 150 for OSPFv3 routes.

<Sysname> system-view

[Sysname] OSPFv3

[Sysname-OSPFv3-1] preference 150

router-id

Syntax

router-id router-id

undo router-id

View

OSPFv3 view

Default level

2: System level

Parameters

router-id: Specifies a 32-bit router ID, in IPv4 address format.

Description

Use router-id to configure the OSPFv3 router ID.

Use undo router-id to remove a configured router ID.

Router ID is the unique identifier of a switch running an OSPFv3 process in the AS. The OSPFv3 process cannot run without a Router ID.

Make sure that different processes have different Router IDs.

By configuring different router IDs for different processes, you can run multiple OSPFv3 processes on a router.

Related commands: ospfv3.

Examples

# Configure the Router ID as 10.1.1.3 for OSPFv3 process 1.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] router-id 10.1.1.3

silent-interface (OSPFv3 view)

Syntax

silent-interface { interface-type interface-number | all }

undo silent-interface { interface-type interface-number | all }

View

OSPFv3 view

Default level

2: System level

Parameters

interface-type interface-number: Specifies an interface by its type and number.

all: Specifies all interfaces.

Description

Use silent-interface to disable the specified interface from receiving and sending OSPFv3 packets.

Use undo silent-interface to restore the default.

An interface is able to receive and send OSPFv3 packets by default.

Multiple processes can disable the same interface from receiving and sending OSPFv3 packets, but use of the silent-interface command takes effect only on interfaces enabled with the current process.

Examples

# Disable VLAN-interface 10 from receiving and sending OSPFv3 packets in OSPFv3 processes 100 and 200.

<Sysname> system-view

[Sysname] ospfv3 100

[Sysname-ospfv3-100] router-id 10.110.1.9

[Sysname-ospfv3-100] silent-interface vlan-interface 10

[Sysname-ospfv3-100] quit

[Sysname] ospfv3 200

[Sysname-ospfv3-200] router-id 20.18.0.7

[Sysname-ospfv3-200] silent-interface vlan-interface 10

spf timers

Syntax

spf timers delay-interval hold-interval

undo spf timers

View

OSPFv3 view

Default level

2: System level

Parameters

delay-interval: Specifies the interval between when OSPFv3 receives a topology change and when it starts SPF calculation. The value range is 0 to 65535 seconds.

hold-interval: Specifies the hold interval between two consecutive SPF calculations. The value range is 0 to 65535 seconds.

Description

Use spf timers to configure the delay interval and hold interval for OSPFv3 SPF calculation.

Use undo spf timers to restore the default.

The delay interval and hold interval default to 5s and 10s.

An OSPFv3 router works out a shortest path tree with itself as root based on the LSDB, and decides on the next hop to a destination network according the tree. Adjusting the SPF calculation interval can restrain bandwidth and router resource from over consumption due to frequent network changes.

Setting both the delay-interval and hold-interval to 0 triggers an SPF calculation at once, improving the network convergence speed.

Examples

# Configure the delay interval and hold interval as 6 seconds for SPF calculation.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] spf timers 6 6

stub (OSPFv3 area view)

Syntax

stub [ no-summary ]

undo stub

View

OSPFv3 area view

Default level

2: System level

Parameters

no-summary: This argument is only applicable to the ABR of a stub area. With this keyword configured, the ABR advertises only a default route in an Inter-Area-Prefix-LSA into the stub area. No AS-external-LSA, Inter-Area-Router-LSA, or other Inter-Area-Prefix-LSA is advertised in the area. The stub area of this kind is also known as a "totally stub area."

Description

Use stub to configure an area as a stub area.

Use undo stub to remove the configuration.

By default, an area is not configured as a stub area.

When an area is configured as a stub area, all the routers attached to the area must be configured with the stub command.

Related commands: default-cost.

Examples

# Configure OSPFv3 area 1 as a stub area.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] area 1

[Sysname-ospfv3-1-area-0.0.0.1] stub

vlink-peer (OSPFv3 area view)

Syntax

vlink-peer router-id [ hello seconds | retransmit seconds | trans-delay seconds | dead seconds | instance instance-id | ipsec-policy policy-name ] *

undo vlink-peer router-id [ hello | retransmit | trans-delay | dead | ipsec-policy ] *

View

OSPFv3 area view

Default level

2: System level

Parameters

router-id: Specifies the router ID for a virtual link neighbor.

hello seconds: Specifies the interval in seconds for sending Hello packets. The value range is 1 to 8192, and the default is 10. This value must be equal to the hello seconds configured on the virtual link peer.

retransmit seconds: Specifies the interval in seconds for retransmitting LSA packets. The value range is 1 to 3600, and the default is 5.

trans-delay seconds: Specifies the delay interval in seconds for sending LSA packets. The value range is 1 to 3600, and the default is 1.

dead seconds: Specifies the neighbor dead time in seconds. The value range is 1 to 32768, and the default is 40. This value must be equal to the dead seconds configured on the virtual link peer, and at least four times the value of hello seconds.

instance Instance-id: Specifies the instance ID of a virtual link, in the range of 0 to 255. The default is 0.

ipsec-policy policy-name: Applies an IPsec policy, the name of which is a string of 1 to 15 characters.

Description

Use vlink-peer to create and configure a virtual link.

Use undo vlink-peer to remove a virtual link.

For a non-backbone area without a direct connection to the backbone area or for a backbone area that cannot maintain connectivity, you can use the vlink-peer command to create logical links. A virtual link can be considered as an interface with OSPFv3 enabled, because parameters such as hello, dead, retransmit and trans-delay are configured in the similar way.

Both ends of a virtual link are ABRs that are configured with the vlink-peer command.

If you have enabled the GR capability for the current process, you cannot execute the vlink-peer command for the process.

Examples

# Create a virtual link to 10.110.0.3.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] area 10.0.0.0

[Sysname-ospfv3-1-area-10.0.0.0] vlink-peer 10.110.0.3

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网