Configuring the med attribute – H3C Technologies H3C SecPath F1000-E User Manual
Page 483
458
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.
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:
Step 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:
Step 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.
- H3C SecPath F5000-A5 Firewall H3C SecPath F1000-A-EI H3C SecPath F1000-E-SI H3C SecPath F1000-S-AI H3C SecPath F5000-S Firewall H3C SecPath F5000-C Firewall H3C SecPath F100-C-SI H3C SecPath F1000-C-SI H3C SecPath F100-A-SI H3C SecBlade FW Cards H3C SecBlade FW Enhanced Cards H3C SecPath U200-A U200-M U200-S H3C SecPath U200-CA U200-CM U200-CS H3C SecBlade LB Cards H3C SecPath L1000-A Load Balancer