R3166-R3206-HP High-End Firewalls VPN Command Reference-6PW101
6
[Sysname1] interface tunnel 3
[Sysname1-Tunnel3] gre key 123
<Sysname2> system-view
[Sysname2] interface tunnel 2
[Sysname2-Tunnel2] gre key 123
keepalive
Syntax
keepalive [ seconds [ times ] ]
undo keepalive
View
Tunnel interface view
Default level
2: System level
Parameters
seconds: Interval in seconds for transmitting keepalive packets, in the range 1 to 32,767. The default
value is 10.
times: Maximum number of attempts for transmitting a keepalive packet, in the range 1 to 255. The
default value is 3.
Description
Use the keepalive command to enable the GRE keepalive function to detect the status of the tunnel
interface and set the keepalive interval and the maximum number of attempts for transmitting a keepalive
packet.
Use the undo keepalive command to disable the keepalive function.
By default, the GRE keepalive function is disabled.
With the GRE keepalive function enabled on a tunnel interface, the firewall sends GRE keepalive packets
from the tunnel interface periodically. If no response is received from the peer within the specified interval,
the firewall retransmits a keepalive packet. If the firewall still receives no response from the peer after
sending the keepalive packet for the maximum number of attempts, the local tunnel interface goes down
and stays down until it receives a keepalive acknowledgement packet from the peer.
Related commands: interface tunnel and display interface tunnel.
Examples
# Set the GRE keepalive interval to 20 seconds and the maximum number of transmission attempts to 5.
<Sysname> system-view
[Sysname] interface tunnel 0
[Sysname-Tunnel0] keepalive 20 5
source
Syntax
source { ip-address | interface-type interface-number }
undo source