Cisco CCNP BSCI Certification The BGP Attribute MED

Cisco Certification

Cisco Certification Central

Home | Article List | Submit An Article | Contact Us


Cisco CCNP BSCI Certification The BGP Attribute MED

When you're preparing to pass the BSCI exam and earn your CCNP certification, one of the biggest challenges is learning BGP. BGP is totally different from any protocol you learned to earn your CCNA certification, and one of the differences is that BGP uses path attributes to favor one path over another when multiple paths to or from a destination exist.

Notice I said "to or from". In earlier free BGP tutorials, I discussed the BGP attributes "weight" and "local preference". These attributes are used to favor one path to a destination over another; for example, if BGP AS 100 has two paths to a destination in AS 200, these two attributes can be set in AS 100 to favor one path over another. But what if AS 100 wants to inform the routers in AS 200 as to which path it should use to reach a given destination in AS 100?

That's where the BGP attribute "Multi-Exit Discriminator", or MED, comes in. The MED value can be set in AS 100 to tell AS 200 which path it should use to reach a given network in AS 100.

As with many BGP attributes, the MED can be set with a route-map. What you need to watch is that there is no "set med" value in route maps. To change the MED of a path, you need to change the metric of that path. Let's say that there are two entry paths for AS 200 to use to reach destinations in AS 100. You want AS 200 to use the 100.1.1.0/24 path over the 100.2.2.0/24 path. First, identify the two paths with two separate ACLs.

R1(config)#access-list 22 permit 100.1.1.0 0.0.0.255

R1(config)#access-list 23 permit 100.2.2.0 0.0.0.255

Next, write a route-map that assigns a lower metric to the more-desirable path.



R1(config)#route-map PREFER_PATH permit 10

R1(config-route-map)#match ip address 22

R1(config-route-map)#set metric 100

R1(config-route-map)#route-map PREFER_PATH permit 20

R1(config-route-map)#match ip address 23

R1(config-route-map)#set metric 250



Finally, apply the route-map to the neighbor or neighbors.

R1(config-route-map)#router bgp 100

R1(config-router)#neighbor 22.2.2.2 route-map PREFER_PATH out

The key points to keep in mind is that while many BGP attributes prefer a higher value, the MED is basically an external metric - and a lower metric is preferred, just as with the protocols you've already studied to earn your CCNA certification.

Chris Bryant, CCIE #12933, is the owner of The Bryant Advantage, home of freeCCNP andCCNA tutorials, The Ultimate CCNA Study Package, and Ultimate CCNP Study Packages. 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 theCCNP exam with The Bryant Advantage!

 

Full List of Articles
 

Latest Cisco Certification News:

  1. Gsolutionz Achieves Premier Certification From Cisco

    Gsolutionz, the west coast's premier voice and data specialist for small and medium sized businesses, has achieved Premier Certification from Cisco®. To earn Premier Certification, Gsolutionz had to meet standards for networking competency, service, support and customer satisfaction set forth by Cisco.

    Read More ...

  2. Apptis Technology Solutions Achieves Cisco Gold Partner Certification for Sixth Straight Year

    CHANTILLY, Va.----Apptis Technology Solutions , a division of Apptis, Inc., and a technology solutions provider and value-added reseller, announced today that it has completed all requirements for maintaining Cisco Gold Partner Certification.

    Read More ...

  3. Logicalis becomes Master of Cisco realm

    Doug Woodburn, CRN , Thursday 28 August 2008 at 10:23:00 Logicalis joins Touchbase, 2e2 and Didata in elite pack of resellers to hold Cisco Master UC specialisation Logicalis has become the fourth UK reseller to gain Cisco’s top level Master certification for unified communications (UC). Cisco unveiled the badge in 2006 as a way to differentiate elite...

    Read More ...

  4. Logicalis becomes Master of Cisco realm

    Logicalis has become the fourth UK reseller to gain Ciscos top level Master certification for unified communications (UC).

    Read More ...

  5. Linksys confirms cut-off date for making Cisco switch

    Linksys resellers in the Middle East have until 16th September to sign up as Cisco Registered Channel Partners following confirmation that the vendor’s partner programme is to finally be folded into Cisco’s own channel scheme.

    Read More ...

  6. Linksys confirms cut-off date for making Cisco switch

    Linksys channel program to be merged with Cisco SMB scheme by mid September

    Read More ...

  7. Linksys announces availability of its first simultaneous Dual-N Band wireless router

    Linksys, a Division of Cisco, the recognized leading global manufacturer of wireless, and networking hardware for home, announced the availability of its first simultaneous Dual-N Band router.

    Read More ...

Cisco Certification

Cisco CCNP BSCI Certification The BGP Attribute MED