Related commands:
Examples
bestroute as-path-neglect (BGP/BGP-VPN instance view)
Syntax
View
Parameters
Description
Examples
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.
display bgp routing-table.
# 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
undo bestroute as-path-neglect
BGP view/BGP-VPN instance view
None
Use the
bestroute as-path-neglect
not evaluate the AS_PATH during best route selection.
Use the
undo bestroute as-path-neglect
router to take the AS_PATH as a factor during best route selection.
By default, the router takes AS_PATH as a factor when selecting the best route.
# In BGP view, ignore AS_PATH in route selection.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] bestroute as-path-neglect
# In BGP-VPN instance view, ignore AS_PATH in route selection (the VPN has been
created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] bestroute as-path-neglect
command to configure the BGP router to
command to configure the BGP
955