|
|
NOTE: All commands previously in the Summary of commands table are indexed under the entry Command syntax. |
|
|
IPv6 over IPv4 tunneling is a way to establish point-to-point tunnels by encapsulating IPv6 packets within IPv4 headers so that they can be carried over the IPv4 routing infrastructure. IPv6 over IPv4 tunneling provides a mechanism for utilizing the existing IPv4 routing infrastructure to carry IPv6 traffic between IPv6 networks.
There are a number of IPv6 tunneling mechanisms. Currently only tunneling IPv6 traffic over an IPv4 network through 6in4 manually configured tunnel endpoints is supported.
Tunnels are an additional routing interface type, similar to a VLAN interface or a loopback interface. Routing into 6in4 tunnels is supported for:
See RFC 4213 Basic Transition Mechanisms for IPv6 Hosts and Routers for more information about tunneling.
-
Router to router—IPv4 routers connected by an IPv4 infrastructure can tunnel IPv6 packets among themselves. The tunnel spans one segment of the end-to-end path.
-
Host to router—IPv4 and IPv6 hosts can tunnel IPv6 packets to an intermediary IPv6 or IPv4 router that is reachable through an IPv4 infrastructure. The tunnel spans the first segment of the end-to-end path.
-
Host to host—IPv6 or IPv4 hosts that are interconnected by an IPv4 infrastructure can tunnel IPv6 packets among themselves. The tunnel spans the entire end-to-end path.
-
Route to host— IPv6 or IPv4 routers can tunnel IPv6 packets to their final destination IPv6 or IPv4 host. This tunnel spans only the last segment of the end-to-end path.
Configured tunnels are in the router-to-router configuration because the tunnel endpoints need to be explicitly configured.
The decapsulator matches received packets to the tunnels it has configured, and only processes packets where the IPv4 source and destination addresses match the endpoint addresses of the configured tunnels. A tunnel’s IPv4 address must be the same on both the encapsulator and the decapsulator. IPv4 routing switches route the packet based on the IPv4 header.
IPv6 traffic can travel the tunnel in either direction. Each end node can be either the encapsulator or the decapsulator depending on the flow of the IPv6 traffic.
A tunnel is treated as a single point-to-point link; the encapsulator and decapsulator behave as IPv6 neighbors on that link. The encapsulator and decapsulator assign IPv6 link-local addresses to the interface and may also assign IPv6 global addresses. Neighbor discovery and duplicate address detection are implemented as they are on any other IPv6 interface.
An IPv6 address is configured on the tunnel interface in the same way that it would be on other IP routing interfaces, such as VLANs. IPv4 addresses are configured as the tunnel source and tunnel destination endpoint addresses.
To create a tunnel, enter this command in the global config context.
Syntax
Creates a tunnel. Tunnel interface context is entered.
The
no
form of the command removes the tunnel configuration.
To enable or disable the tunnel, enter this command in tunnel context.
Syntax
Enables or disables the tunnel. The enable
command only succeeds if all mandatory parameters such as source and destination addresses for the tunnel are configured.
To optionally configure a name for the tunnel, enter this command in tunnel context.
Syntax
Optional; Provides a name for the tunnel. The name must be unique for all existing tunnels. The
no
form of the command removes the name for the tunnel.
The tunnel mode configures the tunnel encapsulation type. The only mode currently supported is 6in4 mode.
Syntax
When encapsulating a packet, the source IP address is used in the encapsulating IPv4 header. When decapsulating a packet, this address is matched against the destination IP address in the encapsulating IPv4 header to determine if the packet was received on a valid, configured tunnel. The command is executed in tunnel context.
Syntax
Configures the IPv4 or IPv6 address of the source (local) end of the tunnel. Must not be the same address as the tunnel destination.
You cannot configure the same source and destination address pair on more than one tunnel interface.
When an encapsulating packet is sent into a tunnel, the tunnel destination address is used in the encapsulating IPv4 header. When decapsulating a packet, this address is matched against the source IP address in the encapsulating IPv4 header to determine if the packet was received on a valid, configured tunnel. The command is executed in tunnel context.
Syntax
Only the static tunnel MTU option is supported. Enter this command in tunnel context.
|
|
NOTE: The MTU value should be the same for the source and the destination switch. |
|
|
Syntax
To configure a value to use for the TOS byte in the encapsulating IPv4 header when encapsulating a packet to send over the tunnel interface, enter this command in tunnel context. If no value is specified, the value of the TOS byte is determined from the traffic class field of the IPv6 header.