To enable MED comparison among paths learned from confederation peers, use the bgp bestpath med-confed router configuration command. To prevent the software from considering the MED attribute in comparing paths, use the no form of this command.
bgp bestpath med-confed
no bgp bestpath med-confed
This command has no arguments or keywords.
The software does not consider the MED attribute when choosing among paths learned from confederation peers.
Router configuratio
Release | Modification | 12.0 | This command was introduced. |
---|
The comparison between MEDs is only made if there are no external ASs in the path (an external AS is an AS that is not within the confederation). If there is an external AS in the path, then the external MED is passed transparently through the confederation, and the comparison is not made.
For example, assume that AS 65000, 65001, 65002, and 65004 are part of the confederation; AS1 is not; and we are comparing route A with four paths. If bgp bestpath med-confed is enabled, path 1 would be chosen. The fourth path has a lower MED, but it is not involved in the MED comparision because there is an external AS in this path.
path= 65000 65004, med=2
path= 65001 65004, med=3
path= 65002 65004, med=4
path= 65003 1, med=1
The following command enables the BGP router to compare MED values for paths learned from confederation peers.
router bgp 210 bgp bestpath med-confed
Command | Description |
---|---|
show ip bgp | Display entries in the BGP routing table. |
show ip bgp neighbors | Displays information about the TCP and BGP connections to neighbors. |
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.