cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
762
Views
9
Helpful
4
Replies

next-hop-self at BGP

mtechnology
Level 1
Level 1

what is the use of

neighbor 172.16.102.32 next-hop-self

What next hop self will do.

4 Replies 4

Medan,

Link is usefull thanks.

Istvan_Rabai
Level 7
Level 7

Hi,

In BGP, when you have an EBGP connection, the the next hop attribute for the learned routes is by default the interface ip address of the EBGP neighbor in the neighboring AS.

With the next-hop-self option, you can overwrite this default behavior on the BGP router in this AS.

If the BGP router within this AS advertises routes to the IBGP neighbors, then it will set the next hop attribute to its own inteface ip address.

This way the internal BGP routers will have routes in their routing tables with the next hop pointing to the edge BGP router within their AS, where they got the update from.

For IGP routing protocols, like EIGRP and OSPF, it is not necessary to learn the ip routes to the EBGP connection (that is to the EBGP neighbor), and routes from the internal AS will not be advertised to the neighbor AS (ISP for example).

I hope I wasn't too complicated :)

Cheers:

Istvan

Thanks Istvan

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco