R3166-R3206-HP High-End Firewalls VPN Command Reference-6PW101

5
Default level
2: System level
Parameters
None
Description
Use the gre checksum command to enable the GRE packet checksum function so as to verify the validity
of packets and discard those invalid.
Use the undo gre checksum command to disable the GRE packet checksum function.
By default, the GRE packet checksum function is disabled.
Related commands: interface tunnel and display interface tunnel.
Examples
# Enable the GRE packet checksum function for the tunnel between firewall devices Sysname1 and
Sysname2.
<Sysname1> system-view
[Sysname1] interface tunnel 3
[Sysname1-Tunnel3] gre checksum
<Sysname2> system-view
[Sysname2] interface tunnel 2
[Sysname2-Tunnel2] gre checksum
gre key
Syntax
gre key key-number
undo gre key
View
Tunnel interface view
Default level
2: System level
Parameters
key-number: Key for the GRE tunnel interface, in the range 0 to 4,294,967,295.
Description
Use the gre key command to configure a key for a GRE tunnel interface. This weak security mechanism
can prevent packets from being received mistakenly.
Use the undo gre key command to remove the configuration.
By default, no key is configured for a GRE tunnel interface.
Related commands: interface tunnel and display interface tunnel.
Examples
# Set the key for the GRE tunnel interfaces to 123 on firewall devices Sysname1 and Sysname2.
<Sysname1> system-view