Configure The Default Local Preference - HP 4800G Series Configuration Manual

24/48 port
Table of Contents

Advertisement

Follow these steps to configure preferences for BGP routes:
To do...
Enter system view
Enter BGP view
Configure preferences
for external, internal,
local BGP routes

Configure 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.
Follow these steps to specify the default local preference:
Enter system view
Enter BGP view
Configure the default local preference
Configuring the MED Attribute
MED is used to determine the best route for traffic going into an AS. When a BGP router obtains from
eBGP peers multiple routes to the same destination but with different next hops, it considers the route
with the smallest MED value as the best route if other conditions are the same.
Configure the default MED value
Follow these steps to configure the default MED value:
Enter system view
Enter BGP view
Configure the default MED value
Enable the comparison of MED of routes from different ASs
Follow these steps to enable the comparison of MED of routes from different ASs:
Use the command...
system-view
bgp as-number
preference
{ external-preference
internal-preference
local-preference | route-policy
route-policy-name }
To do...
To do...
Optional
The default preferences of external,
internal, and local BGP routes are 255,
255, and 130 respectively.
Use the command...
system-view
bgp as-number
default local-preference
value
Use the command...
system-view
bgp as-number
default med med-value
1-26
Remarks
Remarks
Optional
100 by default
Remarks
Optional
0 by default

Advertisement

Chapters

Table of Contents
loading

Table of Contents