Creating an IPv6 in IPv6 tunnel for traversing a public network

This example creates an IPv6 in IPv6 tunnel between two switches, enabling traffic from two networks to traverse a public network.

Procedure

  1. On switch 1:
    1. Enable interface 1/1/1 and assign the IP address 2001:DB8:5::1/64 to it.

      switch# config

      switch(config)# interface 1/1/1

      switch(config-if)# ipv6 address 2001:DB8:5::1/64

      switch(config-if)# no shutdown

    2. Enable interface 1/1/2 and assign the IP address 2080::2/64 to it.

      switch# config

      switch(config)# interface 1/1/2

      switch(config-if)# ipv6 address 2080::2/64

      switch(config-if)# no shutdown

      switch(config-if)# exit

    3. Create IPv6 in IPv6 tunnel 10 and assign the IP address 2001:DB8::1/32, source address 2001:DB8:5::1, and destination address 2001:DB8:9::1 to it. (Optional) Set the MTU and TTL parameters for this tunnel interface.

      switch(config)# interface tunnel 10 mode ip 6in6

      switch(config-ip-if)# ipv6 address 2001:DB8::1/62

      switch(config-ip-if)# source ipv6 2001:DB8:5::1

      switch(config-ip-if)# destination ipv6 2001:DB8:9::1

      switch(config-ip-if)# no shutdown

      switch(config-ip-if)# exit

    4. Defines routes so that traffic from network 1 can reach network 2 through the tunnel.

      switch(config)# ipv6 route 2001:DB8:9::0/64 2001:DB8:5::2

      switch(config)# ipv6 route 2090::0/64 tunnel10

  2. On switch 2:
    1. Enable interface 1/1/1 and assign the IP address 2001:DB8:9::1/64 to it.

      switch# config

      switch(config)# interface 1/1/1

      switch(config-if)# ipv6 address 2001:DB8:9::1/64

      switch(config-if)# no shutdown

    2. Enable interface 1/1/2 and assign the IP address 2090::2/64 to it.

      switch(config)# interface 1/1/2

      switch(config-if)# ipv6 address 2090::2/64

      switch(config-if)# no shutdown

      switch(config-if)# exit

    3. Create IPv6 in IPv6 tunnel 10 and assign the IP address 2001:DB8::2/32, source address 2001:DB8:5::1, and destination address 2001:DB8:9::1 to it. (Optional) Set the MTU and TTL parameters for this tunnel interface.

      switch(config)# interface tunnel 10 mode ip 6in6

      switch(config-ip-if)# ipv6 address 2001:DB8::2/62

      switch(config-ip-if)# source ipv6 2001:DB8:9::1

      switch(config-ip-if)# destination ipv6 2001:DB8:5::1

      switch(config-ip-if)# no shutdown

      switch(config-ip-if)# exit

    4. Defines routes so that traffic from network 2 can reach network 1 through the tunnel.

      switch(config)# ipv6 route 2001:DB8:5::0/64 2001:DB8:9::2

      switch(config)# ipv6 route 2080::0/64 tunnel10