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

RFC: Auto assign IPv6 prefixes and IPv4 mesh prefixes #644

Open
Noki opened this issue Dec 14, 2023 · 1 comment
Open

RFC: Auto assign IPv6 prefixes and IPv4 mesh prefixes #644

Noki opened this issue Dec 14, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Noki
Copy link
Member

Noki commented Dec 14, 2023

I suggest the following changes to make the IP configuration more automated and therefore easier and to reduce the size of configuration files:

IPv6 subnets:

  • If an ipv6_subprefix is manually set, assign that subnet to the vid
  • If no ipv6_subprefix automatically assign subnets based on this rules
    • If vid is 40 assign 0 as ipv6_subprefix
    • If vid is 42 assign 1 as ipv6_subprefix
    • Else if vid >= 254 throw an error that auto assignment is not possible, otherwise assign -[vid] as ipv6_subprefix

IPv4 mesh IPs:

  • Specify an ipv4_mesh_subnet as IP pool
  • If an ipv4 prefix is manually set, assign that subnet to the vid / tunnel network
  • If no ipv4 prefix is set automatically assign prefixes based on this rules
    • If the network has the role "mesh" or "tunnel" auto assign the next free /32 subnet from the ipv4_mesh_subnet IP pool
@Noki Noki added the enhancement New feature or request label Dec 14, 2023
@FFHener
Copy link
Contributor

FFHener commented Dec 14, 2023

I like this proposal as having them individually defined doesn't bring any benefit from my point of view. Just one quick note, in your sketch up i miss an error handling if i define vlan 1 and 42 as both would get the same ipv6_subprefix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants