Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: BGP MED/RFC4451: allows MEDs to reasonably reflect IGP topologies when advertising routes to peers #17031

Closed
Mark225 opened this issue Oct 8, 2024 · 1 comment
Assignees

Comments

@Mark225
Copy link

Mark225 commented Oct 8, 2024

As mentioned in RFC 4451, BGP speakers often derive MED values by obtaining the IGP metric associated with reaching a given BGP NEXT_HOP within the local AS. This allows MEDs to reasonably reflect IGP topologies when advertising routes to peers.

In the huawei router equipment, when the router learns a route from an IBGP peer and advertises it to an EBGP peer,

apply cost-type internal

if the above command is configured, the router will set the MED value of the route advertised to the EBGP peer to the IGP metric value of the next hop for that route.

As for cisco router equipment, the same command is as below.

set metric-type internal

However, I can not find the same command in FRRouting (version 9.1). It could also be that I overlooked it. So, I kindly request to add this new command and function.

@ton31337
Copy link
Member

ton31337 commented Oct 8, 2024

For now, we don't have such a functionality. If you have "newer" versions, you could use AIGP attribute (which is basically an accumulated metric from IGPs). I'm adding this to a feature list, and gonna back to this a bit later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants