Configuring preferences for bgp routes, Configuring the default local preference – H3C Technologies H3C SR8800 User Manual
Page 235

219
Step Command Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP view.
bgp as-number
N/A
3.
Specify a preferred value for
routes received from a peer
or peer group.
peer { group-name | ip-address }
preferred-value value
Optional.
By default, the preferred
value is 0.
Configuring preferences for BGP routes
A router may run multiple routing protocols with each having a preference. If they find the same route, the
route found by the routing protocol with the highest preference is selected.
This task allows you to configure preferences for external, internal, and local BGP routes, and reference
a routing policy to set preferences for matching routes as needed.
To configure preferences for BGP routes:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP view.
bgp as-number
N/A
3.
Configure preferences for external,
internal, local BGP routes.
preference { external-preference
internal-preference
local-preference | route-policy
route-policy-name }
Optional.
The default preferences of
external, internal, and local
BGP routes are 255, 255,
and 130 respectively.
Configuring the default local preference
The local preference is used to determine the best route for traffic leaving the local AS. When a BGP
router obtains from several IBGP peers multiple routes to the same destination but with different next hops,
it considers the route with the highest local preference as the best route.
This task allows you to specify the default local preference for routes sent to IBGP peers.
To specify the default local preference:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP view.
bgp as-number
N/A
3.
Configure the default local preference. default local-preference value
Optional
100 by default
- H3C SR6600-X H3C SR6600 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module