278
Flushing the suboptimal BGP route to the RIB
This feature flushes the suboptimal BGP route to the RIB when the following conditions are met:
• The optimal route is generated by the network command or is redistributed by the
import-route command.
• The suboptimal route is received from a BGP peer.
After the suboptimal route is flushed to the RIB on a network, BGP immediately switches traffic to the
suboptimal route when the optimal route fails.
For example, the device has a static route to the subnet 1.1.1.0/24 that has a higher priority than a
BGP route. BGP redistributes the static route and receives a route to 1.1.1.0/24 from a peer. After the
flush suboptimal-route command is executed, BGP flushes the received BGP route to the RIB as
the suboptimal route. When the static route fails, BGP immediately switches traffic to the suboptimal
route if inter-protocol FRR is enabled. For more information about inter-protocol FRR, see
"Configuring basic IP routing."
To flush the suboptimal BGP route to the RIB:
1. Enter system view.
system-view
N/A
2. Enter BGP view.
bgp
as-number [
instance
instance-name ]
N/A
3. Flush the suboptimal BGP
route to the RIB.
flush suboptimal-route
By default, BGP is disabled from
flushing the suboptimal BGP route
to the RIB, and only the optimal
route is flushed to the RIB.
Setting a DSCP value for outgoing BGP packets
The DSCP value of an IP packet specifies the priority level of the packet and affects the transmission
priority of the packet.
To set a DSCP value for outgoing BGP packets:
1. Enter system view.
system-view
N/A
2. Enter BGP instance view
or BGP-VPN instance
view.
• Enter BGP instance view:
bgp as-number [ instance
instance-name ]
• Enter BGP-VPN instance view:
a. bgp as-number [ instance
instance-name ]
b. ip vpn-instance
N/A
3. Set a DSCP value for
outgoing BGP packets.
peer
{ group-name | ipv4-address
[ mask-length ] | ipv6-address
[ prefix-length ] }
dscp
dscp-value
By default, the DSCP value for
outgoing BGP packets is 48.