Configure Gateway Keepalive Function
Configuration Condition
Before configuring the gateway keepalive function, first complete the following task:
- Configure the IP address of the interface
Configure Gateway Keepalive Basic Function
Table 2–2 Configure the gateway keepalive basic function
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the interface configuration mode
|
interface interface-name
|
-
|
Configure the gateway keepalive
|
keepalive gateway ip-address [interval |
msec interval ] [ retry-count ]
|
Mandatory
By default, do not enable the gateway keepalive function.
|
Configure Sending Parameters of Keepalive Packet
When configuring the sending parameters of the keepalive packet, we can control the sending rate of the gateway keepalive packet. When the sending rate of the keepalive packet reaches the configured value, pause for the configured time and then continue to send the keepalive packets.
Table 2–3 Configure the sending parameters of the keepalive packet
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Configure the sending rate of the keepalive packet
|
keepalive gateway disperse pkt- rate packet-rate
|
Optional
By default, the maximum sending rate of the keepalive packet is 100pps.
|
Configure the time of pausing sending the keepalive packet
|
keepalive gateway disperse pause-time pause-time
|
Optional
By default, the time of pausing sending the keepalive packet is 100ms.
|
Configure the Keepalive Function of IPv6 Associated Gateway
After the keepalive function of the IPv6 associated gateway is configured, the interface IPv6 protocol layer will be closed at the same time when the gateway is not reachable.
Table 2-4 Configure the keepalive function of the IPv6 associated gateway
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Configure the sending rate of the keepalive packets
|
keepalive gateway ipv6-respond- ipv4
|
Optional
By default, the keepalive function of the IPv6 associated gateway is disabled.
|