No relevant resource is found in the selected language.

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

Reminder

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

upgrade

Configuration Guide - IP Routing 01

NE05E and NE08E V300R003C10SPC500

This is NE05E and NE08E V300R003C10SPC500 Configuration Guide - IP Routing
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring IPv6 Static Routes

Configuring IPv6 Static Routes

On a network, you can control route selection by configuring IPv6 static routes.

Usage Scenario

On a small IPv6 network, you can achieve network connectivity by configuring IPv6 static routes. Compared with the use of dynamic routing protocols, configuring static routes saves bandwidth resources.

Pre-configuration Tasks

Before configuring an IPv6 static route, configure link layer protocol parameters and IPv6 addresses for interfaces and ensure that the status of the link layer protocol of the interface is Up.

Configuration Procedures

Figure 4-1 Flowchart of configuring IPv6 static routes

Creating IPv6 Static Routes

To create an IPv6 static route, configure its destination IP address, outbound interface, and next hop.

Context

When creating a static route, you can specify an outbound interface, a next hop address, or both of them, depending on actual requirements.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run either of the following commands as required:

    • Run ipv6 route-static dest-ipv6-address prefix-length { interface-type interface-number [ nexthop-ipv6-address ] | vpn-instance vpn-destination-name [ nexthop-ipv6-address ] | nexthop-ipv6-address } [ preference preference | tag tag ]* [ no-advertise | no-install ] [ description text ]

      An IPv6 static route is configured in public network.

    • Run ipv6 route-static vpn-instance vpn-source-name dest-ipv6-address prefix-length { interface-type interface-number [ nexthop-ipv6-address ] | vpn-instance vpn-destination-name [ nexthop-ipv6-address ] | nexthop-ipv6-address [ public ] } [ preference preference | tag tag ]* [ no-advertise | no-install ] [ description text ]

      An IPv6 static route is configured in VPN network.

    • Run ipv6 route-static topology topology-name dest-ipv6-address prefix-length { interface-type interface-number [ nexthop-ipv6-address ] | nexthop-ipv6-address } [ preference preference | tag tag ] * [ no-advertise | no-install ] [ description text ]

      An IPv6 route is configured in a non-base topology instance.

    By default, no IPv6 static routes are configured.

    NOTE:

    When static routes need to load-balance traffic, if a static route has an Ethernet interface as its outbound interface but does not have a next hop address, this static route cannot load-balance traffic with other static routes that have next hop addresses. To enable this static route to load-balance traffic with other static routes that have next hop addresses, specify a next hop address for it.

  3. Run commit

    The configuration is committed.

(Optional) Setting the Default Priority for IPv6 Static Routes

You can change default priority for IPv6 static routes.

Context

After an IPv6 static route is configured, the default priority is used if no priority is specified for the static route. After the default priority is re-set, the new default priority takes effect only on new IPv6 static routes.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ipv6 route-static default-preference preference

    The default priority is set for IPv6 static routes.

    By default, the default priority of IPv6 static routes is 60.

  3. Run commit

    The configuration is committed.

(Optional) Preventing an IPv6 Static Route from Being Selected If the BFD Session Associated with It Is in the AdminDown State

This section describes how to configure the NE not to select an IPv6 static route if the BFD session associated with it is in the AdminDown state. This ensures that Huawei devices can interwork with non-Huawei devices.

Context

By default, an IPv6 static route can still be selected by Huawei devices even though the BFD session associated with it is in the AdminDown state, but not by non-Huawei devices. As a result, Huawei devices cannot interwork with non-Huawei devices.

To address this problem, run the ipv6 route-static track bfd-session admindown invalid command to configure the NE not to select the IPv6 static route if the BFD session associated with it is in the AdminDown state.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ipv6 route-static track bfd-session session-name bfd-name admindown invalid

    The NE has been configured not to select the IPv6 static route if the BFD session associated with it is in the AdminDown state.

  3. Run commit

    The configuration is committed.

Verifying the IPv6 Static Route Configuration

After configuring an IPv6 static route, verify the configuration.

Prerequisites

An IPv6 static route has been configured.

Procedure

  • Run the display ipv6 routing-table command to check brief information about the IPv6 routing table.
  • Run the display ipv6 routing-table verbose command to check detailed information about the IPv6 routing table.

Example

# Run the display ipv6 routing-table command to check the priority, next hop, and outbound interface of the static route.

<HUAWEI> display ipv6 routing-table
Routing Table :
         Destinations : 5        Routes : 5

 Destination  : ::                                      PrefixLength : 0
 NextHop      : FE80::510A:0:8D7:1                      Preference   : 60
 Interface    : GigabitEthernet0/1/0                                Protocol     : Static
 State        : Active Adv                              Cost         : 0
 Tunnel ID    : 0x0                                     Label        : NULL
 Age          : 685270sec

 Destination  : ::1                                     PrefixLength : 128
 NextHop      : ::1                                     Preference   : 0
 Interface    : InLoopBack0                             Protocol     : Direct
 State        : Active NoAdv                            Cost         : 0
 Tunnel ID    : 0x0                                     Label        : NULL
 Age          : 523sec

 Destination  : 1::                                     PrefixLength : 64
 NextHop      : 1::1                                    Preference   : 0
 Interface    : GigabitEthernet0/2/0                    Protocol     : Direct
 State        : Active Adv                              Cost         : 0
 Tunnel ID    : 0x0                                     Label        : NULL
 Age          : 523sec

 Destination  : 1::1                                    PrefixLength : 128
 NextHop      : ::1                                     Preference   : 0
 Interface    : GigabitEthernet0/2/0                    Protocol     : Direct
 State        : Active NoAdv                            Cost         : 0
 Tunnel ID    : 0x0                                     Label        : NULL
 Age          : 357sec

 Destination  : FE80::                                  PrefixLength : 10
 NextHop      : ::                                      Preference   : 0
 Interface    : NULL0                                   Protocol     : Direct
 State        : Active NoAdv                            Cost         : 0
 Tunnel ID    : 0x0                                     Label        : NULL
 Age          : 407sec
Translation
Download
Updated: 2019-01-14

Document ID: EDOC1100058916

Views: 34788

Downloads: 51

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