The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
IPv6 supports IP over IPv6 tunnels, which includes the following:
IPv6 traffic can be carried over IPv4 GRE tunnels using the standard GRE tunneling technique that is designed to provide the services to implement any standard point-to-point encapsulation scheme. As in IPv6 manually configured tunnels, GRE tunnels are links between two points, with a separate tunnel for each link. The tunnels are not tied to a specific passenger or transport protocol but, in this case, carry IPv6 as the passenger protocol with the GRE as the carrier protocol and IPv4 or IPv6 as the transport protocol.
The primary use of GRE tunnels is for stable connections that require regular secure communication between two edge devices or between an edge device and an end system. The edge devices and the end systems must be dual-stack implementations.
GRE has a protocol field that identifies the passenger protocol. GRE tunnels allow Intermediate System-to-Intermediate System (IS-IS) or IPv6 to be specified as a passenger protocol, which allows both IS-IS and IPv6 traffic to run over the same tunnel. If GRE did not have a protocol field, it would be impossible to distinguish whether the tunnel was carrying IS-IS or IPv6 packets. The GRE protocol field makes it desirable to tunnel IS-IS and IPv6 inside GRE.
The following tasks describe how to configure an IPv6 tunnel. IPv6 or IPv4 packets can be forwarded on this tunnel.
Perform this task to configure a GRE tunnel on an IPv6 network. GRE tunnels can be configured to run over an IPv6 network layer and transport IPv6 and IPv4 packets through IPv6 tunnels.
When GRE IPv6 tunnels are configured, IPv6 addresses are assigned to the tunnel source and the tunnel destination. The tunnel interface can have either IPv4 or IPv6 addresses (this is not shown in the task below). The host or device at each end of the configured tunnel must support both IPv4 and IPv6 protocol stacks.
1. enable
2. configure terminal
3. interface tunnel tunnel-number
4. tunnel source {ipv6-address | interface-type interface-number}
5. tunnel destination ipv6-address
6. tunnel mode gre ipv6
7. end
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 | enable Example: Device> enable |
Enables privileged EXEC mode. |
||
Step 2 | configure terminal Example: Device# configure terminal |
Enters global configuration mode. |
||
Step 3 | interface tunnel tunnel-number Example: Device(config)# interface tunnel 0 |
Specifies a tunnel interface and number and enters interface configuration mode. |
||
Step 4 | tunnel source {ipv6-address | interface-type interface-number} Example: Device(config-if)# tunnel source ethernet 0 |
Specifies the source IPv6 address or the source interface type and number for the tunnel interface.
|
||
Step 5 | tunnel destination ipv6-address Example: Device(config-if)# tunnel destination 2001:0DB8:0C18:2::300 |
Specifies the destination IPv6 address for the tunnel interface.
|
||
Step 6 | tunnel mode gre ipv6 Example: Device(config-if)# tunnel mode gre ipv6 |
Specifies a GRE IPv6 tunnel.
|
||
Step 7 | end Example: Device(config-if)# end |
Exits interface configuration mode and returns to privileged EXEC mode. |
! ipv6 unicast-routing ipv6 cef ! interface Ethernet0/0 no ipv6 address ipv6 address 2001:DB8:2:1::1/64 no shutdown exit ! ipv6 route 2001:DB8:2:5::/64 2001:DB8:2:1::2 ipv6 route 2001:DB8:2:9::/64 2001:DB8:2:1::2 !
! ipv6 unicast-routing ipv6 cef ! interface Tunnel0 no ipv6 address ipv6 address 2001:DB8:2:9::1/64 tunnel source 2001:DB8:2:2::1 tunnel mode ipv6 tunnel destination 2001:DB8:2:4::2 exit ! interface Ethernet0/0 no ipv6 address ipv6 address 2001:DB8:2:1::2/64 no shutdown exit ! ! interface Ethernet1/1 no ipv6 address ipv6 address 2001:DB8:2:2::1/64 no shutdown exit ! ipv6 route 2001:DB8:2:3::/64 2001:DB8:2:2::2 ipv6 route 2001:DB8:2:4::/64 2001:DB8:2:2::2 ipv6 route 2001:DB8:2:5::/64 Tunnel0 2001:DB8:2:9::2
! ipv6 unicast-routing ipv6 cef ! interface Tunnel0 no ipv6 address ipv6 address 2001:DB8:2:9::2/64 tunnel source 2001:DB8:2:4::2 tunnel mode ipv6 tunnel destination 2001:DB8:2:2::1 exit ! interface Ethernet0/0 no ipv6 address ipv6 address 2001:DB8:2:5::1/64 no shutdown exit ! interface Ethernet0/1 no ipv6 address ipv6 address 2001:DB8:2:4::2/64 no shutdown exit ! ! ipv6 route 2001:DB8:2:2::/64 2001:DB8:2:4::1 ipv6 route 2001:DB8:2:3::/64 2001:DB8:2:4::1 ipv6 route 2001:DB8:2:1::/64 Tunnel0 2001:DB8:2:9::1
! ipv6 unicast-routing ipv6 cef ! interface Ethernet0/0 no ipv6 address ipv6 address 2001:DB8:2:5::2/64 no shutdown exit ! ipv6 route 2001:DB8:2:1::/64 2001:DB8:2:5::1 ipv6 route 2001:DB8:2:9::/64 2001:DB8:2:5::1 !
! ipv6 unicast-routing ipv6 cef ! interface Ethernet1/0 no ipv6 address no shutdown ipv6 address 2001:DB8:2:3::1/64 exit ! interface Ethernet1/1 no ipv6 address ipv6 address 2001:DB8:2:2::2/64 no shutdown exit ! ipv6 route 2001:DB8:2:4::/64 2001:DB8:2:3::2
! ipv6 unicast-routing ipv6 cef ! interface Ethernet0/1 no ip address ipv6 address 2001:DB8:2:4::1/64 no shutdown exit ! interface Ethernet1/0 no ip address ipv6 address 2001:DB8:2:3::2/64 no shutdown exit ! ipv6 route 2001:DB8:2:2::/64 2001:DB8:2:3::1
! ipv6 unicast-routing ipv6 cef ! interface Ethernet0/0 no ip address ip address 192.168.1.1 255.255.255.0 no shutdown exit ! ip route 192.168.5.0 255.255.255.0 192.168.1.2 ip route 192.168.9.0 255.255.255.0 192.168.1.2 !
! ipv6 unicast-routing ipv6 cef ! interface Tunnel0 no ip address ip address 192.168.9.1 255.255.255.0 tunnel source 2001:DB8:2:2::1 tunnel destination 2001:DB8:2:4::2 tunnel mode ipv6 exit ! interface Ethernet0/0 no ip address ip address 192.168.1.2 255.255.255.0 no shutdown exit ! ! interface Ethernet1/1 no ipv6 address ipv6 address 2001:DB8:2:2::1/64 no shutdown exit ! ipv6 route 2001:DB8:2:3::/64 2001:DB8:2:2::2 ipv6 route 2001:DB8:2:4::/64 2001:DB8:2:2::2 ip route 192.168.5.0 255.255.255.0 Tunnel 0 192.168.9.2
! ipv6 unicast-routing ipv6 cef ! interface Tunnel0 no ip address ip address 192.168.9.2 255.255.255.0 tunnel source 2001:DB8:2:4::2 tunnel destination 2001:DB8:2:2::1 tunnel mode ipv6 exit ! interface Ethernet0/0 no ip address ip address 192.168.5.1 255.255.255.0 no shutdown exit ! interface Ethernet0/1 no ipv6 address ipv6 address 2001:DB8:2:4::2/64 no shutdown exit ! ! ipv6 route 2001:DB8:2:2::/64 2001:DB8:2:4::1 ipv6 route 2001:DB8:2:3::/64 2001:DB8:2:4::1 ip route 192.168.1.0 255.255.255.0 Tunnel 0 192.168.9.1
! ipv6 unicast-routing ipv6 cef ! interface Ethernet0/0 no ip address ip address 192.168.5.2 255.255.255.0 no shutdown exit ! ip route 192.168.1.0 255.255.255.0 192.168.1.2 ip route 192.168.9.0 255.255.255.0 192.168.1.2 !
! ipv6 unicast-routing ipv6 cef ! interface Ethernet1/0 no ipv6 address no shutdown ipv6 address 2001:DB8:2:3::1/64 exit ! interface Ethernet1/1 no ipv6 address ipv6 address 2001:DB8:2:2::2/64 no shutdown exit ! ipv6 route 2001:DB8:2:4::/64 2001:DB8:2:3::2
! ipv6 unicast-routing ipv6 cef ! interface Ethernet0/1 no ip address ipv6 address 2001:DB8:2:4::1/64 no shutdown exit ! interface Ethernet1/0 no ip address ipv6 address 2001:DB8:2:3::2/64 no shutdown exit ! ipv6 route 2001:DB8:2:2::/64 2001:DB8:2:3::1
Related Topic |
Document Title |
---|---|
Cisco IOS commands |
|
IPv6 commands |
|
IPv6 addressing and connectivity |
IPv6 Configuration Guide |
Cisco IOS IPv6 features |
Standard/RFC |
Title |
---|---|
RFCs for IPv6 |
IPv6 RFC |
Description |
Link |
---|---|
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. |
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Feature Name |
Releases |
Feature Information |
---|---|---|
IP over IPv6 Tunnels |
12.2(30)S 12.2(33)SRA 12.3(7)T 12.4 12.4(2)T 15.0(1)S Cisco IOS XE Release 2.1 15.1(1)SY Cisco IOS XE Release 3.2SE |
IP over IPv6 Tunnels feature is supported. The following commands were introduced or modified: tunnel destination, tunnel mode ipv6, tunnel mode gre ipv6, tunnel source. |