Configuration procedure – H3C Technologies H3C SecPath F1000-E User Manual
Page 8
7
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 mode is GRE
over IPv4.
Note that you need to configure the
same tunnel mode on both ends of
a tunnel. Otherwise, packet
delivery will fail.
Configure the source address or
interface for the tunnel interface
source { ipv6-address |
interface-type interface-number }
Required
By default, no source address or
interface is configured for a tunnel
interface.
Configure the destination address
for the tunnel interface
destination ipv6-address
Required
By default, no destination address
is configured for a tunnel interface.
Set the maximum number of
encapsulations in the tunnel
encapsulation-limit [ number ]
Optional
4 by default
Enable the GRE packet checksum
function
gre checksum
Optional
Disabled by default
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.
Configure a route for packet
forwarding through the tunnel
See the IP Routing Volume.
Required
Each end of the tunnel must have a
route (static or dynamic) through
the tunnel to the other end.
Note that: