05-Network Connectivity Configuration Guide

HomeSupportWirelessWX3800X Series Access ControllersConfigure & DeployConfiguration GuidesH3C WX3800X Series Access Controllers Configuration Guides(R1411P02)-6W10005-Network Connectivity Configuration Guide
34-IPv6 static routing configuration
Title Size Download
34-IPv6 static routing configuration 115.86 KB

Configuring IPv6 static routing

The term "router" in this chapter refers to a routing-capable device.

About IPv6 static routing

Static routes are manually configured and cannot adapt to network topology changes. If a fault or a topological change occurs in the network, the network administrator must modify the static routes manually. IPv6 static routing works well in a simple IPv6 network.

Configuring an IPv6 static route

1.     Enter system view.

system-view

2.     Configure an IPv6 static route.

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

By default, no IPv6 static route is configured.

You cannot specify both the recursive-lookup host-route keywords and the recursive-lookup keyword.

3.     (Optional.) Set the default preference for IPv6 static routes.

ipv6 route-static default-preference default-preference

The default setting is 60.

Configuring the next hop of an IPv6 static route as the gateway address

About this task

The interface obtains the gateway address during IPv6 address autoconfiguration. This task enables the device to use the gateway address obtained by the interface as the next hop address of the IPv6 static route. If the gateway address changes, the device automatically changes the next hop address of the IPv6 static route to the changed gateway address. For more information about IPv6 address autoconfiguration, see IPv6 basics configuration and DHCPv6 configuration in Network Connectivity Configuration Guide.

Restrictions and guidelines

If the interface fails to obtain the gateway address, the IPv6 static route with the interface as the output interface and the gateway address as the next hop does not take effect.

Procedure

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

Configuring IPv6 floating static routes

Perform this task to configure route backup to improve network reliability.

When an IPv6 static or dynamic route to a destination address already exists on the device, you configure another IPv6 static route with a lower priority as the backup route to improve the network reliability. This backup IPv6 static route is called an IPv6 floating static route and is activated only when the primary route fails. After the primary route recovers from failure, the IPv6 floating static route becomes inactive and data forwarding switches back to the primary route.

An IPv6 floating static route can be configured in either of the following ways

·     Configure different priorities for multiple IPv6 static routes to the same destination address. The route with the lower priority automatically becomes the IPv6 floating static route.

·     When an IPv6 route to a destination address already exists on the device, configure an IPv6 static route with a lower priority to the same destination address.

When you configure an IPv6 floating static route, the priority value of the route must be larger than then priority value of the primary route. For more information, see "Configuring an IPv6 static route."

Deleting IPv6 static routes

About this task

To delete an IPv6 static route, use the undo ipv6 route-static command. To delete all IPv6 static routes including the default route, use the delete ipv6 static-routes all command.

Procedure

1.     Enter system view.

system-view

2.     Delete all IPv6 static routes, including the default route.

delete ipv6 static-routes all

 

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.

 

Configuring IPv6 static route FRR

About IPv6 static route FRR

A link or router failure on a path can cause packet loss. IPv6 static route fast reroute (FRR) enables fast rerouting to minimize the impact of link or node failures.

Figure 1 Network diagram

 

As shown in Figure 1, upon a link failure, packets are directed to the backup next hop to avoid traffic interruption. You can enable FRR to automatically select a backup next hop (which must be configured in advance).

Restrictions and guidelines for IPv6 static route FRR

Equal-cost routes do not support IPv6 static route FRR.

Besides the configured IPv6 static route for FRR, the device must have another route to reach the destination. When the state of the primary link (with Layer 3 interfaces staying up) changes from bidirectional to unidirectional or down, IPv6 static route FRR quickly redirects traffic to the backup next hop. When the Layer 3 interfaces of the primary link are down, IPv6 static route FRR temporarily redirects traffic to the backup next hop. In addition, the device searches for another route to reach the destination and redirects traffic to the new path if a route is found. If no route is found, traffic interruption occurs.

Configuring IPv6 static route FRR to automatically select a backup next hop

1.     Enter system view.

system-view

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

ipv6 route-static fast-reroute auto

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

Enabling periodic sending of ND requests to the next hops of IPv6 static routes

About this task

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 either 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 perform this task 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 task 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 "Configuring IPv6 neighbor discovery."

Procedure

1.     Enter system view.

system-view

2.     Enable periodic sending of ND requests to the next hops of IPv6 static routes.

ipv6 route-static nd-request [ interval interval ]

By default, periodic sending of ND requests to the next hops of IPv6 static routes is disabled.

Verifying and maintaining IPv6 static routing

Perform display tasks in any view.

·     Display IPv6 static route information.

display ipv6 routing-table protocol static [ inactive | verbose ]

For more information about this command, see basic IP routing commands in Network Connectivity Command Reference.

·     Display IPv6 static route next hop information.

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

·     Display IPv6 static routing table information.

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


Configuring an IPv6 default route

A default IPv6 route is used to forward packets that match no entry in the routing table.

A default IPv6 route can be configured in either of the following ways:

·     The network administrator can configure a default route with a destination prefix of ::/0. For more information, see "Configuring IPv6 static routing."

·     Some dynamic routing protocols can generate a default IPv6 route. For example, an upstream router running OSPFv3 can generate a default IPv6 route and advertise it to other routers. These routers install the default IPv6 route with the next hop being the upstream router.

As shown in Figure 2, Device B is the next hop for packets from Device A to Device C, Device D, and Device E. You can configure a default route on Device A to replace the three IPv6 static routes from Device A to Device C, Device D, and Device E, respectively.

The next hop address, destination address, and subnet mask of the IPv6 default route configured on Device A are 1::2, ::, and 0, respectively.

Figure 2 Configuring a default route

  • 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
新华三官网