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

    pfSense static ipv6 address on LAN tracking delegated prefix?

    Scheduled Pinned Locked Moved IPv6
    6 Posts 5 Posters 673 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.
    • J
      jhg
      last edited by jhg

      I get a delegated /64 from Comcast, and am able to assign reserved DHCP LAN IPs within this prefix for some a few hosts on my LAN that need a static IP. For example an ssh bastion host gets a reserved LAN IP of (for example) [delegated-prefix]::10.

      However, the LAN address for the firewall itself is a random 64-bit string, such as [delegated-prefix]:203:21f5:fe70:3cfe.

      What I'd like to do is assign to the gateway's LAN interface the address [delegated-prefix]::1. It's not clear how the firewall's IPv6 LAN address is generated.

      I tried adding a DHCPv6 reservation with the firewall's DUID. This doesn't actually assign the static IP, but surprisingly DOES create a DNS entry.

      Is there a way to give the firewall's LAN interface a static IPv6 address within the delegated prefix?

      pfSense CE on Beelink EQ12 (N100 CPU, dual 2.5Gbe Intel NICs)
      Hitron CODA56 - Comcast 2.5Gb cable

      J Bob.DigB GertjanG 3 Replies Last reply Reply Quote 0
      • J
        jhg @jhg
        last edited by

        Anyone...? Bueller...? Bueller...?

        pfSense CE on Beelink EQ12 (N100 CPU, dual 2.5Gbe Intel NICs)
        Hitron CODA56 - Comcast 2.5Gb cable

        P S 2 Replies Last reply Reply Quote 0
        • P
          pst @jhg
          last edited by

          @jhg A good question, and one that came to me a couple of days ago as I was tinkering with DHCPv6. I haven't been able to find an answer either, but from what I can see the the address is based on the MAC address of the interface with few additional bytes thrown as fillers.

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

            @jhg I believe in some (all?) places an incomplete IP will be expanded, so ::153 would use the prefix. Though ::1 is localhost so that doesn’t help you with the LAN IP but if you are looking to reference LAN devices it should help.

            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
            • Bob.DigB
              Bob.Dig LAYER 8 @jhg
              last edited by

              @jhg said in pfSense static ipv6 address on LAN tracking delegated prefix?:

              Is there a way to give the firewall's LAN interface a static IPv6 address within the delegated prefix?

              If that prefix is really static, you could create the LAN-address on your own I think. Or better create it as a VIP.
              But in the end, why do you want to do all of that in the first place. And getting only one /64 is bad anyways.

              1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @jhg
                last edited by

                @jhg said in pfSense static ipv6 address on LAN tracking delegated prefix?:

                Is there a way to give the firewall's LAN interface a static IPv6 address within the delegated prefix?

                I know of one 'official' way : you have to do this if you are really get an /64 (probably way bigger) to assign to your LAN(s).
                Normally, ISP don't do this, you need to have the dhcp6c on WAN asking for at least one 'prefix', and have that assigned to your LAN using Tracking mode.

                Create a free account here : https://tunnelbroker.net

                bfa252a7-0d69-4be4-ac0b-64c115ece417-image.png

                From here on, it's easy :
                Assign statically the xxx:5c0:2 to you WAN IPv6.

                Because they give you a /48, don't even bother with the announced /64 = xxx:5c0::/64
                Assign statically the first 2001:471:c8xx:0::/64 (from the /48 pool) to your first LAN.
                Assign statically the first 2001:471:c8xx:1::/64 (from the /48 pool) to your second LAN.
                Etc, continue like that 65533 times for 65535 LAN's ^^

                I've been using this 'setup' for nearly a decade, and it was just perfect.
                Well, close to perfect, as a IPv6 over Ipv4 tunnel is used to the closest he;net access point, Paris for me (216.66.84.42). My IPv4 WAN speed was about 25 Mbits/sec back then, and I'm not sure they will follow my current speed, > 1 Gbits right now.
                But again : it worked flawlessly.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

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