Is there a safe / supported way to bulk edit DHCP6 static mappings (to change the prefix)
-
Soon I will be switching ISPs and my delegated IPv6 /48 prefix will be changing, which impacts my internal IPv6 /64 subnets. I have quite a few devices whose IPv6 addresses are assigned via DHCP6 static mappings. It will be quite tedious to edit all of those manually to change the IPv6 addresses (prefix part) so I was wondering if there is some safe and supported way, maybe by editing a file somewhere, to perform this change 'en mass'?
-
I'd backup the config.xml, edit it in Notepad++, and "Find/Replace All" the old prefix with the new. Save and import it when the time comes. But that's me, just an idiot on the Interwebs who doesn't even use v6.
-
@provels Yup, that is in fact the easiest way! Thanks.
-
@ChrisJenk you can specify just the ending part of the address in the reservation, such as โ::ff01โ or โ::1000โ
-
@SteveITS That doesn't work for me... If I do that then the device does not get the reservation address whereas if I specify the full address then it does. I tried various permutations of the ending part but the only one pfSense would accept is ::xxxx and that then doesn't result in the device getting the reservation address.
-
@ChrisJenk Are you using Kea or ISC DHCP? I'm using ISC...
-
@SteveITS I'm using ISC
-