ZXR10 5900E Series Configuration Guide (IPv6)
à
Encapsulation: If the egress interface of the sent IPv6 packet is a tunnel interface,
the host first determines the tunnel type. If the tunnel is a 6to4 tunnel, the host
implements IPv4 header encapsulation. During the encapsulation, the source
address is user-configured whereas the destination address is obtained from
the destination address of the packet. The encapsulated packet is then sent
according to the IPv4 packet sending process.
à
Decapsulation: If the protocol number in the IPv4 header of the received IPv4
packet is 41, the host proceeds to the 6to4 decapsulation process and searches
for the matched tunnel number according to the source address of the packet.
If the tunnel number is found, the host removes the IPv4 header added during
tunnel encapsulation and delivers the remaining IPv6 packet to the IPv6 packet
receiving process for further handling.
3.2 Configuring IPv6 Tunnel
Configuring 6in4 Tunnel
To configure a 6in4 tunnel, perform the following steps:
Step
Command
Function
1
ZXR10(config)#
interface v6_tunnel
<
tunnel_no
>
Creates an IPv6 tunnel
interface. To delete the tunnel
interface, use the
no
format of
the command.
The parameter <
tunnel_no
>
indicates the tunnel number.
The number of tunnel interfaces
that can be created ranges
from 1 to 512.
2
ZXR10(config)#
ipv6-tunnel-config
Enters the IPv6 tunnel
configuration mode.
3
ZXR10(config-ipv6-tunnel)#
interface v6_tunnel
<
tunne
l_no
>
Enters the IPv6 tunnel interface
configuration mode.
4
ZXR10(config-ipv6-tunnel-if-v6_tunnel1)#
tunnel
mode ipv6ip 6in4
Sets the current tunnel mode
to 6in4. To cancel the current
tunnel mode, use the
no
format
of the command.
5
ZXR10(config-ipv6-tunnel-if-v6_tunnel1)#
tunnel
source ipv4
<
ipv4-address
>
Specifies the source address
of the tunnel. To delete the
source address configuration
of the tunnel, use the
no
format
of the command.
3-4
SJ-20150114102049-011|2015-01-15 (R1.0)
ZTE Proprietary and Confidential