- Table of Contents
- 04 Layer 3 - IP Services Command Reference
- 01-ARP commands
- 02-IP addressing commands
- 03-DHCP commands
- 04-DNS commands
- 05-IP forwarding basics commands
- 06-Fast forwarding commands
- 07-IRDP commands
- 08-IP performance optimization commands
- 09-UDP Helper commands
- 10-IPv6 basics commands
- 11-DHCPv6 commands
- 12-IPv6 fast forwarding commands
- 13-Tunnel commands
- 14-GRE commands
- Related Documents
|14-GRE commands||46.13 KB|
Use keepalive to enable the GRE keepalive function, and set the keepalive interval and the keepalive number.
Use undo keepalive to disable the GRE keepalive function.
keepalive [ interval [ times ] ]
The GRE keepalive function is disabled.
Tunnel interface view
Predefined user roles
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.
This command enables the tunnel interface to send keepalive packets at the specified interval. If the device receives no response from the peer within the timeout time, the device shuts down the local tunnel interface until it receives a keepalive acknowledgment packet from the peer. The timeout time is the result of multiplying the keepalive interval by the keepalive number.
The device always acknowledges the keepalive packets it receives whether or not GRE keepalive is enabled.
GRE over IPv6 tunnel interfaces do not support this command.
# Enable GRE keepalive, set the keepalive interval to 20 seconds, and set the keepalive number to 5.
[Sysname] interface tunnel 2 mode gre
[Sysname-Tunnel2] keepalive 20 5