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


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


Configuration Guide - IP Service

CloudEngine 8800, 7800, 6800, and 5800 V200R003C00

This document describes the configurations of IP Service, including IP address, ARP, DHCP, DNS, IP performance optimization, IPv6, DHCPv6, and IPv6 DNS.
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 a 6to4 Tunnel

Configuring a 6to4 Tunnel



CE6870EI and CE6875EI do not support the 6to4 Tunnel.

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.


  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 CloudEngine 8800, 7800, 6800, and 5800 Series Switches Configuration Guide - IP Routing.

  16. Run commit

    The configuration is committed.

Updated: 2019-05-08

Document ID: EDOC1100004354

Views: 68551

Downloads: 147

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