To allow the comparison of the Multi Exit Discriminator (MED) for paths from neighbors in different autonomous systems, use thebgp always-compare-med router configuration command. To disallow the comparison, use the no form of this command.
bgp always-compare-med
no bgp always-compare-med
This command has no arguments or keywords.
The Cisco IOS software does not compare MEDs for paths from neighbors in different autonomous systems.
Router configuration
Release | Modification | 11.0 | This command was introduced. |
---|
The MED is one of the parameters that is considered when selecting the best path among many alternative paths. The path with a lower MED is preferred over a path with a higher MED.
By default, during the best-path selection process, MED comparison is done only among paths from the same autonomous system. This command changes the default behavior by allowing comparison of MEDs among paths regardless of the autonomous system from which the paths are received.
The following example configures the BGP speaker in autonomous system 100 to compare MEDs among alternative paths, regardless of the autonomous system from which the paths are received:
router bgp 109 bgp always-compare-med
Printed for apswan@ctr.ap.nic.in on Wed Mar 5 22:32:57 PST 2003
All material in this document copyright 2000 Cisco Systems, Inc. All rights reserved. No material may be reproduced or distributed without written permission of Cisco Systems, Inc.