370
Figure 106 Network diagram
Configuration procedure
1.
Enable IPv6 forwarding on each switch, and assign an IPv6 address and prefix length to each
interface as shown in
. (Details not shown.)
2.
Configure a GRE tunnel:
# Create service loopback group 1 on Switch A and specify its service type as Tunnel.
<SwitchA> system-view
[SwitchA] service-loopback group 1 type tunnel
# Disable STP, LLDP and NDP on interface GigabitEthernet 1/0/3 of Switch A, and assign the
interface to service loopback group 1. GigabitEthernet 1/0/3 does not belong to VLAN 100 or
VLAN 101.
[SwitchA] interface gigabitethernet 1/0/3
[SwitchA-GigabitEthernet1/0/3] undo stp enable
[SwitchA-GigabitEthernet1/0/3] undo ndp enable
[SwitchA-GigabitEthernet1/0/3] undo lldp enable
[SwitchA-GigabitEthernet1/0/3] port service-loopback group 1
[SwitchA-GigabitEthernet1/0/3] quit
# Create interface Tunnel 0 on Switch A, assign an IPv6 address and prefix length to this
interface , and reference service loopback group 1 on this interface.
[SwitchA] interface tunnel 0
[SwitchA-Tunnel0] ipv6 address 5001::1 64
[SwitchA-Tunnel0] service-loopback-group 1
# Specify the tunnel encapsulation mode as GRE over IPv6 for interface Tunnel 0 on Switch A,
and specify its source and destination addresses.
[SwitchA-Tunnel0] tunnel-protocol gre ipv6
[SwitchA-Tunnel0] source 2001::1
[SwitchA-Tunnel0] destination 3001::2
[SwitchA-Tunnel0] quit
# Create service loopback group 1 on Switch C and specify its service type as Tunnel.
<SwitchC> system-view
[SwitchC] service-loopback group 1 type tunnel
# Disable STP, LLDP and NDP on interface GigabitEthernet 1/0/3 of Switch C, and assign the
interface to service loopback group 1. GigabitEthernet 1/0/3 does not belong to VLAN 200 or
VLAN 102.
[SwitchC] interface gigabitethernet 1/0/3
[SwitchC-GigabitEthernet1/0/3] undo stp enable