272
A switch can act as both the GR Restarter and GR Helper at the same time.
To do…
Use the command…
Remarks
Step 1
Enter system view
system-view
—
Step 2
Enable BGP and enter its
view
bgp
as-number
—
Step 3
Enable GR Capability for
BGP
graceful-restart
Required
Disabled by default
Step 4
Configure the maximum
time allowed for the peer
to reestablish a BGP
session
graceful-restart timer
restart
timer
Optional
150 seconds by default
Step 5
Configure the maximum
time to wait for the End-of-
RIB marker
graceful-restart timer wait-
for-rib
timer
Optional
180 seconds by default
•
The maximum time allowed for the peer (the GR restarter) to reestablish a BGP session must be less than
the Holdtime carried in the OPEN message.
•
The End-Of-RIB indicates the end of route updates.
Enabling trap
After trap is enabled for BGP, BGP generates Level-4 traps to report important events of it. The
generated traps are sent to the information center of the switch. The output rules of the traps,
namely, whether to output the traps and the output direction, are determined according to the
information center configuration.
To do…
Use the command…
Remarks
Step 1
Enter system view
system-view
—
Step 2
Enable trap for BGP
snmp-agent trap enable bgp
Optional
Enabled by default