R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)
250
{ Configure a static route, using the destination address of the original packet as the destination
address of the route and the address of the peer tunnel interface as the next hop.
{ Enable a dynamic routing protocol on both the tunnel interface and the interface connecting the
private network, so the dynamic routing protocol can establish a routing entry with the tunnel
interface as the outgoing interface.
• The IPv6 address of the tunnel interface and the tunnel destination address configured on the tunnel
interface must be in different subnets.
Configuration prerequisites
Configure an IPv6 address for the interface (such as a VLAN interface, an Ethernet interface, or a
Loopback interface) to be used as the source interface of the tunnel interface.
Configuration procedure
To configure a GRE over IPv6 tunnel:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enable the IPv6 packet
forwarding function.
ipv6 Disabled by default.
3. Create a tunnel interface and
enter tunnel interface view.
interface tunnel interface-number
By default, there is no tunnel
interface on a device.
4. Configure an IPv4 address for
the tunnel interface.
ip address ip-address { mask |
mask-length }
By default, no IPv4 address is
configured for a tunnel interface.
5. Set the tunnel mode to GRE
over IPv6.
tunnel-protocol gre ipv6
You must configure the same tunnel
mode on both ends of a tunnel.
Otherwise, packet delivery will
fail.
6. Configure the source address
or interface for the tunnel
interface.
source { ipv6-address |
interface-type interface-number }
By default, no source address or
interface is configured for a tunnel
interface.
7. Configure the destination
address for the tunnel
interface.
destination ipv6-address
By default, no destination address
is configured for a tunnel interface.
8. Enable the GRE packet
checksum function.
gre checksum
Optional.
Disabled by default.
9. Configure the key for the GRE
tunnel interface.
gre key key-number
Optional.
By default, no key is configured for
a GRE tunnel interface.
The two ends of a tunnel must have
the same key or have no key at the
same time.










