286
Configuring BGP NSR
BGP nonstop routing (NSR) backs up BGP state and data information from the active BGP process
to the standby BGP process. The standby BGP process takes over when any of the following events
occurs:
• The active BGP process restarts.
• The IRF member device that runs the active BGP process fails.
• An ISSU starts on the IRF member device that runs the active BGP process.
When both GR and NSR are configured for BGP, NSR has a higher priority than GR. The device will
not act as the GR restarter. If the device acts as a GR helper, it cannot help the restarter to complete
GR.
To use BGP NSR in MPLS L3VPN, you must enable RIB NSR. For information about RIB NSR, see
"Configuring basic IP routing."
To configure BGP NSR:
1. Enter system view.
N/A
2. Enter BGP instance view.
bgp
as-number [
instance
instance-name ]
N/A
3. Enable BGP NSR.
By default, BGP NSR is disabled.
Enabling SNMP notifications for BGP
After you enable SNMP notifications for BGP, the device generates a notification when a BGP
neighbor state change occurs. The notification includes the neighbor address, the error code and
subcode of the most recent error, and the current neighbor state.
For BGP notifications to be sent correctly, you must also configure SNMP on the device. For more
information about SNMP configuration, see the network management and monitoring configuration
guide for the device.
To enable SNMP notifications for BGP:
1. Enter system view.
system-view
N/A
2. Enable SNMP
notifications for BGP.
snmp-agent trap enable bgp
[
instance
instance-name ]
By default, SNMP notifications for
BGP are enabled.
Enabling logging for session state changes
Perform this task to enable BGP to log BGP session establishment and disconnection events. To
display the log information, use the display bgp peer ipv4 unicast log-info command or the
display bgp peer ipv6 unicast log-info command. The logs are sent to the information center. The
output rules of the logs (whether to output the logs and where to output) are determined by the
information center configuration.
For more information about information center configuration, see Network Management and
Monitoring Configuration Guide.
To enable logging for session state changes (IPv4 unicast/IPv4 multicast):