Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

BGP neighbor next-hop-self

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
Hall of Fame Super Silver

Re: BGP neighbor next-hop-self

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

5 REPLIES
Hall of Fame Super Blue

Re: BGP neighbor next-hop-self

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

Cisco Employee

Re: BGP neighbor next-hop-self

Jon,

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

-amit singh

Hall of Fame Super Blue

Re: BGP neighbor next-hop-self

Amit

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

Jon

Cisco Employee

Re: BGP neighbor next-hop-self

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

Hall of Fame Super Silver

Re: BGP neighbor next-hop-self

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

1534
Views
0
Helpful
5
Replies