R3721-F3210-F3171-HP High-End Firewalls Network Management Configuration Guide-6PW101

Table Of Contents
440
Ste
p
Command
Remarks
2. Enter BGP view. bgp as-number N/A
3. Configure the default local
preference.
default local-preference value
Optional.
100 by default.
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.
1. Configure the default MED value
To configure the default MED value:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter BGP view. bgp as-number N/A
3. Configure the default MED
value.
default med med-value
Optional.
0 by default.
2. Enable the comparison of MED of routes from different ASs
To enable the comparison of MED of routes from different ASs:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter BGP view. bgp as-number N/A
3. Enable the comparison of MED
of routes from different ASs.
compare-different-as-med Not enabled by default.
3. Enable the comparison of MED of routes from each AS
Route learning sequence may affect optimal route selection.
Figure 281 Route selection based on MED
As shown in Figure 281, Router D learns network 10.0.0.0 from both Router A and Router B.
Because Router B has a smaller router ID, the route learned from it is optimal.
Network NextHop MED LocPrf PrefVal Path/Ogn