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

NE40E V800R010C10SPC500 Configuration Guide - IP Routing 01

This is NE40E V800R010C10SPC500 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).
Example for Configuring IPv6 Floating Static Routes

Example for Configuring IPv6 Floating Static Routes

IPv6 Floating static routes can be used for the static route backup.

Networking Requirements

Figure 4-3 shows the IPv6 addresses and masks of each router interface and a host. Two IPv6 static routes to 2001:db8:5::/64 are configured on Device A. The primary static route passes through Device B, and the floating static route passes through Device C.

Figure 4-3 Networking for configuring IPv6 floating static routes
NOTE:

Interfaces 1 through 5 in this example are GE 1/0/1, GE 1/0/2, GE 1/0/3, GE 2/0/3, GE 3/0/3, respectively.


Precautions

When configuring an IPv6 floating static route, a next-hop address of this route must be specified if the outbound interface is of the broadcast type.

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure an IPv6 address for each interface of each router.

  2. On Devices B and C, configure IPv6 static routes to 2001:db8:5::/64.

  3. On Device A, configure IPv6 static routes to 2001:db8:3::/64 and 2001:db8:4::/64.

  4. On Device A, configure two IPv6 static routes to 2001:db8:5::/64 with different priorities.

  5. On Device D, configure IPv6 static routes to 2001:db8:1::/64 and 2001:db8:2::/64 so that routers can communicate.

Data Preparation

To complete the configuration, you need the following data:

  • On Device A, priority values of two static routes (60 for the one with 2001:db8:1::2 as the next hop address and 100 for the one with 2001:db8:2::2 as the next-hop address)

Procedure

  1. Configure an IPv6 address for each interface. For configuration details, see Configuration File.
  2. Configure IPv6 static routes.

    # Configure IPv6 static routes on Device B.

    [~DeviceB] ipv6 route-static 2001:db8:5:: 64 2001:db8:3::2
    [*DeviceB] commit

    # Configure IPv6 static routes on Device C.

    [~DeviceC] ipv6 route-static 2001:db8:5:: 64 2001:db8:4::2
    [*DeviceC] commit

    # Configure IPv6 static routes on Device A.

    [~DeviceA] ipv6 route-static 2001:db8:3:: 64 2001:db8:1::2
    [*DeviceA] ipv6 route-static 2001:db8:4:: 64 2001:db8:2::2
    [*DeviceA] ipv6 route-static 2001:db8:5:: 64 2001:db8:1::2
    [*DeviceA] ipv6 route-static 2001:db8:5:: 64 2001:db8:2::2 preference 100
    [*DeviceA] commit

    # Configure IPv6 static routes on Device D.

    [~DeviceD] ipv6 route-static 2001:db8:1:: 64 2001:db8:3::1
    [*DeviceD] ipv6 route-static 2001:db8:2:: 64 2001:db8:4::1
    [*DeviceD] commit

  3. Verify the configuration.

    # View information about static routes in the IP routing table of Device A.

    [~DeviceA] display ipv6 routing-table protocol static
    _public_ Routing Table : Static
    Summary Count : 3
    
    Static routing table status : <Active>
    Summary Count : 3
    
    Destination  : 2001:db8:3::                            PrefixLength : 64
    NextHop      : 2001:db8:1::2                           Preference   : 60
    Cost         : 0                                       Protocol     : Static
    RelayNextHop : 2001:db8:1::2                           TunnelID     : 0x0
    Interface    : GigabitEthernet1/0/1                    Flags        : RD
    
    Destination  : 2001:db8:4::                            PrefixLength : 64
    NextHop      : 2001:db8:2::2                           Preference   : 60
    Cost         : 0                                       Protocol     : Static
    RelayNextHop : 2001:db8:2::2                           TunnelID     : 0x0
    Interface    : GigabitEthernet1/0/2                    Flags        : RD
    
    Destination  : 2001:db8:5::                            PrefixLength : 64
    NextHop      : 2001:db8:1::2                           Preference   : 60
    Cost         : 0                                       Protocol     : Static
    RelayNextHop : 2001:db8:1::2                           TunnelID     : 0x0
    Interface    : GigabitEthernet1/0/1                    Flags        : RD
    
    Static routing table status : <Inactive>
    Summary Count : 0 

    # Use the tracert ipv6 command to check the connectivity on Device A.

    [DeviceA] tracert ipv6 2001:db8:5::1
     traceroute to 2001:db8:5::1  30 hops max,60 bytes packet
     1 2001:db8:1::2 195 ms  5 ms  2 ms
     2  * 2001:db8:3::2 45 ms  !N 5 ms  !N

    # Run the shutdown command on GE 1/0/1 of Device A to simulate a link fault.

    [~DeviceA] interface GigabitEthernet 1/0/1 
    [~DeviceA-GigabitEthernet1/0/1] shutdown 
    [*DeviceA-GigabitEthernet1/0/1] commit
    [~DeviceA-GigabitEthernet1/0/1] quit
    [~DeviceA] quit

    # View information about static routes in the IP routing table of Device A. The route to 2001:db8:5::/64 switches to the floating static route with next hop 2001:db8:2::2.

    <DeviceA> display ipv6 routing-table protocol static
    _public_ Routing Table : Static
    Summary Count : 2
    
    Static routing table status : <Active>
    Summary Count : 2
    
    Destination  : 2001:db8:4::                            PrefixLength : 64
    NextHop      : 2001:db8:2::2                           Preference   : 60
    Cost         : 0                                       Protocol     : Static
    RelayNextHop : 2001:db8:2::2                           TunnelID     : 0x0
    Interface    : GigabitEthernet1/0/2                    Flags        : RD
    
    Destination  : 2001:db8:5::                            PrefixLength : 64
    NextHop      : 2001:db8:2::2                           Preference   : 100
    Cost         : 0                                       Protocol     : Static
    RelayNextHop : 2001:db8:2::2                           TunnelID     : 0x0
    Interface    : GigabitEthernet1/0/2                    Flags        : RD
    
    Static routing table status : <Inactive>
    Summary Count : 0

    # Use the tracert ipv6 command to check the connectivity on Device A.

    <DeviceA> tracert ipv6 2001:db8:5::1
     traceroute to 2001:db8:5::1  30 hops max,60 bytes packet
     1 2001:db8:2::2 87 ms  2 ms  4 ms
     2  * 2001:db8:4::2 6 ms  !N 2 ms  !N

Configuration Files

  • Device A configuration file

    #
    sysname DeviceA
    #
    interface GigabitEthernet1/0/1
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:1::1/64
    #
    interface GigabitEthernet1/0/2
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:2::1/64
    #
    ipv6 route-static 2001:db8:3:: 64 2001:db8:1::2
    ipv6 route-static 2001:db8:4:: 64 2001:db8:2::2
    ipv6 route-static 2001:db8:5:: 64 2001:db8:1::2
    ipv6 route-static 2001:db8:5:: 64 2001:db8:2::2 preference 100
    #
    return
  • Device B configuration file

    #
    sysname DeviceB
    #
    interface GigabitEthernet1/0/1
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:1::2/64
    #
    interface GigabitEthernet1/0/3
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:3::1/64
    #
    ipv6 route-static 2001:db8:5:: 64 2001:db8:3::2
    #
    return
  • Device C configuration file

    #
    sysname DeviceC
    #
    interface GigabitEthernet1/0/2
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:2::2/64
    #
    interface GigabitEthernet2/0/3
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:4::1/64
    #
    ipv6 route-static 2001:db8:5:: 64 2001:db8:4::2
    #
    return
  • Device D configuration file

    #
    sysname DeviceD
    #
    interface GigabitEthernet1/0/3
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:3::2/64
    #
    interface GigabitEthernet2/0/3
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:4::2/64
    #
    interface GigabitEthernet3/0/3
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:5::1/64
    #
    ipv6 route-static 2001:db8:1:: 64 2001:db8:3::1
    ipv6 route-static 2001:db8:2:: 64 2001:db8:4::1
    #
    return
Translation
Download
Updated: 2019-01-03

Document ID: EDOC1100055018

Views: 47472

Downloads: 200

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