3Com Switch 8800 Advanced Software V5 Configuration Guide
Configuring 6to4 Tunnel 389
■ 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.
■ If the tunnel interface addresses 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. You
can configure static or dynamic routes. A forwarding route needs to be
configured at both ends of the tunnel. For the detailed configuration, refer to
“IP Routing and Routing Table” on page 187.
■ 6to4 tunnels support only BGP4+.
■ When you configure a static route, you need to configure a route to the
destination address (the destination IP address of the packet, instead of the
IPv4 address of the tunnel destination) and set the next-hop to the tunnel
interface number or network address at the local end of the tunnel. A static
route must be configured at both ends of the tunnel.
Configuration Example Network requirements
Isolated IPv6 domains are interconnected through a 6to4 tunnel established in the
IPv4 network.
Network diagram
Figure 118 Network diagram for a 6to4 tunnel
Configuration procedure
The following example shows how to configure a 6to4 tunnel between border
switches on isolated IPv6 networks. After the IPv4 address 2.1.1.1 is converted
into an IPv6 address, the address prefix is 2002:0201:0101::/64. The configured
static route directs all traffic destined for the IPv6 address with the prefix 2002::/16
to the tunnel interface of the 6to4 tunnel.
1 Configure Switch A
# Enable the IPv6 forwarding function.
<SwitchA> system-view
[SwitchA] ipv6
# Configure an IPv4 address for the interface VLAN-interface 100.
[SwitchA] vlan 100
[SwitchA-vlan100] port GigabitEthernet 1/1/1
Vlan-int100
2.1.1.1/24
Vlan-int100
5.1.1.1/24
Vlan-int101
2002:0201 :0101 :1::1/64
Vlan-int101
2002:0501:0101:1::1 /64
Switch A Switch B
6to4 switch
6to4 switch
Host A
2002:0201 :0101 :1::2/64
Host B
2002:0501:0101:1::2/64
IPv4 netwok