Configuring link status polling

An HDLC-enabled interface can regularly check link status by sending keepalives to the peer at the keepalive interval at the link layer. A keepalive carries the local sender sequence number and the last received sequence number of the peer.

After sending a keepalive, an interface increments the sender sequence number by 1 in the next keepalive when the following conditions exist:

After sending a keepalive, if the interface does not receive a response within the keepalive interval, it resends the keepalive with an unchanged sequence number. When the keepalive retry limit is reached, the interface considers the link faulty and reports a link layer down event.

When you configure link status polling, follows these restrictions and guidelines:

To configure link status polling:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

interface interface-type interface-number

N/A

3. Set the keepalive interval.

timer hold seconds

By default, the keepalive interval is 10 seconds.

4. Set the keepalive retry limit.

timer-hold retry retries

By default, the keepalive retry limit is 5.