Cisco CCNP / BSCI Tutorial: The BGP Attribute NEXT_HOP
When you"re studying for the BSCI exam on the way to earning your CCNP certification, you"ve got to master the use of BGP attributes. These attributes allow you to manipulate the path or paths that BGP will use to reach a given destination when multiple paths to that destination exist.
In this free BGP tutorial, we"re going to take a look at the NEXT_HOP attribute. You may be thinking "hey, how complicated can this attribute be?" It"s not very complicated at all, but this being Cisco, there"s got to be at least one unusual detail about it, right?
The NEXT_HOP attribute is simple enough - this attribute indicates the next-hop IP address that should be taken to reach a destination. In the following example, R1 is a hub router and R2 and R3 are spokes. All three routers are in BGP AS 100, with R1 having a peer relationship with both R2 and R3. There is no BGP peering between R2 and R3.
R3 is advertising the network 33.3.0.0 /24 via BGP, and we see the value of the next-hop attribute on R1 in the output of show ip bgp:
R1#show ip bgpBGP table version is 1, local router ID is 1.1.1.1Status codes: s suppressed, d damped, h history, * valid, > best, i - internalOrigin codes: i - IGP, e - EGP, ? - incompleteNetwork Next Hop Metric LocPrf Weight Path*>i33.3.3.0/24 172.12.123.3 0 100 0 i
In this example, the next-hop to network 33.3.3.0/24 is 172.12.123.3. Simple enough, right?
The issue with the next-hop attribute comes in when the route is advertised to BGP peers. If R3 were in a separate AS from R1 and R2, R1 would then advertise the route to R2 with the next-hop attribute set to 172.12.123.3. When a BGP speaker advertises a route to iBGP peers that was originally learned from an eBGP peer, the next-hop value is retained.
Here, all three routers are in AS 100. What will the next-hop attribute be set to when R1 advertises the route to its iBGP neighbor R2?
R2#show ip bgp
There will be no next-hop attribute for the route on R2, because the route will not appear on R2. By default, a BGP speaker will not advertise a route to iBGP neighbors if the route was first learned from another iBGP neighbor.
Luckily for us, there are several ways around this rule. The most common is the use of route reflectors, and we"ll look at RRs in a future free BGP tutorial.
Author: Chris Bryant, CCIE #12933, is the owner of The Bryant Advantage, home of over 100 free CCNA and CCNP tutorials, The Ultimate CCNA Study Package, Ultimate Network+ Study Package, and Ultimate CCNP Study Packages.
Random Posts
- Data Mining Practical Machine Learning Tools and Techniques Second Edition - Morgan Kaufmann
- Flash XML Applications: Use AS2 and AS3 to Create Photo Galleries, Menus, and Databases
- Linux For Dummies 8th Edition
- Design Patterns in Ruby - Addison Wesley
- Dot NET Developers Journal August 2006
- Tricks of the Ebay Masters 2nd Edition - Que
- Programming Cameras and Pan-Tilts: with DirectX and Java - Morgan Kaufmann
- Tequila Sunrise
- PgMP: Program Management Professional Exam Study Guide
- Lynda.com - Learning Blogger with Molly E. Holzschlag



















July 11th, 2007 21:12
thanks
July 13th, 2007 19:18
happy
July 25th, 2007 19:08
nice work