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

Allow DHCPv6 with Prefix delegation #1993

Closed
poggenpower opened this issue Dec 13, 2017 · 10 comments
Closed

Allow DHCPv6 with Prefix delegation #1993

poggenpower opened this issue Dec 13, 2017 · 10 comments
Assignees
Labels
feature Adding new functionality
Milestone

Comments

@poggenpower
Copy link

If you have a internet uplink with prefix delegation, you typically want to assign these delegated ipv6 addresses to your clients in your network, but Opnsense doesn't support this, because almost all DHCPv6 functions are disabled. Especially Router Advertisements and DHCP Server.

Feature Request:
Support DHCPv6 and RA, if the interface is a Track IPv6 Interface.
subrequest:
Instead of assigning an Interface ID by EUI-64 it would be great to make it configurable like "::1" as this interface is the default route in this network and need to be configured in some places.

@fichtner
Copy link
Member

Hi @poggenpower,

Thanks for this ticket... let's break this down and work our way up.

Instead of assigning an Interface ID by EUI-64 it would be great to make it configurable like "::1" as this interface is the default route in this network and need to be configured in some places.

Can you explain this a bit more, preferably in the respective config syntax so we can write and test precise changes.

I'm tagging this "future", I'm not sure we'll get all of this into 18.1 still.

Cheers,
Franco

@fichtner fichtner self-assigned this Dec 14, 2017
@fichtner fichtner added the feature Adding new functionality label Dec 14, 2017
@fichtner fichtner added this to the Future milestone Dec 14, 2017
@poggenpower
Copy link
Author

Thanks Franco,

for your response. Here what I could think of how it should look like.
screen shot 2017-12-15 at 00 49 16

Here a mockup of how it could look like.
In the additional field you can specify the Interface ID in typical colon separated format. How long this input could be depends on the length of the prefix delegated. This could be inherited the parent interface. The formula is: 128 - "DHCPv6 Prefix Delegation size" - "Site-Level Aggregation Length" = Interface ID Length. As the example in the mock up shows, if a shorter ID is given, than it should be the most right hand side part of the address.

The configuration of the interface ID is not an requirement for the main request to have DHCP working on a tracked interface.

Bye
Thomas

@fichtner
Copy link
Member

Hi Thomas,

Okay, so that is effectively setting the IPv6 address obtained for the tracking interface to a static value (inside the prefix)? Do you expect the compressed format to work here? Like 1::ff expanding to 1:0000:0000:00ff or would that be expanded and cut to 0000:0000:0000:00ff? Probably the latter, just double-checking. :)

Thanks,
Franco

@poggenpower
Copy link
Author

Hi Franco,
it is up to you, if you want to support this and do the expansion in the code. Don't know the rest of the code, but as :: is only valid one time in a address, you could not assume that it could work here. In real life I think this is a very rare case where such a interface ID is given. If needed the user should type it full qualified, this should be OK and keeps the code simpler.
Bye
Thomas

@fichtner fichtner modified the milestones: Future, 18.1 Dec 21, 2017
fichtner added a commit that referenced this issue Jan 9, 2018
fichtner added a commit that referenced this issue Jan 10, 2018
fichtner added a commit that referenced this issue Jan 10, 2018
(cherry picked from commit f98e08d)
@fichtner fichtner modified the milestones: 18.1, 18.7 Jan 17, 2018
@fichtner fichtner removed this from the 18.7 milestone Feb 27, 2018
@iamperson347
Copy link
Contributor

Implemeting this would bring opnsense in line with pfsense with regards to some of the ipv6 functionality. (My LAN interface on pfsense as an example.)

image

And an example of the interface automatically grabbing an IP within the prefix.

image

Note: in pfsense, this still allows DHCPv6 to be used.

@fichtner
Copy link
Member

@iamperson347 unsure what you are asking. The feature you show in the screenshot has been in OPNsense since the fork? And yes, in OPNsense 18.7 you will be able to use manual DHCPv6 / RA if you want.

@iamperson347
Copy link
Contributor

iamperson347 commented Jul 10, 2018 via email

@fichtner fichtner added this to the 19.1 milestone Jul 15, 2018
@fichtner
Copy link
Member

I don't know if we can accommodate for an ID to assign a real address. dhcp6c seems to assign it, more or less related to what it gets from radvd/dhcpv6. I am unable to find overrides in the deamons for proper configuration.

@poggenpower
Copy link
Author

If I understand the comments correct, it is not possible to set the interface address to a specific address because of technical restrictions. Right?

@fichtner
Copy link
Member

Yes, dhcp6c leaves no room for manual IDs/Suffixes that it assigns for the interfaces it handles. That could be mitigated by using ULAs via VIPs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding new functionality
Development

No branches or pull requests

3 participants