To configure a static IPv6 tunnel interface, use the tunnel mode ipv6ip command in Interface (Tunnel) Configuration mode. To remove an IPv6 tunnel interface, use the no form of this command.
Syntax
tunnel mode ipv6ip [6to4 | isatap]
no tunnel mode ipv6ip
Parameters
-
6to4—(Optional) Specifies IPv6 automatic tunneling mode using a 6to4 address.
-
isatap—(Optional) Specifies IPv6 automatic tunneling mode as ISATAP to connect IPv6 nodes (hosts and routers) within IPv4 networks.
Default Configuration
IPv6 tunnel interfaces are not configured.
Command Mode
Interface (Tunnel) Configuration mode
User Guidelines
IPv6 tunneling consists of encapsulating IPv6 packets within IPv4 packets for transmission across an IPv4 routing infrastructure.
The IPv6 interface is automatically enabled on a tunnel when it is configured as an IPv6 tunnel by the tunnel mode ipv6ip command and the local IPv4 is defined by the tunnel source command.
When the IPv6 tunnel mode is changed the IPv6 interface on the tunnel is re-enabled that causes removing static IPv6 configuration
on the tunnel (for example, global IPv6 addresses, static IPv6 routes via the tunnel, etc.).
The IPv6 interface on an IPv6 tunnel is disabled if the tunnel stops to be an IPv6 tunnel or the tunnel local IPv4 address
is removed and the new IPv4 cannot be chosen.
Manually Configured Tunnels
Using this command without keywords specifies an IPv6-configured tunnel where the tunnel endpoints is determined by two manually
configured unique IPv4 addresses by the tunnel source and tunnel destination commands. Only the ipv6 address eui-64 command can be used to configured a global unicast IPv6 on a manual tunnel. Any correct global 64-bits IPv6 prefix can be
configured.
The interface identifier of tunnel is 0:0:WWXX:YYZZ, where WWXX:YYZZ is the tunnel local IPv4 address (RFC 4213).
6to4 Tunnels
Using this command with the 6to4 keyword specifies automatic 6to4 tunneling where only the local tunnel endpoint is determined by manually configured unique
IPv4 address.
During the 6to4 tunnel creation the switch automatically creates on the 6to4 tunnel:
A global unicast IPv6 address cannot be configured manually on a 6to4 tunnel.
The unique IPv4 address is used as the network-layer address in the 6to4 address prefix. A unicast global 64-bits 6to4 IPv6
prefix (RFC 3056) 2002:WWXX:YYZZ:SSI::/64 (SSI - 16 bits of Site Subnet Identifier.) can be used for definition unicast global
6to4 IPv6 addresses on native IPv6 the in-band interfaces on switch.
ISATAP Tunnels
Using this command with the isatap keyword specifies an automatic ISATAP tunnel. ISATAP tunnels enable transport of IPv6 packets within network boundaries.
ISATAP tunnels allow individual IPv4/IPv6 dual-stack hosts within a site to connect to an IPv6 network using the IPv4 infrastructure.
ISATAP IPv6 addresses can use any initial Unicast /48 prefix. The final 64 bits are an interface identifier. Of these, the
leading 32 bits are the fixed pattern 0000:5EFE; the last 32 bits carry the tunnel endpoint IPv4 address.
Only the ipv6 address eui-64 command can be used to configured a global unicast IPv6 on an ISATAP tunnel.
Example 1—The following example configures an ISATAP tunnel:
switchxxxxxx(config)# interface vlan 1
switchxxxxxx(config-if)# ip address 1.1.1.1 255.255.255.0
switchxxxxxx(config-if)# exit
switchxxxxxx(config)# interface vlan 1
switchxxxxxx(config-if)# tunnel mode ipv6ip isatap
switchxxxxxx(config-if)# tunnel source 1.1.1.1
switchxxxxxx(config-if)# ipv6 address 3ffe:b00:c18:1::/64 eui-64
switchxxxxxx(config-if)# exit
Example 2—The following example configures a manual IPv6 tunnel. In the example, tunnel interface 1 is manually configured with a global
IPv6 address. The tunnel source and destination are also manually configured:
switchxxxxxx(config)# interface tunnel 1
switchxxxxxx(config-if)# tunnel source vlan 1
switchxxxxxx(config-if)# tunnel destination 192.168.30.1
switchxxxxxx(config-if)# tunnel mode ipv6ip
switchxxxxxx(config-if)# exit
Example 3—The following example configures a 6to4 tunnel:
switchxxxxxx(config)# interface vlan 100
switchxxxxxx(config-if)# ip address 192.168.99.1 255.255.255.0
switchxxxxxx(config-if)# exit
switchxxxxxx(config)# interface tunnel 1
switchxxxxxx(config-if)# tunnel source vlan 100
switchxxxxxx(config-if)# tunnel mode ipv6ip 6to4
switchxxxxxx(config-if)# exit
switchxxxxxx(config)# interface vlan 101
switchxxxxxx(config-if)# ipv6 address 2002:c0a8:6301:1::/64 eui-64
switchxxxxxx(config-if)# exit
switchxxxxxx(config)# interface vlan 102
switchxxxxxx(config-if)# ipv6 address 2002:c0a8:6301:2::/64 eui-64
switchxxxxxx(config-if)# exit