05-Network Connectivity

HomeSupportWirelessWX3800X Series Access ControllersReference GuidesCommand ReferencesH3C WX3800X Series Access Controllers Command References(E1053P01)-5W10105-Network Connectivity
31-IPv6 static routing commands
Title Size Download
31-IPv6 static routing commands 96.18 KB

IPv6 static routing commands

delete ipv6 static-routes all

Use delete ipv6 static-routes all to delete all IPv6 static routes.

Syntax

delete ipv6 static-routes all

Views

System view

Predefined user roles

network-admin

Usage guidelines

CAUTION

CAUTION:

This command might interrupt network communication and cause packet forwarding failure. Before executing the command, make sure you fully understand the potential impact on the network.

 

When you use this command, the system will prompt you to confirm the operation before deleting all the IPv6 static routes.

Examples

# Delete all IPv6 static routes.

<Sysname> system-view

[Sysname] delete ipv6 static-routes all

This will erase all IPv6 static routes and their configurations, you must reconfigure all static routes.

Are you sure?[Y/N]:y

Related commands

ipv6 route-static

display ipv6 route-static nib

Use display ipv6 route-static nib to display IPv6 static route next hop information.

Syntax

display ipv6 route-static nib [ nib-id ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

nib-id: Specifies a NIB by its ID, a hexadecimal string in the range of 1 to ffffffff.

verbose: Displays detailed IPv6 static route next hop information. If you do not specify this keyword, the command displays brief IPv6 static route next hop information.

Examples

# Display brief IPv6 static route next hop information.

<Sysname> display ipv6 route-static nib

Total number of nexthop(s): 35

 

      NibID: 0x21000000           Sequence: 0

       Type: 0x41                  Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                   VrfNthp: 0

   UserKey1: 0x0                   Nexthop: 2::3

   UserKey2: 0x0                   IFIndex: 0x10001

   UserKey3: 0x0                 LocalAddr: ::

   TopoNthp: Invalid               ExtType: 0x0

      Color: 0                      COFlag: 0x0

     LinkID: 0x0

   SIDIndex: 0x0                   SRPName:

 OriNexthop: ::

 

      NibID: 0x21000001           Sequence: 1

       Type: 0x41                  Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                   VrfNthp: 0

   UserKey1: 0x0                   Nexthop: 3::4

   UserKey2: 0x0                   IFIndex: 0x10002

   UserKey3: 0x0                 LocalAddr: ::

   TopoNthp: Invalid               ExtType: 0x0

      Color: 0                      COFlag: 0x0

     LinkID: 0x0

   SIDIndex: 0x0                   SRPName:

 OriNexthop: ::

 

...

Table 1 Command output

Field

Description

NibID

ID of the NIB.

Sequence

Sequence number of the NIB.

Type

Type of the NIB.

Flushed

Indicates whether the route with the NIB has been flushed to the FIB.

Age

Elapsed time since the next hop information was last updated.

UserKey0

Reserved data 1.

UserKey1

Reserved data 2.

UserKey2

Reserved data 3.

UserKey3

Reserved data 4.

VrfNthp

This field is not supported in the current software version.

Index of the VPN instance to which the next hop belongs. This field displays 0 if the next hop is on the public network.

Nexthop

Next hop address.

IFIndex

Interface index

LocalAddr

Local interface address.

TopoNthp

This field is not supported in the current software version.

Index of the topology that contains the next hop.

This field displays 0 if the next hop is on the public network.

This field displays Invalid if the next hop is on an IPv6 network, because the router does not support non-base topologies.

ExtType

NIB extension type.

Color

Color extended community attribute.

COFlag

Flag of the color extended community attribute.

LinkID

This field is not supported in the current software version.

Link ID of the SDWAN TTE connection.

SIDIndex

SID index value.

SRPName

This field is not supported in the current software version.

SR-MPLS TE policy name.

OriNexthop

Original next hop address of the route.

If the route is obtained from a BGP UPDATE message, the address is the next hop IP address in the BGP UPDATE message.

 

# Display detailed IPv6 static route next hop information.

<Sysname> display ipv6 route-static nib verbose

Total number of nexthop(s): 35

 

      NibID: 0x21000000           Sequence: 0

       Type: 0x41                  Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                   VrfNthp: 0

   UserKey1: 0x0                   Nexthop: 2::3

   UserKey2: 0x0                   IFIndex: 0x10001

   UserKey3: 0x0                 LocalAddr: ::

   TopoNthp: Invalid               ExtType: 0x0

      Color: 0                      COFlag: 0x0

     LinkID: 0x0

   SIDIndex: 0x0                   SRPName:

 OriNexthop: ::

     RefCnt: 1                 FlushRefCnt: 0

       Flag: 0x12                  Version: 1

 1 nexthop(s):

PrefixIndex: 0                 OrigNexthop: 2::3

  RelyDepth: 2                 RealNexthop: ::

  Interface: NULL0               LocalAddr: ::

  TunnelCnt: 0                         Vrf: default-vrf

   TunnelID: N/A                  Topology:

     Weight: 0                       Flags: 0x0

SRPolicyNID: 4294967295        SRInterface:

ColorWeight: 0                     Locator: N/A

 OrigLinkID: 0x0                RealLinkID: 0x0

 

      NibID: 0x21000001           Sequence: 1

       Type: 0x41                  Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                   VrfNthp: 0

   UserKey1: 0x0                   Nexthop: 3::4

   UserKey2: 0x0                   IFIndex: 0x10002

   UserKey3: 0x0                 LocalAddr: ::

   TopoNthp: Invalid               ExtType: 0x0

      Color: 0                      COFlag: 0x0

     LinkID: 0x0

   SIDIndex: 0x0                   SRPName:

 OriNexthop: ::

     RefCnt: 1                 FlushRefCnt: 0

       Flag: 0x12                  Version: 1

 1 nexthop(s):

PrefixIndex: 0                 OrigNexthop: 3::4

  RelyDepth: 1                 RealNexthop: ::

  Interface: Vlan11              LocalAddr: ::

  TunnelCnt: 0                         Vrf: default-vrf

   TunnelID: N/A                  Topology:

     Weight: 0                       Flags: 0x0

SRPolicyNID: 4294967295        SRInterface:

ColorWeight: 0                     Locator: N/A

 OrigLinkID: 0x0                RealLinkID: 0x0

 

...

Table 2 Command output

Field

Description

NibID

ID of the NIB.

Sequence

Sequence number of the NIB.

Type

Type of the NIB.

Flushed

Indicates whether the route with the NIB has been flushed to the FIB.

Age

Elapsed time since the next hop information was last updated.

UserKey0

Reserved data 1.

UserKey1

Reserved data 2.

UserKey2

Reserved data 3.

UserKey3

Reserved data 4.

VrfNthp

Index of the VPN instance to which the next hop belongs. This field displays 0 if the next hop is on the public network.

Nexthop

Next hop address.

IFIndex

Interface index

LocalAddr

Local interface address.

TopoNthp

Index of the topology that contains the next hop.

This field displays 0 if the next hop is on the public network.

This field displays Invalid if the next hop is on an IPv6 network, because the router does not support non-base topologies.

ExtType

NIB extension type.

Color

Color extended community attribute.

COFlag

Flag of the color extended community attribute.

LinkID

Link ID of the SDWAN TTE connection.

SIDIndex

SID index value.

SRPName

SR-MPLS TE policy name.

OriNexthop

Original next hop address of the route.

If the route is obtained from a BGP UPDATE message, the address is the next hop IP address in the BGP UPDATE message.

x nexthop(s)

Number of next hops.

PrefixIndex

Prefix index of the next hop for an ECMP route.

Vrf

This field is not supported in the current software version.

VPN instance name. For the public network, this field displays default-vrf.

OrigNexthop

Original next hop.

RealNexthop

Real next hop.

Interface

Output interface.

localAddr

Local interface address.

RelyDepth

Recursion depth.

TunnelCnt

This field is not supported in the current software version.

Number of tunnels after route recursion.

TunnelID

This field is not supported in the current software version.

ID of the tunnel after route recursion.

Topology

Topology name. This field is blank for IPv6, because IPv6 does not support non-base topologies.

Weight

ECMP route weight. This field displays 0 for non-ECMP routes.

RefCnt

Reference count of the next hop.

FlushRefCnt

Reference count of the next hop that is flushed to the FIB.

Flag

Flag of the next hop.

Version

Version of the next hop.

Flags

Flags of the detailed next hop.

SRPolicyNID

NIB ID of the route obtained from an SR-MPLS TE policy through route recursion.

SRInterface

Output interface of the route obtained from the SR-MPLS TE policy through route recursion.

ColorWeight

Weight value of the color attribute in the SR-MPLS TE policy.

Locator

IPv6 prefix of the locator to which the SID belongs.

If no locator is available, this field displays N/A.

OrigLinkID

This field is not supported in the current software version.

Original link ID of the SDWAN TTE connection.

RealLinkID

This field is not supported in the current software version.

Real link ID of the SDWAN TTE connection.

 

display ipv6 route-static routing-table

Use display ipv6 route-static routing-table to display IPv6 static routing table information.

Syntax

display ipv6 route-static routing-table [ ipv6-address prefix-length ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

ipv6-address: Specifies the destination IPv6 address.

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

Examples

# Display IPv6 static routing table information.

<Sysname> display ipv6 route-static routing-table

Total number of routes: 5

 

Status: * - valid

 

*Destination: 1::1/128

       NibID: 0x21000000        NextHop: 2::2

   MainNibID: N/A             BkNextHop: N/A

     BkNibID: N/A             Interface: Vlan-interface11

     TableID: 0xa           BkInterface: N/A

        Flag: 0x80d0a          BfdSrcIp: N/A

     DbIndex: 0x3            BfdIfIndex: 0x0

        Type: Normal        BfdVrfIndex: 0

  TrackIndex: 0xffffffff          Label: NULL

  Preference: 60            vrfIndexDst: 0

     BfdMode: N/A            vrfIndexNH: 0

   Permanent: 0                     Tag: 0

 

*Destination: 1::1234/128

      NibID: 0x21000000        NextHop: 2::2

   MainNibID: N/A             BkNextHop: N/A

     BkNibID: N/A             Interface: NULL0

     TableID: 0xa           BkInterface: N/A

        Flag: 0x80d0a          BfdSrcIp: N/A

     DbIndex: 0x1            BfdIfIndex: 0x0

        Type: Normal        BfdVrfIndex: 0

  TrackIndex: 0xffffffff          Label: NULL

  Preference: 60            vrfIndexDst: 0

     BfdMode: N/A            vrfIndexNH: 0

   Permanent: 0                     Tag: 0

 

...

Table 3 Command output

Field

Description

Destination

Destination address/prefix.

NibID

ID of the NIB.

MainNibID

ID of the primary next hop for static route FRR.

BkNibID

ID of the backup next hop for static route FRR.

NextHop

Next hop address.

BkNextHop

Backup next hop address.

Interface

Output interface of the route. (If an SRv6 TE policy or SR-MPLS TE policy is obtained through route recursion for the route, this field displays the policy name.)

BkInterface

Backup output interface. (If an SRv6 TE policy or SR-MPLS TE policy is obtained through route recursion for the route, this field displays the policy name.)

TableID

ID of the table to which the route belongs.

DbIndex

Index of the database to which the route belongs.

Type

Route type:

·     Normal.

·     DHCP.

·     NAT.

BfdSrcIp

This field is not supported in the current software version.

Source IPv6 address of the indirect BFD session.

BfdIfIndex

This field is not supported in the current software version.

Index of the interface where BFD is enabled.

BfdVrfIndex

This field is not supported in the current software version.

Index of the VPN instance where BFD is enabled. This field displays 0 if BFD is enabled for the public network.

BfdMode

This field is not supported in the current software version.

BFD session mode:

·     N/A—No BFD session is configured.

·     Ctrl—Control packet mode.

·     Echo—Echo packet mode.

TrackIndex

NQA Track index.

vrfIndexDst

This field is not supported in the current software version.

Index of the VPN instance to which the destination belongs. For the public network, this field displays 0.

vrfIndexNH

This field is not supported in the current software version.

Index of the VPN instance to which the next hop belongs. For the public network, this field displays 0.

Permanent

Permanent static route flag. 1 indicates a permanent static route.

 

ipv6 route-static

Use ipv6 route-static to configure an IPv6 static route.

Use undo ipv6 route-static to remove an IPv6 static route.

Syntax

ipv6 route-static ipv6-address prefix-length interface-type interface-number [ next-hop-address ] [ permanent | track track-entry-number ] [ preference preference ] [ tag tag-value ] [ recursive-lookup ] [ description text ]

ipv6 route-static ipv6-address prefix-length interface-type interface-number gateway [ track track-entry-number ] [ preference preference ] [ tag tag-value ] [ description text ]

ipv6 route-static ipv6-address prefix-length next-hop-address [ recursive-lookup { host-route | longest-match } ] [ permanent | track track-entry-number ] [ preference preference ] [ tag tag-value ] [ recursive-lookup ] [ description text ]

undo ipv6 route-static ipv6-address prefix-length [ interface-type interface-number [ next-hop-address | gateway ] | next-hop-address ] [ preference preference ]

Default

No IPv6 static route is configured.

Views

System view

Predefined user roles

network-admin

Parameters

ipv6-address prefix-length: Specifies the IPv6 address and prefix length.

interface-type interface-number: Specifies an output interface by its type and number. If the output interface is not a point-to-point (P2P) interface (for example, a broadcast interface), the next hop address must be specified.

next-hop-address: Specifies the next hop IPv6 address.

gateway: Specifies the gateway router designated by IPv6 address autoconfiguration for the output interface as the next hop of the IPv6 static route. When the gateway router changes, the device automatically updates the next hop of the IPv6 static route to the new gateway router. For more information about IPv6 address autoconfiguration, see IPv6 basics and DHCPv6 in Network Connectivity Configuration Guide.

recursive-lookup host-route: Specifies only host routes for IPv6 static route recursion.

recursive-lookup longest-match: Recurses the IPv6 static route to the route with the longest matching prefix.

permanent: Specifies the IPv6 route as a permanent IPv6 static route. If you specify this keyword, the static route is always active regardless of the output interface status. If the output interface is down, the permanent IPv6 static route is still active.

track track-entry-number: Associates the IPv6 static route with a track entry specified by its number in the range of 1 to 1024. For more information about Track, see High Availability Configuration Guide.

preference preference: Specifies a preference for IPv6 static routes, in the range of 1 to 255. The default is 60.

tag tag-value: Sets a tag for marking the static route, in the range of 1 to 4294967295. The default is 0.

recursive-lookup: Enables support for next hop recursion loops for the IPv6 static route. If you do not specify this keyword, the device does not support next hop recursion loops for the IPv6 static route.

description text: Configures a description for the IPv6 static route, which consists of 1 to 60 characters, including special characters such as the space, but excluding the question mark (?).

Usage guidelines

An IPv6 static route that has the destination address configured as ::/0 (a prefix length of 0) is the default IPv6 route. If the destination address of an IPv6 packet does not match any entry in the routing table, this default route is used to forward the packet.

You can configure the output interface, next hop address, or both for a static route. If the output interface is a broadcast interface (for example, an Ethernet interface or VLAN interface), the next hop address must be specified.

To specify the recursive-lookup host-route keyword, you must use the ipv6 nd route-direct advertise command to enable ND direct route advertisement to advertise 128-bit host routes on the following interfaces:

·     The output interface corresponding to the next hop of the static route.

·     The peer interface connected to the output interface.

If you do not specify the recursive-lookup longest-match or recursive-lookup host-route keywords for an IPv6 static route, the device preferentially recurses the IPv6 static route to a direct route. If no matching direct route is found, the device recurses the IPv6 static route to the route with the longest matching prefix. This mechanism might cause packet forwarding failure. When the destination subnet of a direct route contains the next hop address of the IPv6 static route, the device recurses the next hop of the IPv6 static route to that direct route. In this case, the device determines that the next hop of the IPv6 static route is directly connected. However, the next hop might be incorrect, which result in forwarding failure for packets that match the IPv6 static route.

If you specify the recursive-lookup longest-match keywords for an IPv6 static route, the device will recurse the IPv6 static route to the route with the longest matching prefix to ensure that the next hop is correct after recursion. If you specify the recursive-lookup host-route keywords, the device can recurse the IPv6 static route only to a host route with a prefix of 128 bits. The IPv6 static route is active only when the host route is reachable.

A recursion loop occurs when an IPv6 static route recurses to a related route whose destination address contains the destination address of the IPv6 static route. For example, a recursion loop occurs when the IPv6 static route destined for 4::2/64 recurses to a related route whose destination address is 4::2/48.

·     If the recursive-lookup keyword is not specified, the recursion loop results in route recursion failure. The device further looks up for a related route.

·     If the recursive-lookup keyword is specified, the device determines that the recursion succeeds if the output interface of the related route is an interface directly connected to the device.

If the output interface of an IPv6 static route is found through recursion loops, routing protocols on the device cannot advertise the IPv6 static route to other devices.

The recursive-lookup host-route and recursive-lookup keywords are mutually exclusive. You cannot specify both of the keywords.

Examples

# Configure an IPv6 static route, with the destination address 1:1:2::/64 and next hop 1:1:3::1.

<Sysname> system-view

[Sysname] ipv6 route-static 1:1:2:: 64 1:1:3::1

Related commands

display ipv6 routing-table protocol

ipv6 route-static default-preference

Use ipv6 route-static default-preference to set a default preference for IPv6 static routes.

Use undo ipv6 route-static default-preference to restore the default.

Syntax

ipv6 route-static default-preference default-preference

undo ipv6 route-static default-preference

Default

The default preference of IPv6 static routes is 60.

Views

System view

Predefined user roles

network-admin

Parameters

default-preference: Specifies a default preference for IPv6 static routes, in the range of 1 to 255.

Usage guidelines

If no preference is specified for an IPv6 static route, the default preference applies.

When the default preference is reconfigured, it applies only to newly added IPv6 static routes.

Examples

# Set a default preference of 120 for IPv6 static routes.

<Sysname> system-view

[Sysname] ipv6 route-static default-preference 120

Related commands

display ipv6 routing-table protocol

ipv6 route-static fast-reroute auto

Use ipv6 route-static fast-reroute auto to configure IPv6 static route FRR to automatically select a backup next hop.

Use undo ipv6 route-static fast-reroute auto to disable IPv6 static route FRR from automatically selecting a backup next hop.

Syntax

ipv6 route-static fast-reroute auto

undo ipv6 route-static fast-reroute auto

Default

IPv6 static route FRR is disabled from automatically selecting a backup next hop.

Views

System view

Predefined user roles

network-admin

Examples

# Configure IPv6 static route FRR to automatically select a backup next hop.

<Sysname> system-view

[Sysname] ipv6 route-static fast-reroute auto

ipv6 route-static nd-request

Use ipv6 route-static nd-request to enable periodic sending of ND requests to the next hops of IPv6 static routes.

Use undo ipv6 route-static nd-request to disable periodic sending of ND requests to the next hops of IPv6 static routes.

Syntax

ipv6 route-static nd-request [ interval interval ]

undo ipv6 route-static nd-request

Default

Periodic sending of ND requests to the next hops of IPv6 static routes is disabled.

Views

System view

Predefined user roles

network-admin

Parameters

interval: Specifies an ND request sending interval in the range of 1 to 300 seconds. The default value is 5.

Usage guidelines

When the following conditions exist, a recursive IPv6 static route becomes inactive:

·     The IPv6 static route uses a host route to reach its direct next hop.

·     The host route is obtained by specifying the recursive-lookup host-route keyword in the ipv6 route-static command or by routing policy-based recursive lookup.

·     The host route is unavailable because no ND entry exists for that host route on the device.

To resolve this issue, you can use this command to enable the device to periodically send ND requests to the direct next hop. When the device receives an ND response from the direct next hop, it stops sending ND requests and activates the recursive IPv6 static route.

This command applies only to a recursive IPv6 static route that meets the following requirements:

·     The IPv6 static route has no output interface specified.

·     The IPv6 static route fails the next-hop recursion.

For more information about ND, see IPv6 neighbor discovery in Network Connectivity Configuration Guide.

Examples

# Enable sending of ND requests to the next hops of IPv6 static routes and set the sending interval to 10 seconds.

<Sysname> system-view

[Sysname] ipv6 route-static nd-request interval 10

Related commands

ipv6 route-static

protocol nexthop recursive-lookup

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
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
新华三官网