Configuring GRE security options can improve GRE tunnel security.
To enhance the security of a GRE tunnel, configure end-to-end checksum authentication or key authentication. This security mechanism can prevent the tunnel interface from incorrectly identifying and receiving packets from other devices.
Perform the following steps on the routers at two ends of a tunnel.
The system view is displayed.
The tunnel interface view is displayed.
A key is set for the tunnel interface.
simple key-number-simple: specifies a plaintext key (integer).
key-number-cipher: specifies a plaintext key (integer) or a ciphertext key.
The configuration is committed.