17-43
Figure 17-15
Network diagram for a GRE over IPv6 tunnel
Configuration procedure
Before the configuration, make sure that Switch A and Switch B can reach each other.
1) Configure Switch A
<SwitchA> system-view
# Enable IPv6.
[SwitchA] ipv6
# Configure interface VLAN-interface 100.
[SwitchA] interface vlan-interface 100
[SwitchA-Vlan-interface100] ip address 10.1.1.1 255.255.255.0
[SwitchA-Vlan-interface100] quit
# Configure interface VLAN-interface 101, the physical interface of the tunnel.
[SwitchA] interface vlan-interface 101
[SwitchA-Vlan-interface101] ipv6 address 2002::1:1 64
[SwitchA-Vlan-interface101] quit
# Create an interface named
Tunnel 0
.
[SwitchA] interface tunnel 0
# Configure an IPv4 address for interface Tunnel 0.
[SwitchA-Tunnel0] ip address 10.1.2.1 255.255.255.0
# Configure the tunnel encapsulation mode.
[SwitchA-Tunnel0] tunnel-protocol gre ipv6
# Configure the source address of interface Tunnel 0 to be the IP address of interface VLAN-interface
101.
[SwitchA-Tunnel0] source 2002::1:1
# Configure the destination address of interface Tunnel 0 to be the IP address of interface
VLAN-interface 101 on Switch B.
[SwitchA-Tunnel0] destination 2002::2:1
[SwitchA-Tunnel0] quit
# Create service loopback group 1, setting the service type to tunnel.
[SwitchA] service-loopback group 1 type tunnel