524
C
31: PPP
HAPTER
AND
Example
timer hold
Syntax
View
Parameter
Description
Example
MP C
C
ONFIGURATION
OMMANDS
# Configure Interface Serial 1/0 to allocate IP address 10.0.0.1 to its peer device.
<Sysname> system-view
[Sysname] interface serial 1/0
[Sysname-Serial1/0] remote address 10.0.0.1
timer hold seconds
undo timer hold
Interface view
seconds: Time interval for the interface to send keepalive packet in seconds. The
value ranges from 0 to 32767 and defaults to 10. If the value is set to 0, keepalive
packet will not be sent.
Use the
timer hold
Use the
undo timer hold
If the timer is set to 0 seconds, this means keepalive packets will not be sent out.
On slow links, the seconds argument must not be too small. As a slow link takes
long to transmit large packets, this may cause the sending and receiving of
keepalive packet to be postponed. If an interface does not receive keepalive
packet from the peer device for many keepalive periods, it regards the link to be
bad. If this period exceeds the value specified by the seconds argument, the link
will be shut down.
When the interfaces are configured with PPP, the same keepalive interval should
be configured on both sides of the link.
# Set the period to send keepalive packet on interface Serial 1/0 to 20 seconds.
<Sysname> system-view
[Sysname] interface serial 1/0
[Sysname-Serial1/0] timer hold 20
command to set the timer to send keepalive packet.
command to restore the default value, or 10 seconds.