Configuration example, Network requirements, Configuration procedure – H3C Technologies H3C S12500-X Series Switches User Manual
Page 169
158
Configuration example
Network requirements
As shown in
, configure an IPv6 over IPv6 tunnel between Switch A and Switch B so the two IP
networks can reach each other without disclosing their IPv6 addresses.
Figure 60 Network diagram
Configuration procedure
Make sure Switch A and Switch B have the corresponding VLAN interfaces created and can reach each
other through IPv6.
•
Configure Switch A:
# Specify an IPv6 address for VLAN-interface 100.
[SwitchA] interface vlan-interface 100
[SwitchA-Vlan-interface100] ipv6 address 2002:1::1 64
[SwitchA-Vlan-interface100] quit
# Specify an IPv6 address for VLAN-interface 101, which is the physical interface of the tunnel.
[SwitchA] interface vlan-interface 101
[SwitchA-Vlan-interface101] ipv6 address 2001::11:1 64
[SwitchA-Vlan-interface101] quit
# Create service loopback group 1 and specify its service type as tunnel.
[SwitchA] service-loopback group 1 type tunnel
# Assign Ten-GigabitEthernet 1/0/3 to service loopback group 1.
[SwitchA] interface Ten-GigabitEthernet 1/0/3
[SwitchA-Ten-GigabitEthernet1/0/3] port service-loopback group 1
[SwitchA-Ten-GigabitEthernet1/0/3] quit
# Create an IPv6 tunnel interface tunnel 1.
[SwitchA] interface tunnel 1
# Specify an IPv6 address for the tunnel interface.
[SwitchA-Tunnel1] ipv6 address 3001::1:1 64
# Specify the IP address of VLAN-interface 101 as the source address for the tunnel interface.
[SwitchA-Tunnel1] source 2001::11:1
# Specify the IP address of VLAN-interface 101 on Switch B as the destination address for the
tunnel interface.
[SwitchA-Tunnel1] destination 2002::22:1
[SwitchA-Tunnel1] quit
# Configure a static route destined for the IPv6 network group 2 through the tunnel interface.
Vlan-int101
2001::11:1/64
Vlan-int100
2002:3::1/64
Vlan-int100
2002:1::1/64
Vlan-int101
2002::22:1/64
Switch A
IPv6 network
IPv6
group 1
Tunnel1
3001::1:1/64
Tunnel2
3001::1:2/64
IPv6
group 2
Switch B
IPv6 over IPv6 tunnel
Service loopback port
XGE1/0/3
XGE1/0/3