NEW ARTICLES  HOT ARTICLES  TOP RATED  ADD AN ARTICLE  UPDATE AN ARTICLE  GET RATED 
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     SUPPORT     SUGGEST CATEGORY  

Cisco CCNP / BSCI Exam Tutorial: The BGP Attribute MED
4785 Computers > Computer Certification Mar 1, 2007 Chris Bryant Cisco CCNP / BSCI Exam Tutorial: The BGP Attribute MED 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!

Article Source: http://www.articlerich.com

Chris Bryant, CCIE #12933, is the owner of The Bryant Advantage , home of free CCNA and CCNP tutorials! Pass the CCNA exam with Chris Bryant!


Write a Review   Add to My Favorite   Refer it to Friend   Report Article  

Average Visitor Rating: 0.00 (out of 5)
Number of ratings: 0 Votes

Visitor Rating


Other links owned by this user
EIGRP is a major subject of the CCNA exam, and Cisco goes into even more detail with EIGRP on your CCNP exams. Part of that detail is the purpose and configuration of EIGRP stub routers. A problem with EIGRP comes in when a successor is
Category:

While routers accept and generate broadcasts, they do not forward them. This can be quite a problem when a broadcast needs to get to a device such as a DHCP or TFTP server that's on one side of a router with other subnets on the other side.
Category:

If a Layer Two switch doesn't have the capabilities to run IGMP Snooping, it will be able to run CGMP - Cisco Group Membership Protocol. CGMP allows the multicast router to work with the Layer Two switch to eliminate unnecessary multicast forwarding.
Category:

In this CCNA case study, we'll take some basic switching and trunking theory and put it into action. We have two routers (R2 and R3) along with two switches (SW1 and SW2). R2 is connected to SW1 at fast 0/2, and R3 is connected to SW2 at fast 0/3. Both
Category:

Multicasting is a vital topic on your BCMSN, CCNP, and CCIE exams, and it can also be very confusing when you first start studying it. Multicasting uses concepts that are unlike anything you've run into in your routing protocol studies, and that can
Category:

I know from experience that part of the excitement and anxiety of putting together your own CCNA / CCNP home lab is deciding what to buy! While you can make a workable home lab out of almost any combination of Cisco routers and switches, some routers
Category:

To pass the BSCI exam, you need to know the difference between IRDP and HSRP. While they have the same basic function, the operation and configuration of each are totally different. The aim of both is to allow hosts to quickly discover a
Category:

To be truly prepared for your CCNA and CCNP exams, you need real hands-on experience with real Cisco routers and switches. However, a production network is a really bad place to practice your configurations, but an excellent way to get fired and/or
Category:

Passing the CCNA is tough, and one of the toughest parts is keeping all the acronyms straight! Frame Relay has plenty of those, and today we're going to examine what DLCIs do and how they're mapped on a Cisco router. Frame Relay VCs use
Category:

RIP isn't exactly the most complex routing protocol on the CCNA exam, but that makes it easy to overlook some of the important you must keep in mind in order to pass the exam! To help you review for the exam, here are just a few of those
Category:

CCNA exam success deends artially on knowing the details of ISDN, and there are lenty of them! To hel you review for your CCNA exam, here are a few ISDN details that you must know on exam day. (They hel in the real world, too ? and there are still
Category:

Your BSCI exam and CCNP certification success depend on mastering BGP, and a ig part of that is knowing how and when to use the many BGP attriutes. And for those of you with an eye on the CCIE, elieve me - you've got to know BGP attriutes like the
Category:

To pass e CCNA exam, you've got to know how to work wi IGRP and EIGRP unequal-cost load balancing. You may not see much IGRP in production networks anymore, but you'll see a lot of EIGRP, and part of fine-tuning your EIGRP network is making sure
Category:

The most common method of configuring ISDN is with dialer maps, but dial information can also be configured on a logical interface. To pass the CCNA exam, you must know how to configure and troubleshoot both dialer maps and dialer
Category:

QoS is a big topic on your BCMSN and CCNP exams, and for good reason. As more and more traffic flows through today's networks, accurately plying QoS to both your routers and switches becomes more important. Note the phrase "accurately
Category:

OSPF route ibution is an important topic on the BSCI exam, and it's a topic full of details and defaults that you need to know for the exam room and the job. To help you pass the BSCI exam, here's a quick review of some of the OSPF route
Category:

Ever since you picked up your first CCNA book, you've heard about multicasting, ten a fair idea of what it is, and you've memorized a couple of reserved multicasting addresses. Now as you prepare to pass the BCMSN exam and become a CCNP, you've
Category:

QoS - Quality o Service - is a huge topic on both the BCMSN exam and real-world networks. QoS is so big today that Cisco's created separate specialist certiications that cover nothing but QoS! It can be an overwhelming topic at irst, but master the
Category:

Other links at Computers > Computer Certification
While routers accept and generate broadcasts, they do not forward them. This can be quite a problem when a broadcast needs to get to a device such as a DHCP or TFTP server that's on one side of a router with other subnets on the other side.
Category:

Like TCP, BGP is connection-oriented. An underlying connection between two BGP speakers is established before any routing information is exchanged. This connection takes place on TCP port 179. As with EIGRP and OSPF, keepalive messages are sent out by
Category:

Your BSCI exam and CCNP certification success depend on mastering BGP, and a ig part of that is knowing how and when to use the many BGP attriutes. And for those of you with an eye on the CCIE, elieve me - you've got to know BGP attriutes like the
Category:

Earning your CCNP certification and ing the BSCI exam depends on knowing the details of many Cisco technologies, ISIS chief among them. To help you prepare for exam success, here's a list of ISIS terminology and basic concepts that will help you
Category:

To pass the BSCI exam an earn your CCNP, you've got to keep a lot of etails in min. It's easy to overlook the "simpler" protocols an services such as static routing an istance vector protocols. With this in min, here's a quick review of some
Category:




Site Sponsor
Directory Statistics

Articles: 68222
Categories: 501

Yahoo Entertainment
Valid XHTML 1.0 Transitional   Valid CSS