Configuring 6to4 Tunnel 531
c
CAUTION:
■ Only one automatic tunnel can be configured at the same tunnel source.
■ No destination address needs to be configured for an automatic tunnel 
because the destination address can automatically be obtained from the IPv4 
address embedded in the IPv4-compatible IPv6 address.
■ When you create a tunnel interface on a device, the slot of the tunnel interface 
should be that of the source interface, namely, the interface sending packets. 
In this way, the forwarding efficiency can be improved.
■ If the addresses of the tunnel interfaces at the two ends of a tunnel are not in 
the same network segment, a forwarding route through the tunnel to the peer 
must be configured so that the encapsulated packet can be forwarded 
normally. You can configure static or dynamic routes. You should perform this 
configuration at both ends of the tunnel.
■ The automatic tunnel interfaces encapsulated with the same protocol cannot 
share the same source IP address.
■ Automatic tunnels do not support dynamic routing.
Create a tunnel interface and 
enter tunnel interface view
interface tunnel number Required
By default, there is no 
tunnel interface on the 
device. 
Configure an 
IPv6 address for 
the tunnel 
interface 
Configure an 
IPv6 global 
unicast address 
or site-local 
address 
ipv6 address 
{ ipv6-address prefix-length 
| 
ipv6-address/prefix-length } 
Required.
Use either command.
By default, no IPv6 global 
unicast address or site-local 
address is configured for 
the tunnel interface. 
ipv6 address 
ipv6-address/prefix-length 
eui-64
Configure an 
IPv6 link-local 
address 
ipv6 address auto 
link-local 
Optional
By default, a link-local 
address will automatically 
be generated when an IPv6 
global unicast address or 
site-local address is 
configured. 
ipv6 address ipv6-address 
link-local
Set a 6to4 tunnel tunnel-protocol ipv6-ipv4 
6to4 
Required
By default, the tunnel mode 
is manual. The same tunnel 
type should be configured 
at both ends of the tunnel. 
Otherwise, packet delivery 
will fail. 
Configure a source address or 
interface for the tunnel
source { ip-address | 
interface-type 
interface-number } 
Required
By default, no source 
address or interface is 
configured for the tunnel. 
Reference a link aggregation 
group
aggregation-group 
aggregation-group-id 
Required
By default, no link 
aggregation group ID is 
referenced.
To do… Use the command…  Remarks