ZXR10 5900E Series Configuration Guide (IPv6)
3.3 IPv6 Tunnel Configuration Examples
3.3.1 6in4 Tunnel Configuration Example
Configuration Description
As shown in
, suppose S1 and S2 are dual-stack routers whereas PC1 and PC2
are IPv6 hosts. This example describes how to configure a 6in4 tunnel.
Figure 3-5 6in4 Tunnel Configuration Example
Configuration Thought
The 6in4 tunnel is of v6 nature and thus IPv6 needs to be enabled. The source address
of the tunnel is the IPv4 address of the local router, whereas the destination address is
the IPv4 address of the peer router. There must be a route for interworking between the
source address and the destination address of the tunnel (via the IPv4 routing protocol,
the static routing protocol or other routing protocols).
1.
Create 6in4 tunnel interfaces and enable IPv6 on them.
2.
Enter the tunnel configuration mode from the global mode, and then enter the 6in4
tunnel interface to be configured.
3.
Configure the tunnel mode, the source address, and the destination address.
Configuration Commands
S1 configuration:
S1(config)#interface v6_tunnel3
S1(config-if-v6_tunnel3)#ipv6 enable
S1(config-if-v6_tunnel3)#ipv6 address 3172::27/64
S1(config-if-v6_tunnel3)#exit
S1(config)#ipv6-tunnel-config
S1(config-ipv6-tunnel)#interface v6_tunnel3
S1(config-ipv6-tunnel-if-v6_tunnel3)#tunnel mode ipv6ip 6in4
S1(config-ipv6-tunnel-if-v6_tunnel3)#tunnel destination ipv4 33.1.1.28
S1(config-ipv6-tunnel-if-v6_tunnel3)#tunnel source ipv4 33.1.1.27
3-6
SJ-20150114102049-011|2015-01-15 (R1.0)
ZTE Proprietary and Confidential