Writers' Community!
Home Page Two Columnists Q&A Submit an Article FAQs Contact Author Login
Article Submission
We Need YOUR Articles!
We'll Promote Them for FREE!

Author Login

New Authors
Register Here


Now Serving 7,778 Authors
70,486 Quality Articles
& 7,810 Current Users Online!
Featured Authors
Bruce Horst (142)
Joel Hendon (16,285)
Michael Ramzy (633)
E. Raymond Rock (3,068)
Ira Coffin (6,669)
Connor Davidson (5,131)
Ben Morrish (7,936)
Steve Kovacs (4,545)
Sandra E. Graham (7,883)
Fran Larson (2,271)
Shari Vaudo (418)
David Tanguay (9,577)
Missing Link (766)
Gregory Lewis (1,603)

View All Featured Authors
Most Recent
Adobe CS4 Design Training Around The UK - Thoughts

CompTIA Network Plus Support Training - Update

Careers Training for Adobe Web Design Insights

CompTIA A Plus Retraining Courses Revealed

Programming Careers Courses Examined

The Right Cisco Networking Training Compared

Microsoft MCSA-MCSE Training Programs Compared

CompTIA IT Support Courses Explained

Computer Courses in Adobe CS3 Design - Options

IT Study Courses - Options

Home » Categories » Computers & Networking » Technical Certification » Cisco CCNP / BSCI Exam Tutorial: The BGP MED Attribute » Printer Friendly

Cisco CCNP / BSCI Exam Tutorial: The BGP MED Attribute

Rated 3.5 out of 5
No Reader Ratings Available ?
Rate It  /  View Comments  /  View All Articles submitted by Chris Bryant CCIE 12933
Submitted Tuesday, April 04, 2006
Chris Bryant CCIE 12933 (13,765)
The Bryant Advantage
Log in to become a member of Chris Bryant CCIE 12933's Fan Club!


Your BSCI exam and CCNP certification success depend on mastering BGP, and a big part of that is knowing how and when to use the many BGP attributes. And for those of you with an eye on the CCIE, believe me - you've got to know BGP attributes like the back of your hand. One such BGP attribute is the Multi-Exit Discriminator, or MED.

The MED attribute is sent from a router or routers in one AS to another AS to indicate what path the remote AS should use to send data to the local AS.

That sounds a little confusing on paper, so let's walk through an example. R1 is in AS 1, and R2, R3, and R4 are in AS 234. R4 is advertising a loopback into BGP, and R1 has two possible next-hops to get to that loopback - R2 (172.12.123.2) and R3 (172.12.123.3). Let's see which of the two paths R1 is using.

R1#show ip bgp 4.4.4.4
BGP routing table entry for 4.4.4.4/32, version 8
Paths: (2 available, best #2, table Default-IP-Routing-Table)
Flag: 0x208
Advertised to non peer-group peers:
172.12.123.3
234
172.12.123.3 from 172.12.123.3 (3.3.3.3)
Origin IGP, localpref 100, valid, external
234
172.12.123.2 from 172.12.123.2 (2.2.2.2)
Origin IGP, localpref 100, valid, external, best

R1 is using 172.12.123.2 as the next-hop to enter AS 234. If all values are left at their default, we could have 100 routes being advertised from AS 234 to AS 1 and the next-hop would remain the same.

We can configure R2 and R3 to send different MED values to R1, and the router sending the lowest MED would be the preferred next-hop. (The MED is a metric, and the lowest metric is always preferred.) We'll configure the MED attribute on both R2 and R3, sending a MED of 200 from R2 and 100 from R3.

R2(config)#route-map SET_MED_200 permit 10
R2(config-route-map)#set metric 200
R2(config-route-map)#router bgp 234
R2(config-router)#neighbor 172.12.123.1 route-map SET_MED_200 out

R3(config)#route-map SET_MED_100 permit 10
R3(config-route-map)#set metric 100
R3(config-route-map)#router bgp 234
R3(config-router)#neighbor 172.12.123.1 route-map SET_MED_100 out

After clearing the BGP table on R1, R1 will still see both next-hop addresses and will still consider both to be valid, but the path through R3 will be selected due to its lower metric.

Just keep in mind that the MED is actually a metric, and lower metrics are more desirable in path selection. That will put you one step closer to passing the BSCI and earning your CCNP certification!

Chris Bryant, CCIE #12933, is the owner of The Bryant Advantage, home of free CCNP and CCNA tutorials, The Ultimate CCNA Study Package, and Ultimate CCNP Study Packages.

You can also join his RSS feed and visit his blog, which is updated several times daily with new Cisco certification articles, free tutorials, and daily CCNA / CCNP exam questions! Details are on the website.

For a FREE copy of his latest e-books, “How To Pass The CCNA" and “How To Pass The CCNP", just visit the website! You can also get FREE CCNA and CCNP exam questions every day! Pass the CCNP exam with The Bryant Advantage!






Reprint Rights

Log in to become a member of Chris Bryant CCIE 12933's Fan Club!

Comments on this article: (1 total)


» left by Jodi from Indonesia (1 day 3 hours ago.)
Hi Chris,
 
Awesome article about MED.
 
But can you give me some enlightment to me if there is another Router in new AS joining this topology.
 
Also advertising the same prefix with the lowest metric.
 
I already used bgp always-compare-med, but still it won't work.
 
Thank you for your answer.
 


Respond to this comment

Was this article helpful to you? Leave a Public Comment or Question:

This Article has been viewed 1,339 times.
Article added to SearchWarp.com on 4/4/2006 8:31:32 AM.
View other articles written by Chris Bryant CCIE 12933 (13,765)


If you found this article interesting, you may want to check out:

Disclaimer:  All information on this site is provided for informational purposes only! By no means is any information presented herein intended to substitute for the advice provided to you by any health care or other professional or organization.


Today's Most Popular
Cisco CCNA Certification: Showdown At The Transport Layer... TCP vs. UDP !

Cisco CCNA Exam Tutorial: What's A Collision Domain?

Cisco CCNA Certification Exam Tutorial: Route Summarization

How To Become A CCNA (Cisco Certified Network Associate)

Cisco CCENT / CCNA Certification Exam Tutorial: Logging Synchronous And Exec-Timeout Commands

Cisco CCNA Exam Tutorial: Split Horizon And Hub-And-Spoke Networks

Cisco CCNP / BSCI Exam Tutorial: The BGP MED Attribute

Cisco CCNP / BCMSN Exam Tutorial: Changing Root Bridge Election Results

CCNP / BCMSN Exam Tutorial: Spanning Tree Protocol Timers

Cisco CCNP / BSCI Exam Tutorial: ISIS Router Types

Viewed from Cache. Load Time: 0.008.

Home  |  Page Two  |  FAQ's  |  Contact  |  Terms of Service  |  Article Submission Guidelines  |  Questions & Answers  |  Privacy  |  Mission / About
Copyright © 1999-2009 SearchWarp.com, All Rights Reserved - SearchWarp.com is an IcoLogic, Inc. Company