HP VPN Firewall Appliances Network Management Configuration Guide

490
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. 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 method.
3. Configure the default
local preference.
default local-preference value
Optional.
The default local preference is
100.
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. Configuring the default MED value
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. 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 method.
3. 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
1. Enter system view.
system-view N/A
2. 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 method.
3. 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 might affect optimal route selection.