Configuring timers properly improves network performance. Changing the timeout periods of timers, however, will interrupt peer relationships.
Changing the timeout period of a timer using the peer timer command will interrupt peer relationships between routers. Therefore, exercise caution when changing the timeout period of a timer.
Perform the following steps on a BGP4+ device:
The system view is displayed.
The BGP view is displayed.
The timeout periods of the holdtime timer and Keepalive timer are set on a peer or peer group.
Setting the Keepalive time to 20s is recommended. If the Keepalive time is smaller than 20s, sessions between peers may be closed.
When setting the values of keepalive-time and hold-time, note the following points:
The values of keepalive-time and hold-time cannot both be set to 0. Otherwise, the BGP timers become invalid, and BGP4+ cannot detect link faults based on the timers.
The value of hold-time such as timer keepalive 1 hold 65535 is much greater than that of keepalive-time. If the value of hold-time is too large, BGP4+ cannot detect link faults rapidly.
The configuration is committed.