Configuring the BGP GR Function
Context
BGP restart causes peer relationship reestablishment and traffic interruption. Graceful restart (GR) ensures uninterrupted traffic interruption in the case of BGP restart.
Currently, devices support only the GR helper function, and the GR restarter function is implemented using non-stop routing (NSR). NSR does not need to be configured.
Procedure
- Run system-view
The system view is displayed.
- Run bgp { as-number-plain | as-number-dot }
The BGP view is displayed.
- Run graceful-restart
BGP GR is enabled.
By default, BGP GR is disabled.
- (Optional) Run graceful-restart timer wait-for-rib timer
The time during which the restarting speaker and receiving speaker wait for End-of-RIB messages is set.
By default, the time for waiting for End-of-RIB messages is 600 seconds.
- (Optional) Run graceful-restart peer-reset
The device is enabled to reset a BGP session in GR mode.
By default, a device is disabled from resetting a BGP connection in GR mode.
- (Optional) Run graceful-restart timer restart time
The maximum delay to reestablish a BGP session after a peer detects the restart of the local device is set.
By default, the maximum delay to reestablish a BGP session after a peer detects the restart of the local device is 150 seconds.
- Run commit
The configuration is committed.