advertise-rib-active
Use advertise-rib-active to enable BGP to advertise only the optimal BGP routes in the IP routing table.
Use undo advertise-rib-active to restore the default.
Syntax
advertise-rib-active
undo advertise-rib-active
Default
In BGP instance view, BGP advertises optimal routes in the BGP routing table, regardless of whether they are optimal in the IP routing table. In other views, the setting is the same as that in BGP instance view.
Views
BGP instance view
BGP IPv4 unicast address family view
BGP-VPN IPv4 unicast address family view
BGP IPv6 unicast address family view
BGP-VPN IPv6 unicast address family view
Predefined user roles
network-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.
IPv4 multicast routes.
IPv6 multicast routes.
This command takes effect only on the routes generated after you execute this command. To apply this command to existing routes, use the reset bgp command to reset BGP sessions.
The setting in BGP unicast address family view applies when it is different from that in BGP instance view.
Examples
# In BGP instance view, enable BGP to advertise optimal routes in the IP routing table.
<Sysname> system-view [Sysname] bgp 100 [Sysname-bgp-default] advertise-rib-active