17-41
[SwitchB] interface GigabitEthernet 1/0/3
[SwitchB-GigabitEthernet1/0/3] undo stp enable
[SwitchB-GigabitEthernet1/0/3] port service-loopback group 1
# Apply service loopback group 1 to the tunnel in tunnel interface view.
[SwitchB-GigabitEthernet1/0/3] quit
[SwitchB] interface tunnel 1
[SwitchB-Tunnel1] service-loopback-group 1
[SwitchB-Tunnel1] quit
# Configure a static route from Switch B through interface Tunnel 1 to Group 1.
[SwitchB] ip route-static 10.1.1.0 255.255.255.0 Tunnel 1
Configuring a GRE over IPv6 Tunnel
Configuration Prerequisites
Interfaces on a device, such as VLAN interfaces, and loopback interfaces, are configured with IPv6
addresses and can communicate. These interfaces can serve as the source of a virtual tunnel
interface to ensure the reachability of the destination address.
Configuration Procedure
Follow these steps to configure a GRE over IPv6 tunnel:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable the IPv6 packet forwarding
function
ipv6
Required
Disabled by default
Create a tunnel interface and enter
tunnel interface view
interface tunnel
interface-number
Required
By default, there is no tunnel
interface on a device.
Configure an IPv4 address for the
tunnel interface
ip address ip-address
{
mask
|
mask-length
}
Required
By default, no IPv4 address is
configured for a tunnel interface.
Set the tunnel mode to GRE over
IPv6.
tunnel-protocol
gre
ipv6
Required
By default, the tunnel is a GRE
over IPv4 tunnel
Note that you need to configure
the same tunnel mode on both
ends of a tunnel. Otherwise,
packet delivery will fail.