6-3
balance (BGP/BGP-VPN instance view)
Syntax
balance
number
undo balance
View
BGP view, VPN instance view
Default Level
2: System level
Parameters
number
: Number of BGP routes for load balancing. The number ranges from 1 to 8.. When it is set to 1,
load balancing is disabled.
Description
Use the
balance
command to configure the number of BGP routes for load balancing.
Use the
undo balance
command to disable load balancing.
By default, no load balancing is configured.
Unlike IGP, BGP has no explicit metric for making load balancing decision. Instead, it implements load
balancing using route selection rules.
Related commands:
display bgp routing-table
.
Examples
# In BGP view, set the number of routes participating in BGP load balancing to 2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] balance 2
# In BGP-VPN instance view, set the number of routes participating in BGP load balancing to 2 (the
VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] balance 2
bestroute as-path-neglect (BGP/BGP-VPN instance view)
Syntax
bestroute as-path-neglect
undo bestroute as-path-neglect
View
BGP view, BGP-VPN instance view
Default Level
2: System level