Skip to content

A router with localas_ibgp session MUST change NH on all IBGP routes#2591

Merged
ipspace merged 1 commit intodevfrom
bgp-localas-nh
Aug 16, 2025
Merged

A router with localas_ibgp session MUST change NH on all IBGP routes#2591
ipspace merged 1 commit intodevfrom
bgp-localas-nh

Conversation

@ipspace
Copy link
Owner

@ipspace ipspace commented Aug 9, 2025

The routes received over localas_ibgp session have to be reflected to other IBGP neighbors. The next hop on those reflected routes MUST be changed because we're not advertising the inter-AS subnet into IGP.

That makes the router with localas_ibgp session unsuitable to be a RR.

This change adds an extra step after the IBGP and EBGP sessions have been built. It checks for the presence of localas_ibgp session and sets neighbor.next_hop_self to 'all' on all IBGP sessions if needed.

The routes received over localas_ibgp session have to be reflected to
other IBGP neighbors. The next hop on those reflected routes MUST be
changed because we're not advertising the inter-AS subnet into IGP.

That makes the router with localas_ibgp session unsuitable to be a RR.

This change adds an extra step after the IBGP and EBGP sessions have
been built. It checks for the presence of localas_ibgp session and
sets neighbor.next_hop_self to 'all' on all IBGP sessions if needed.
@ipspace
Copy link
Owner Author

ipspace commented Aug 9, 2025

The (hopefully) final step of a very long journey started by #1996

@ipspace ipspace requested a review from jbemmel August 9, 2025 14:53
@ipspace ipspace merged commit 6026d30 into dev Aug 16, 2025
11 checks passed
@ipspace ipspace deleted the bgp-localas-nh branch August 16, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant