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

CX11x, CX31x, CX710 (Earlier Than V6.03), and CX91x Series Switch Modules V100R001C10 Configuration Guide 13

The documents describe the configuration of various services supported by the CX11x&CX31x&CX91x series switch modules The description covers configuration examples and function configurations.
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 Transition Technology

Configuring IPv6 Transition Technology

Configuring an IPv6 over IPv4 Tunnel

You can configure IPv6 over IPv4 tunnels to interconnect IPv6 islands separated by IPv4 networks.

Pre-configuration Tasks

Before configuring an IPv6 over IPv4 tunnel, complete the following tasks:

  • Configuring the IPv4/IPv6 dual stack

    Configure IP addresses on the source and destination ends of the tunnel to configure the IPv4/IPv6 dual stack.
  • Configuring a routing protocol to ensure that there are reachable IPv4 routes between the source and destination ends of the tunnel

Configuration Process

You can perform the following configuration tasks in any sequence and select one tunnel to configure.

  • IPv6 over IPv4 manual tunnels and IPv6 over IPv4 GRE tunnels can be used to interconnect IPv6 islands separated by IPv4 networks in a similar manner as a permanent connection is established between IPv6 islands.
  • 6to4 tunnels can be used to interconnect 6to4 networks separated by IPv4 networks.

Configuring an IPv6 over IPv4 Manual Tunnel

Context

An IPv6 over IPv4 manual tunnel functions like a permanent link between two IPv6 islands, ensuring stable connection between the two IPv6 networks.

An IPv6 over IPv4 manual tunnel needs to be configured on both ends of the tunnel.

  • The tunnel source address (or source interface) and destination address must be configured.

  • IPv6 addresses must be configured for tunnel interfaces and routes with the tunnel interfaces as outbound interfaces must be configured so that devices on the two IPv6 networks can communicate through the IPv6 over IPv4 manual tunnel.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface eth-trunk trunk-id

    The Eth-Trunk interface view is displayed.

  3. Run:

    service type tunnel

    The service loopback is enabled on the Eth-Trunk interface to loop service packets back to tunnel interfaces.

    By default, service loopback is disabled on an Eth-Trunk interface.

  4. Run:

    quit

    Return to the system view.

  5. Run:

    interface interface-type interface-number

    The interface view is displayed.

    The interface must be idle and does not transmit services.

  6. Run:

    eth-trunk trunk-id

    The interface is added to the specified Eth-Trunk.

  7. Run:

    quit

    Return to the system view.

  8. Run:

    interface tunnel interface-number

    A tunnel interface is created.

  9. Run:

    tunnel-protocol ipv6-ipv4

    The tunnel mode is set to IPv6 over IPv4 manual tunnel.

  10. Run:

    binding interface eth-trunk trunk-id

    The interface is bound to the specified Eth-Trunk.

  11. Run:

    source { source-ip-address | interface-type interface-number }

    A source address or source interface is specified for the tunnel.

  12. Run:

    destination dest-ip-address

    A destination address is specified for the tunnel.

  13. Run:

    ipv6 enable

    IPv6 is enabled on the tunnel interface.

  14. Run:

    ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }

    An IPv6 address is configured for the tunnel interface.

  15. Run:

    quit

    Return to the system view.

  16. Choose either of the following methods to configure routes with tunnel interfaces as outbound interfaces:

    • Run the ipv6 route-static dest-ipv6-address prefix-length tunnel interface-number [ nexthop-ipv6-address ] [ preference preference | tag tag ] * [ bfd enable | track { bfd-session cfg-name | nqa admin-name test-name } ] [ description text ] command to configure static routes.
    • Configure dynamic routes. You can configure dynamic routes using the Interior Gateway Protocol (IGP) or Exterior Gateway Protocol (EGP). The Intermediate System to Intermediate System for IPv6 (IS-ISv6) protocol cannot be used to configure dynamic routes. For the configuration of dynamic routes, see the CX11x&CX31x&CX91x Series Switch Modules Configuration Guide - IP Routing.

  17. Run:

    commit

    The configuration is committed.

Configuring an IPv6 over IPv4 GRE Tunnel

Context

An IPv6 over IPv4 GRE tunnel functions like a permanent link between two IPv6 islands, ensuring stable connection between the two IPv6 networks.

An IPv6 over IPv4 GRE tunnel needs to be configured on both ends of the tunnel.

  • The tunnel source address (or source interface) and destination address must be configured.

  • IPv6 addresses must be configured for tunnel interfaces and routes with the tunnel interfaces as outbound interfaces must be configured so that devices on the two IPv6 networks can communicate through the IPv6 over IPv4 GRE tunnel.

Compared with an IPv6 over IPv4 manual tunnel, an IPv6 over IPv4 GRE tunnel supports the Keepalive function, which enhances data transmission reliability. For the configuration of the Keepalive function, see (Optional) Enabling the Keepalive Detection Function for GRE in the CX11x&CX31x&CX91x Series Switch Modules Configuration Guide - VPN.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface eth-trunk trunk-id

    The Eth-Trunk interface view is displayed.

  3. Run:

    service type tunnel

    The interface is specified as the service loopback interface.

  4. Run:

    quit

    Return to the system view.

  5. Run:

    interface interface-type interface-number

    The interface view is displayed.

    The interface must be idle and does not transmit services.

  6. Run:

    eth-trunk trunk-id

    The interface is added to the specified Eth-Trunk.

  7. Run:

    quit

    Return to the system view.

  8. Run:

    interface tunnel interface-number

    A tunnel interface is created.

  9. Run:

    tunnel-protocol gre

    The tunnel mode is set to GRE tunnel.

  10. Run:

    binding interface eth-trunk trunk-id

    The interface is bound to the specified Eth-Trunk.

  11. Run:

    source { source-ip-address | interface-type interface-number }

    A source address or source interface is specified for the tunnel.

  12. Run:

    destination dest-ip-address

    A destination address is specified for the tunnel.

  13. Run:

    ipv6 enable

    IPv6 is enabled on the tunnel interface.

  14. Run:

    ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }

    An IPv6 address is configured for the tunnel interface.

  15. Run:

    quit

    Return to the system view.

  16. Choose either of the following methods to configure routes with tunnel interfaces as outbound interfaces:

    • Run the ipv6 route-static dest-ipv6-address prefix-length tunnel interface-number [ nexthop-ipv6-address ] [ preference preference | tag tag ] * [ bfd enable | track { bfd-session cfg-name | nqa admin-name test-name } ] [ description text ] command to configure static routes.
    • Configure dynamic routes. You can configure dynamic routes using the Interior Gateway Protocol (IGP) or Exterior Gateway Protocol (EGP). For the configuration of dynamic routes, see the CX11x&CX31x&CX91x Series Switch Modules Configuration Guide - IP Routing.

  17. Run:

    commit

    The configuration is committed.

Configuring a 6to4 Tunnel

Context

A 6to4 tunnel implements interconnection between 6to4 networks.

A 6to4 tunnel needs to be configured on both ends of the tunnel.

  • Only the source address of the tunnel needs to be specified when a 6to4 tunnel is configured. The destination address of the tunnel is obtained from the destination address of the original IPv6 packet. Source addresses of two 6to4 tunnels must be different.

  • Configure a 6to4 address for the interface that connects a border device to a 6to4 network, and configure an IPv4 address for the interface that connects a border device to an IPv4 network. You also need to configure a network address for the tunnel interface to support routing protocols.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface eth-trunk trunk-id

    The Eth-Trunk interface view is displayed.

  3. Run:

    service type tunnel

    The interface is specified as the service loopback interface.

  4. Run:

    quit

    Return to the system view.

  5. Run:

    interface interface-type interface-number

    The interface view is displayed.

    The interface must be idle and does not transmit services.

  6. Run:

    eth-trunk trunk-id

    The interface is added to the specified Eth-Trunk.

  7. Run:

    quit

    Return to the system view.

  8. Run:

    interface tunnel interface-number

    A tunnel interface is created.

  9. Run:

    tunnel-protocol ipv6-ipv4 6to4

    The tunnel mode is set to 6to4 tunnel.

  10. Run:

    binding interface eth-trunk trunk-id

    The interface is bound to the specified Eth-Trunk.

  11. Run:

    source { source-ip-address | interface-type interface-number }

    A source address or source interface is specified for the tunnel.

  12. Run:

    ipv6 enable

    IPv6 is enabled on the tunnel interface.

  13. Run:

    ipv6 address { ipv6-address prefix-length | ipv6-address|prefix-length }

    An IPv6 address is configured for the tunnel interface.

    The IPv6 address prefix of the specified tunnel interface must be the same as the address prefix of the 6to4 network that the border device belongs to.

  14. Run:

    quit

    Return to the system view.

  15. Choose either of the following methods to configure routes with tunnel interfaces as outbound interfaces:

    • Run the ipv6 route-static dest-ipv6-address prefix-length tunnel interface-number [ nexthop-ipv6-address ] [ preference preference | tag tag ] * [ bfd enable | track { bfd-session cfg-name | nqa admin-name test-name } ] [ description text ] command to configure static routes.

    • Configure dynamic routes. You can only configure BGP4+. For the configuration of BGP4+, see the CX11x&CX31x&CX91x Series Switch Modules Configuration Guide - IP Routing.

  16. Run:

    commit

    The configuration is committed.

Checking the Configuration

Procedure

  • Run the display ipv6 interface tunnel interface-number command to check IPv6 information on the tunnel interface.
Translation
Download
Updated: 2019-12-13

Document ID: EDOC1000041694

Views: 61590

Downloads: 3623

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