advertise-rib-active
Use advertise-rib-active to enable BGP to advertise optimal routes in the IP routing table.
Use undo advertise-rib-active to restore the default.
Syntax
advertise-rib-active
undo advertise-rib-active
Default
BGP advertises optimal routes in the BGP routing table, regardless of whether they are optimal in the IP routing table.
Views
BGP view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
The advertise-rib-active command does not apply to the following routes:
Routes redistributed by the import-route command
Routes advertised by the network command
Default routes redistributed by the default-route imported command
VPNv4 routes
VPNv6 routes
This command takes effect for only the routes generated after you execute this command. To make this command take effect for the routes generated before you execute this command, use the reset bgp command to reset BGP sessions.
Examples
# Enable BGP to advertise optimal routes in the IP routing table.
<Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] advertise-rib-active