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 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 instance view.

bgp as-number [ instance instance-name ]

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:

    1. ip vpn-instance vpn-instance-name

    2. address-family ipv4 [ unicast ]

N/A

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 instance 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 instance view.

bgp as-number [ instance instance-name ]

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:

    1. ip vpn-instance vpn-instance-name

    2. address-family ipv6 [ unicast ]

N/A

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 instance view.