Chapter 16 IPv6 Tunnel Configuration
16.1.2 Configuring IPv6 Tunnels
The procedure describes how to configure IPv6 tunnels, including 6in4 tunnels, 6to4
tunnels, and 4in6 tunnels.
Steps
1.
Create an IPv6 tunnel interface and enter IPv6 tunnel interface configuration mode.
Step
Command
Function
1
ZXR10(config)#
interface v6_tunnel
<
tunnel_no
>
Creates an IPv6 tunnel
interface, IPv6 tunnel number
range: 1–3000.
2
ZXR10(config)#
ipv6-tunnel-config
Enters IPv6 tunnel
configuration mode.
3
ZXR10(config-ipv6-tunnel)#
interface
{
byname
<
interface-byname
>|<
interface-name
>}
Enters IPv6 tunnel interface
configuration mode. The
interface alias and interface
name can contain up to 32
characters.
2.
Configure a 6in4 tunnel.
Step
Command
Function
1
ZXR10(config-ipv6-tunnel-if-v6_tunnel)#
tunnel
mode ipv6ip 6in4
Sets the current tunnel mode
to 6in4.
2
ZXR10(config-ipv6-tunnel-if-v6_tunnel)#
tunnel
source ipv4
<
src-address
>
Specifies the source address
of the tunnel, in IPv4 address
format.
3
ZXR10(config-ipv6-tunnel-if-v6_tunnel)#
tunnel
destination ipv4
<
dst-address
>
Specifies the destination
address of the tunnel, in IPv4
address format.
3.
Configure a 6to4 tunnel.
Step
Command
Function
1
ZXR10(config-ipv6-tunnel-if-v6_tunnel)#
tunnel
mode ipv6ip 6to4
Sets the current tunnel mode
to 6to4.
2
ZXR10(config-ipv6-tunnel-if-v6_tunnel)#
tunnel
source ipv4
<
src_address
>
Specifies the source address
of the tunnel, in IPv4 address
format.
4.
Configure a 4in6 tunnel.
16-5
SJ-20140504150128-018|2014-05-10 (R1.0)
ZTE Proprietary and Confidential