This example creates an IPv6 6in4 tunnel, which allows IPv6 hosts in one network to exchange IPv6 data with hosts in another IPv6 network by using the IPv4 tunneling infrastructure. In this example:
-
All IPv6 traffic between hosts in the 3000::/64 and the 4000::/64 networks is tunneled through Switch B and Switch C, respectively.
-
Switch B and Switch C are the manually configured endpoints.
-
IPv6 traffic entering the tunnel endpoints is encapsulated with an IPv4 header based on the 6in4 configuration, and then routed through the IPv4 network using Switch A as the first hop.
-
Static IPv6 routes are used to route into the tunnel interfaces.
-
Configure the Tunnel Endpoint for Switch B
The tunnel endpoint for Switch B is configured with:
-
Source—encapsulation information for the IPv4 header indicating the source IPv4 address
-
Destination—encapsulation information for the IPv4 header indicating the destination IPv4 address
-
IPv6 Address—IPv6 network assigned to the interface (much like VLAN assignments). Enables IPv6 on the interface. It is required in order to route over the interface.
-
Configure VLAN 2 for the IPv6 Hosts on the 3000::/64 Network
This step configures IPv6 address 3000::1/64 on VLAN 2. When IPv6 traffic from IPv6 host 3000::2/64 that is destined for the IPv6 4000::/64 network is transported over VLAN 2, it will be routed into the tunnel.
-
Configure IPv6 Routing to Route into the Tunnel
IPv6 unicast routing is enabled. The static route is configured to route packets destined for the 4000::/64 network into the tunnel.
-
Configure the VLAN Used to Reach the First Hop Router in the IPv4 Network
This step configures the tunnel endpoint IPv4 address 20.0.0.1/24 (VLAN 1) in VLAN 2 context so that traffic from VLAN 2 can reach the first hop router in the IPv4 network through the tunnel.
Configure sSwitch C in a manner similar to switch B, using the appropriate IPv6 and IPv4 addresses.
-
Configure the Tunnel Endpoint for Switch C
The tunnel endpoint for Switch C is configured with a mode, IPv4 source address, IPv4 destination address, and an IPv6 interface address.
-
Configure VLAN 2 for the IPv6 Hosts on the 4000::/64 Network
This step configures IPv6 address 4000::1/64 on VLAN 2. When IPv6 traffic from IPv6 host 4000::2/64 that is destined for the IPv6 3000::/64 network is transported over VLAN 2, it will be routed into the tunnel.
-
Configure IPv6 Routing to Route into the Tunnel
IPv6 unicast routing is enabled. The static route is configured to route packets destined for the 3000::/64 network into the tunnel.
-
Configure the VLAN Used to Reach the First Hop Router in the IPv4 Network
This step configures the tunnel endpoint IPv4 address 30.0.0.1/24 (VLAN1) in VLAN 2 context so that traffic from VLAN 2 can reach the first hop router in the IPv4 network through the tunnel.