A 6to4 tunnel can interconnect isolated IPv6 networks through an IPv4 network.
To enable IPv6 networks to communicate with each other through an IPv4 network, configure IPv6 over IPv4 tunnels on the routers where IPv6 networks border the IPv4 network.
6to4 tunnels use special 6to4 addresses that are in the format of 2002:a.b.c.d::/48, in which a.b.c.d represents the source address of the tunnel interface. During communication, the IPv4 address in a 6to4 address is used to encapsulate packets. The 6to4 tunnel does not need to be configured with a destination address.
Before configuring a 6to4 tunnel, complete the following tasks:
Connect interfaces and configure physical parameters for the interfaces to ensure that the physical status of the interfaces is Up.
Configure link layer protocol parameters for the interfaces to ensure that the link layer protocol status of the interfaces is Up.
Configure the IPv4/IPv6 dual stack.
The system view is displayed.
A tunnel interface is created.
The tunnel mode is set to 6to4 tunnel mode.
The source address or source interface of the tunnel is specified.
IPv6 is configured on the interface.
An IPv6 address is configured for the tunnel interface.
The IPv6 address prefix specified in this command must be the same as the prefix of the address of the 6to4 network where the border router resides.
The configuration is committed.
After configuring a 6to4 tunnel, check the configurations.
Run the display ipv6 interface tunnel interface-number command to check the IPv6 configuration of a tunnel interface.