214
Advertising optimal routes in the IP routing table
By default, BGP advertises optimal routes in the BGP routing table, which may not be optimal in the IP
routing table. This task allows you to advertise BGP routes that are optimal in the IP routing table to all
BGP peers.
To enable BGP to advertise optimal routes in the IP routing table (IPv4 unicast):
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP view.
bgp
as-number
N/A
3.
Enable BGP to advertise
optimal routes in the IP
routing table.
advertise-rib-active
By default, BGP advertises
optimal routes in the BGP
routing table.
4.
Enter BGP IPv4 unicast
address family view or
BGP-VPN IPv4 unicast
address family view.
•
Enter BGP IPv4 unicast address family
view:
address-family ipv4
[
unicast
]
•
Enter BGP-VPN IPv4 unicast address
family view:
a.
ip vpn-instance
vpn-instance-name
b.
address-family ipv4
[
unicast
]
Use either method.
5.
Enable BGP to advertise
optimal routes in the IP
routing table of the address
family in the VPN instance.
advertise-rib-active
By default, the setting is the
same as that in BGP view.
To enable BGP to advertise optimal routes in the IPv6 routing table (IPv6 unicast):
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP view.
bgp
as-number
N/A
3.
Enable BGP to advertise
optimal routes in the IPv6
routing table.
advertise-rib-active
By default, BGP advertises
optimal routes in the BGP
routing table.
4.
Enter BGP IPv6 unicast
address family view or
BGP-VPN IPv6 unicast
address family view.
•
Enter BGP IPv6 unicast address family
view:
address-family ipv6
[
unicast
]
•
Enter BGP-VPN IPv6 unicast address
family view:
a.
ip vpn-instance
vpn-instance-name
b.
address-family ipv6
[
unicast
]
Use either method.
5.
Enable BGP to advertise
optimal routes in the IPv6
routing table of the address
family in the VPN instance.
advertise-rib-active
By default, the setting is the
same as that in BGP view.