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

1.x: Add optional provisioning of ipv4 delegated prefix IPs #57

Closed
jblosser opened this issue Jun 11, 2022 · 1 comment
Closed

1.x: Add optional provisioning of ipv4 delegated prefix IPs #57

jblosser opened this issue Jun 11, 2022 · 1 comment

Comments

@jblosser
Copy link

When support for prefix delegation was added to 1.x, it was limited to updating routing rules, with the comment "Assignment of individual addresses within the prefix is out of scope for this package, and would instead be handled by a local IPAM system. A typical such system might provision IP addresses for use by locally running containers, etc."

The problem is that if we are using prefixes on e.g. an ec2 iptables NAT instance and provisioning IPs from the delegated range locally, they are removed whenever the ec2net functions run, multiple times an hour. It would be preferable if there was an option to have at least ipv4 addresses inside delegated prefixes detected and managed like other secondary addresses are.

PR incoming.

jblosser added a commit to jblosser/amazon-ec2-net-utils that referenced this issue Jun 11, 2022
…prefix if

the ifcfg option 'EC2PROVISIONPFXIPS' is set. The option defaults to 'no' for
back-compat with current behavior.

This uses ipcalc(1) to determine start and stop addresses of the range, which
is already included in the initscripts package.

Addresses amazonlinux#57
@nmeyerhans
Copy link
Contributor

This will be included in an upcoming 1.7.0 release.

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

No branches or pull requests

2 participants