+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

BGP Next-Hop-Self


BGP is an autonomous system by autonomous system routing protocol, and next hop value of BGP network advertisement that leaves an AS, is ip address of router at the exit point from AS. Further, that advertisement is sent through IBGP to neighbors, but next hop attribute remains the same. Usually, a router inside AS, does not have a route to external IP address from next hop attribute (unless BGP updates are advertised into IGP).

To avoid potential routing black-holes, it is better to make use of the “next-hope-self” attribute to force the Ibgp speaker to set the next-hop of the route advertised to its own IP address.



On Router 1
		Router # config terminal
		Router (config) # router bgp 1
		Router (config-router) # neighbor 10.1.12.2 remote-as 1
		Router (config-router) # network 1.1.1.1 mask 255.255.255.255
On Router 2
		Router # config terminal
		Router (config) # router bgp 1
		Router (config-router) # neighbor 10.1.12.1 remote-as 1
		Router (config-router) # neighbor 10.1.23.3 remote-as 2
		Router (config-router) # network 2.2.2.2 mask 255.255.255.255
		Router (config-router) # neighbor 10.1.12.1 next-hop-self
On Router 3
		Router # config terminal
		Router (config) # router bgp 2
		Router (config-router) # neighbor 10.1.23.2 remote-as 1
		Router (config-router) # network 3.3.3.3 mask 255.255.255.255






Is it Helpful?
Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.
FOLLOW US