1753
Parameter 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 packets.
Use the
undo gre checksum command to disable the GRE packet checksum
function.
By default, the GRE packet checksum function is disabled.
Related command: interface tunnel.
Example # Enable the GRE packet checksum function on the tunnel between 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
Parameter key-number: Secret key for the GRE tunnel interface use, in the range 0 to
4,294,967,295.
Description Use the
gre key command to configure a secret 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 secret key is configured for a GRE tunnel interface.
Related command: interface tunnel
Example # Set the secret key for the GRE tunnel interfaces to 123 on Sysname1 and
Sysname2.
<Sysname1> system-view
[Sysname1] interface tunnel 3
[Sysname1-Tunnel3] gre key 123
<Sysname2> system-view
[Sysname2] interface tunnel 2
[Sysname2-Tunnel2] gre key 123