Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Is there a safe / supported way to bulk edit DHCP6 static mappings (to change the prefix)

    Scheduled Pinned Locked Moved DHCP and DNS
    8 Posts 3 Posters 336 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      ChrisJenk
      last edited by

      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'?

      1 Reply Last reply Reply Quote 0
      • provelsP
        provels
        last edited by

        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.

        Peder

        MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
        BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

        C 1 Reply Last reply Reply Quote 1
        • C
          ChrisJenk @provels
          last edited by

          @provels Yup, that is in fact the easiest way! Thanks.

          S 1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @ChrisJenk
            last edited by

            @ChrisJenk you can specify just the ending part of the address in the reservation, such as โ€œ::ff01โ€ or โ€œ::1000โ€

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote ๐Ÿ‘ helpful posts!

            C 1 Reply Last reply Reply Quote 0
            • C
              ChrisJenk @SteveITS
              last edited by

              @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.

              S 1 Reply Last reply Reply Quote 0
              • S
                SteveITS Galactic Empire @ChrisJenk
                last edited by

                @ChrisJenk Are you using Kea or ISC DHCP? I'm using ISC...

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote ๐Ÿ‘ helpful posts!

                C 1 Reply Last reply Reply Quote 0
                • C
                  ChrisJenk @SteveITS
                  last edited by

                  @SteveITS I'm using ISC
                  Screenshot 2025-06-01 at 18.00.49.png

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    SteveITS Galactic Empire @ChrisJenk
                    last edited by

                    @ChrisJenk Hmm, I have:

                    c06f7223-67d7-46cb-ad56-915fdb1fe82b-image.png

                    and
                    f9bd11e6-ab0c-48d9-8f27-57acbfc3d64f-image.png

                    and see an active lease:
                    1a3af71f-5ca6-4a00-882f-fbb8b7315889-image.png

                    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                    Upvote ๐Ÿ‘ helpful posts!

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.