bgp apply-policy on-startup duration
Use bgp apply-policy on-startup duration to specify the period after reboot within which the startup policy is effective.
Use undo bgp apply-policy on-startup duration to restore the default.
Syntax
bgp apply-policy on-startup duration seconds
undo bgp apply-policy on-startup duration
Default
By default, the startup policy does not take effect.
Views
BGP instance view
Predefined user roles
network-admin
Parameters
seconds: Specifies the period after reboot within which the startup policy is effective, in the range of 0 to 3600 seconds. The number of 0 indicates that the startup policy is effective permanently.
Usage guidelines
This command allows the device to send route updates with the attribute values specified in the startup policy within the specified period after reboot. Then, BGP can forward traffic through other devices to avoid traffic loss caused by reboot.
Examples
# In BGP instance view, set the period after reboot to 100 seconds within which the startup policy is effective.
<Sysname> system-view [Sysname] bgp 100 [Sysname-bgp-default] bgp apply-policy on-startup duration 100
Related commands
bgp policy on-startup med