-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: interface ip addresses order #15464
Comments
Isn't something like adding |
Yes. Cisco has this feature. |
@EasyNetDev can you please explain what is the end goal? You have two addresses from different subnets, how does their order affect anything? |
Well I explained in the description. When you install 89.x.x.Y/32 IP address on If in FRR I'm adding 89.x.x.Y/32 as first IP on interface, everything is fine. But as soon I'm restarting FRR, 10.100.2.1 is smaller than 89.x.x.Y and the order will be 10.100.2.1/32 first and also installed on If we could have |
Is the default route installed by FRR? If yes, you can create a route-map with |
Hi @idryzhov , Yes, the default route is installed in FRR:
Ok, the route-map I can create with
But at first glance, I have no clue where to apply this RM. In FRRouting documentation I can't find anything regarding
No options to add this RM to the route. But, checking a little bit deeper in the Zebra documentation I've notice this:
Then:
I notice this using
But is not very clear in the documentation how to do it. For a better tuning I used the RM like this:
Then is working for both IPv4 and IPv6:
|
Subject: Proposal: Adding setorder Keyword for Ordered IP Configuration Hi everyone, Motivation Proposed Solution Example Configuration In this example, the IP addresses would be applied in the following order (ascending setorder value): Expected Output (After FRR Reload) Is the proposed setorder solution acceptable for achieving predictable IP address order on interfaces? If not, please provide details on any concerns or alternative approaches you may have. Thanks |
Hi everyone Subject: Introduction: Feature Overview: Implementation Details: Testing and Validation: NOTE: For your reference: After restarting the frr The order in which they will be configered by zebra and ip's order in kernel Conclusion Patch File: Thanks |
Description
Depending on how you give the commands in vtysh for ip addresses this is the order of the IPs installed on interface.
But as soon you save the configuration, the order in config is different, taking the ascending order of the IPs.
It could be nice to have an specific order of the IPs installed on the interface, for example for lo that can have public IP and private IP. In this case you want the public IP to be first in to be able to use GRT as a normal system to do updates for example.
At this moment Linux doesn't support multiple loopbacks, except dummy interfaces.
Version
How to reproduce
Simple config:
Output in OS:
In FRR:
As soon you load reload FRR it will set the order:
Then you can't use anymore GRT to update your system, beacause the first IP will be 10.100.2.1.
Expected behavior
In FRR should be something like:
Actual behavior
In FRR is like this now:
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: