Configuration procedure

To configure an IPv6 over IPv6 tunnel:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter IPv6 tunnel interface view or IPv6 over IPv6 tunnel interface view.

interface tunnel number [ mode ipv6 ]

N/A

3. Configure an IPv6 address for the tunnel interface.

See "Configuring basic IPv6 settings."

By default, no IPv6 address is configured for the tunnel interface.

4. Configure the source address or source interface for the tunnel interface.

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

By default, no source address or interface is configured for the tunnel.

If you specify a source address, it is used as the source IPv6 address of tunneled packets.

If you specify a source interface, the lowest IPv6 address of this interface is used as the source IPv6 address of tunneled packets.

5. Configure the destination address for the tunnel interface.

destination ipv6-address

By default, no destination address is configured for the tunnel.

The tunnel destination address must be the IPv6 address of the receiving interface on the tunnel peer. It is used as the destination IPv6 address of tunneled packets.

6. (Optional.) Set the maximum number of nested encapsulations of a packet.

encapsulation-limit number

By default, there is no limit to the nested encapsulations of a packet.

7. Return to system view.

quit

N/A

8. (Optional.) Enable dropping IPv6 packets that use IPv4-compatible IPv6 addresses.

tunnel discard ipv4-compatible-packet

By default, IPv6 packets that use IPv4-compatible IPv6 packets are not dropped.