cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2347
Views
0
Helpful
5
Replies

BGP neighbor next-hop-self

Wassim Aouadi
Level 4
Level 4

hi,

Suppose B and C are IBGP routers. On B we set the BGP neighbor next-hop-self.

The only advatage I see of this command is to avoid having a static route, on C, to the exterior EBGP link.

Are there any other benefits?

1 Accepted Solution

Accepted Solutions

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Wassim,

in a IP only network the only advantage can be that of being able to satisfy the BGP next hop reachability check (first check in the hierarchy of criteria used to choice the BGP best path)without adding a route as explained by Jon and Amit.

In a MPLS network there are some scenarios were implementing inter-AS MPLS VPN where the next-hop-self is required to be able to forward MPLS VPN packets at the AS boundary routers. In practice the BGP next-hop-self in that cases allow to "join" two MPLS label paths at the boundary.

Hope to help

Giuseppe

View solution in original post

5 Replies 5

Jon Marshall
Hall of Fame
Hall of Fame

Wassim

This is the main reason to use the next-hop-self. Because if B is peering via EBGP with another router then unless you use the next-hop-self B will advertise the route to C with the next hop of the external BGP router. C probably won't know how to get there unless as you say you add it as a route to C.

Jon

Jon,

Sorry, I think I didnt see you post before replying. Its just a wrong timing.

-amit singh

Amit

No need to apologize, always good to have your input.

Jon

Amit Singh
Cisco Employee
Cisco Employee

Yes its kindaa true. Any EBGP route learned inside the BGP AS, carries the EBGP neigbor ID as the next hop. Your all the router in the BGP AS has to have a route to reach that next-hop IP otherwise the routes learned wont show up in BGP table. You can have the reachability to that neigbor either via static route or using some routing protocol. BGP " next-hop-self " command advertises your router ID which is peering with the EBGP router as the next-hop for all the external AS routes learned and will be the easiest way to exit out from the AS as all the IBGP routers will have peering to your EBGP router.

-amit singh

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Wassim,

in a IP only network the only advantage can be that of being able to satisfy the BGP next hop reachability check (first check in the hierarchy of criteria used to choice the BGP best path)without adding a route as explained by Jon and Amit.

In a MPLS network there are some scenarios were implementing inter-AS MPLS VPN where the next-hop-self is required to be able to forward MPLS VPN packets at the AS boundary routers. In practice the BGP next-hop-self in that cases allow to "join" two MPLS label paths at the boundary.

Hope to help

Giuseppe

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:

Review Cisco Networking products for a $25 gift card