Configuration example

Network requirements

As shown in Figure 93, the two subnets Group 1 and Group 2 running IPv6 are connected through an IPv6 network. Configure an IPv6 over IPv6 tunnel between Switch A and Switch B to make the two subnets reachable to each other without disclosing their IPv6 addresses to the IPv6 network.

Figure 93: Network diagram

Configuration procedure

Before configuring an IPv6 over IPv6 tunnel, make sure Switch A and Switch B have the corresponding VLAN interfaces created and can reach each other.

Verifying the configuration

Display the status of the tunnel interfaces on Switch A and Switch B.

[SwitchA] display ipv6 interface tunnel 1
Tunnel1 current state :UP
Line protocol current state :UP
IPv6 is enabled, link-local address is FE80::2013:1
  Global unicast address(es):
    3001::1:1, subnet is 3001::/64
  Joined group address(es):
    FF02::1:FF13:1
    FF02::1:FF01:1
    FF02::1:FF00:0
    FF02::2
    FF02::1
  MTU is 1460 bytes
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
IPv6 Packet statistics:
...
[SwitchB] display ipv6 interface tunnel 2
Tunnel2 current state :UP
Line protocol current state :UP
IPv6 is enabled, link-local address is FE80::2024:1
  Global unicast address(es):
    3001::1:2, subnet is 3001::/64
  Joined group address(es):
    FF02::1:FF24:1
    FF02::1:FF01:2
    FF02::1:FF00:0
    FF02::2
    FF02::1
  MTU is 1460 bytes
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
IPv6 Packet statistics:
...

# Ping the IPv6 address of the peer interface VLAN-interface 100 from Switch A.

[SwitchA] ping ipv6 2002:3::1
  PING 2002:3::1 : 56  data bytes, press CTRL_C to break
    Reply from 2002:3::1
    bytes=56 Sequence=1 hop limit=64  time = 31 ms
    Reply from 2002:3::1
    bytes=56 Sequence=2 hop limit=64  time = 1 ms
    Reply from 2002:3::1
    bytes=56 Sequence=3 hop limit=64  time = 16 ms
    Reply from 2002:3::1
    bytes=56 Sequence=4 hop limit=64  time = 16 ms
    Reply from 2002:3::1
    bytes=56 Sequence=5 hop limit=64  time = 31 ms

  --- 2002:3::1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 1/19/31 ms