F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Configuration Guide-6PW100
485
Ste
p
Command
Remarks
534. Enter system view. system-view N/A
535. Enter BGP view or
BGP-VPN instance view.
• Enter BGP view:
bgp as-number
• Enter BGP-VPN instance view:
a. bgp as-number
b. ipv4-family vpn-instance
vpn-instance-name
Use either approach.
536. Configure the default
local preference.
default local-preference value
Optional.
The default local preference is100.
1500BConfiguring 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. Configuring the default MED value
Ste
p
Command
Remarks
537. Enter system view.
system-view N/A
538. Enter BGP view or
BGP-VPN instance view.
• Enter BGP view:
bgp as-number
• Enter BGP-VPN instance view:
a. bgp as-number
b. ipv4-family vpn-instance
vpn-instance-name
Use either approach.
539. Configure the default
MED value.
default med med-value
Optional.
0 by default.
2. Enabling the comparison of MED of routes from different ASs
Ste
p
Command
Remarks
540. Enter system view.
system-view N/A
541. Enter BGP view or
BGP-VPN instance view.
• Enter BGP view:
bgp as-number
• Enter BGP-VPN instance view:
a. bgp as-number
b. ipv4-family vpn-instance
vpn-instance-name
Use either approach.
542. Enable the comparison
of MED of routes from
different ASs.
compare-different-as-med Not enabled by default.
3. Enabling the comparison of MEDs for routes on a per-AS basis
Route learning sequence may affect optimal route selection.