R0106-HP MSR Router Series Layer 3 - IP Services Command Reference(V7)
378
undo gre key
Default
No key is configured for a GRE tunnel interface.
Views
Tunnel interface view
Predefined user roles
network-admin
Parameters
key-number: Specifies the key for the GRE tunnel interface, in the range of 0 to 4294967295.
Usage guidelines
You can configure a GRE key to check for the validity of packets received on a GRE tunnel interface.
When a GRE key is configured, the sender puts the GRE key into each sent packet. The receiver
compares the GRE key in the received packet with its own GRE key. If the two keys are the same, the
receiver accepts the packet. Otherwise, it drops the packet.
Both ends of a GRE tunnel must have the same key or no key.
Examples
# Configure the GRE key as 123 for the GRE tunnel interface.
<Sysname> system-view
[Sysname] interface tunnel 2 mode gre
[Sysname-Tunnel2] gre key 123
keepalive
Use keepalive to enable the GRE keepalive function and set the keepalive interval and the keepalive
number.
Use undo keepalive to disable the keepalive function.
Syntax
keepalive [ interval [ times ] ]
undo keepalive
Default
The GRE keepalive function is disabled.
Views
Tunnel interface view
Predefined user roles
network-admin
Parameters
interval: Specifies the keepalive interval in the range of 1 to 32767 seconds. The default value is 10.
times: Specifies the keepalive number in the range of 1 to 255. The default value is 3.