Protocols and standards, Configuring a gre over ipv4 tunnel, Configuration prerequisites – H3C Technologies H3C SecPath F1000-E User Manual
Page 6: Configuration procedure

5
Protocols and Standards
•
RFC 1701 Generic Routing Encapsulation (GRE)
•
RFC 1702 Generic Routing Encapsulation over IPv4 networks
•
RFC 2784 Generic Routing Encapsulation (GRE)
Configuring a GRE over IPv4 Tunnel
Configuration Prerequisites
On each of the peer devices, configure an IP address for the interface to be used as the source interface
of the tunnel interface (which can be a, for example, VLAN interface, GigabitEthernet interface, or
loopback interface), and make sure that this interface can normally communicate with the interface used
as the source interface of the tunnel interface on the peer device.
Configuration Procedure
Follow these steps to configure a GRE over IPv4 tunnel:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a tunnel interface and enter
tunnel interface view
interface tunnel
interface-number
Required
By default, a device has no tunnel
interface.
Configure an IPv4 address for the
tunnel interface
ip address ip-address { mask |
mask-length }
Required
By default, a tunnel interface has
no IPv4 address.
Set the tunnel mode to GRE over
IPv4
tunnel-protocol gre
Optional
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 { ip-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 ip-address
Required
By default, no destination address
is configured for a tunnel interface.
Enable GRE keepalive and set the
interval and the maximum number
of transmission attempts
keepalive [ seconds [ times ] ]
Optional
Disabled by default
Enable the GRE packet checksum
function
gre checksum
Optional
Disabled by default