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

PFSense Not Working with DHCPV6 or Stateless on tracking interface

Scheduled Pinned Locked Moved IPv6
48 Posts 10 Posters 14.2k 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.
  • M
    moscato359
    last edited by Feb 8, 2017, 2:51 PM Feb 8, 2017, 2:25 AM

    I have a pfsense netgate SG8860
    Occasionally, Comcast does this wonderful thing of changing my business-class ipv6 network address.

    To counteract that headache, I'd like to automate the change.

    I setup my wan interface to DHCPv6
    Works great
    I setup my lan interface to track the wan interface
    Works great
    I can setup a static IP on my desktop and connect to the public internet, just fine
    Router advertisement doesn't work.
    DHCPv6 doesn't work.

    If I move the interface from tracking interface, to static ipv6 with the same exact IP it was on previously both DHCPv6 and Router Advertisement work immediately with no other changes.

    If I have tracking interface set:
    If I manually set a subnet for router advertisement, everything works.
    For dhcpv6, Instead of seeing a specific available range, it says "Available Range :: to ::ffff:ffff:ffff:ffff" which is clearly not right.

    Am I doing something wrong?
    Is this a bug? If yes, what is the best way to have this addressed?

    1 Reply Last reply Reply Quote 0
    • ?
      Guest
      last edited by Feb 8, 2017, 3:03 PM

      Set the range to something like this:

      ::eeee:0000:0000:0001 to ::eeee:ffff:ffff:ffff

      That's based on a /56 prefix.

      1 Reply Last reply Reply Quote 0
      • M
        moscato359
        last edited by Feb 8, 2017, 4:26 PM

        @marjohn56:

        Set the range to something like this:

        ::eeee:0000:0000:0001 to ::eeee:ffff:ffff:ffff

        That's based on a /56 prefix.

        Can you explain that one a bit?

        1 Reply Last reply Reply Quote 0
        • ?
          Guest
          last edited by Feb 8, 2017, 5:19 PM Feb 8, 2017, 5:12 PM

          No…. 8)

          Ok, it's effectively the same as setting the dhcp range in IPV4, only much much bigger.

          In v4 you would set a range say from 192.168.1.100 to 192.168.1.200, and dhcp would give out addresses in that range.

          V6 is the same. The prefix from the ISP may be 48,56,60 whatever, and that is the first 'n' bits of your ipv6 address, you can do what you like with the rest.

          So in the example I gave, my prefix is /56, I have an prefix like so: 2a12:2c7f:6130:4d ( not my prefix! ) that's my 56 bit prefix. I then have 128-56 bits to play with, that gives me 72. 72.

          Now, my LAN side is really a 64 bit prefix, as the 8 bits after the 56 ISP assigned prefix gives you the option of upto 256 ( or is it 255 ) separate routers should you so wish chained on to the first router.

          So we use the last 64 bits as our range on the LAN, a bit excessive I know but it allows you to have loads of fridges, toasters and the IoT all connected. So then we see the last 64 bits of the range are:

          ::eeee:0000:0000:0001 to ::eeee:ffff:ffff:ffff,

          What we are saying there is, the last 64 bits by the :: at the start, everything else prior to that will be either the prefix or 0. If you really wanted you could have a range of
          ::0000:0000:0000:0001 to ::0000:0000:0000:00fe, giving you 254 addresses, but that would be silly. Even so, I am limiting the range a little by making everything on my LAN ( that uses a dhcp6 assigned address ) start the last 64 bits with eeee, thus limiting the number of dhcp addresses on my LAN to 281474976710655 addresses, not going to run out this week.

          Does that make sense or is it gibberish, I understand it bit explaining it is never simple.

          1 Reply Last reply Reply Quote 1
          • M
            moscato359
            last edited by Feb 8, 2017, 5:32 PM

            I get what you're trying to say now, but that doesn't really resolve my problem.

            DHCPv6 isn't getting a network address, and neither is stateless autoconfig, on a tracking interface.

            You're giving me a host address range.

            I need to know how to get an automated network address on a tracking interface.

            The host address part is easy to deal with.

            1 Reply Last reply Reply Quote 0
            • ?
              Guest
              last edited by Feb 8, 2017, 5:49 PM

              You need to enter the address range, it's not telling what the range is, it's giving you you the limits of the range you can use.

              1 Reply Last reply Reply Quote 0
              • B
                bimmerdriver
                last edited by Feb 9, 2017, 1:01 AM

                @marjohn56:

                Set the range to something like this:

                ::eeee:0000:0000:0001 to ::eeee:ffff:ffff:ffff

                That's based on a /56 prefix.

                It doesn't matter what size the prefix is (as long as it's at least a /64). The range is /64 from :: to ::ffff:ffff:ffff:ffff. The bits that fill in the difference between the prefix and /64 are prefix id, in the lan settings.

                1 Reply Last reply Reply Quote 0
                • ?
                  Guest
                  last edited by Feb 9, 2017, 8:11 AM

                  @bimmerdriver:

                  @marjohn56:

                  Set the range to something like this:

                  ::eeee:0000:0000:0001 to ::eeee:ffff:ffff:ffff

                  That's based on a /56 prefix.

                  It doesn't matter what size the prefix is (as long as it's at least a /64). The range is /64 from :: to ::ffff:ffff:ffff:ffff. The bits that fill in the difference between the prefix and /64 are prefix id, in the lan settings.

                  What prefix ID in the LAN Settings, where's that then? It would be different if it was a /48 prefix, unless you wanted 65k+ subnets.  :P

                  1 Reply Last reply Reply Quote 0
                  • B
                    bimmerdriver
                    last edited by Feb 9, 2017, 5:40 PM

                    Well, it's up to 8 bits, not that anyone would ever have that many subnets. The rest would be for delegated prefixes. But the point that the dhcpv6 subnet range is 64 bits is the same, irrespective of whether your ISP gave you a /56 or some other size of prefix.

                    1 Reply Last reply Reply Quote 0
                    • ?
                      Guest
                      last edited by Feb 9, 2017, 5:44 PM

                      We're arguing semantics here, I say potato you say poTAto type thing, the ops issue was he had not entered anything.

                      1 Reply Last reply Reply Quote 0
                      • M
                        moscato359
                        last edited by Feb 11, 2017, 8:31 PM

                        Lets ignore dhcpv6 entirely for a moment.

                        I want to know:
                        why I can't get an ipv6 address from router advertisement on my box when I have tracking interface used, with unmanaged router advertisement

                        while

                        I can get an ipv6 address from router advertisement on my box when I have when I have static interface set to the same IP that would be used by tracking interface, with unmanaged router advertisement turned on

                        1 Reply Last reply Reply Quote 0
                        • P
                          pFence
                          last edited by Feb 13, 2017, 4:38 PM

                          This is what happens to my pfSense in this scenario with a nightly change of the WAN address: The LAN interface gets a global IPv6 address once directly after setting it to track the WAN interface but never again when the WAN interfaces's address changes. Looks like the tracking doesn't work. And then the router advertisements obviously cannot work either.

                          1 Reply Last reply Reply Quote 0
                          • ?
                            Guest
                            last edited by Feb 13, 2017, 5:06 PM

                            @moscato359:

                            Lets ignore dhcpv6 entirely for a moment.

                            I want to know:
                            why I can't get an ipv6 address from router advertisement on my box when I have tracking interface used, with unmanaged router advertisement

                            while

                            I can get an ipv6 address from router advertisement on my box when I have when I have static interface set to the same IP that would be used by tracking interface, with unmanaged router advertisement turned on

                            Don't know, but I set mine to assisted and have never had a problem. That way the client can decide what they want either way,

                            1 Reply Last reply Reply Quote 0
                            • ?
                              Guest
                              last edited by Feb 14, 2017, 8:00 AM Feb 13, 2017, 5:09 PM

                              @pFence:

                              This is what happens to my pfSense in this scenario with a nightly change of the WAN address: The LAN interface gets a global IPv6 address once directly after setting it to track the WAN interface but never again when the WAN interfaces's address changes. Looks like the tracking doesn't work. And then the router advertisements obviously cannot work either.

                              Why would the wan interface address change?

                              dhcp6c should be sending renew signals. What is your dhcp log showing with respect to dhcp6c?

                              This is what mine looks like, OK my dhcp6c is modified to give more info and the interface.inc is different but the process of renew is pretty much the same except it says renew. In fact with the newer dhcp6c and interface.inc the call to rc.newwanipv6 does not get called on renew and my system runs solidly as do many others.

                              Can you give some more information rather than just saying it does not work. Do you need to set 'Do not wait for a RA' or not, what is the refresh time of your ISP? If you run dhcp6c in debug mode it will give you all the information you need to decide if the problem is there or not.

                              If the lease is not being renewed then you have a problem, but the first thing to do is to find out what the renew time should be and look at the logs around that time and see what's happening.

                              1 Reply Last reply Reply Quote 0
                              • M
                                moscato359
                                last edited by Feb 14, 2017, 4:40 PM

                                @marjohn56:

                                Why would the wan interface address change?

                                Comcast claims I have a static ipv6, but I've seen the network ID change.
                                Why they change me occassionally, I don't know.
                                It's really annoying.

                                I don't want to risk a situation where the network ID changes, and then the ipv6 network goes down when I'm not there.

                                If I have a tracking interface, with working unmanaged RA, it'll be self healing.

                                With tracking interface:
                                If the network address changes, then the router advertisement changes, which then the local host ipv6 address changes.

                                It's a safety net.

                                1 Reply Last reply Reply Quote 0
                                • ?
                                  Guest
                                  last edited by Feb 14, 2017, 6:43 PM

                                  I've never known an ISP to change a static without advising the client first, it would cause absolute havoc.

                                  It sounds like you have a 'Sticky' static address, which can be made even more sticky by fixing the DUID and IAID, as the IAID does is fixed with pfSense ( at present ) that will not change. I suggest you set your DUID to fix it at its current value. You can also turn on 'Do not send release' which will prevent dhcp6c from sending a release signal, some ISP's will give you a new address/prefix if they get a release signal. However as Comcast say you are on a static  this should not happen either.

                                  I have a sticky dhcp6 address, through experimentation it's been found that if both the above are carried out, fixing the DUID and never sending a release signal then the prefix never changes, the only side note would be if pfsense went offline for several days, in which case I 'might' get a new prefix.

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    severach
                                    last edited by Feb 16, 2017, 12:36 AM Feb 15, 2017, 3:43 AM

                                    @moscato359:

                                    Comcast claims I have a static ipv6, but I've seen the network ID change.

                                    Google searches still show that Comcast does not support static ipv6 addressing. My ipv6 address changes every time they put in a new modem. My ipv4 address is unchanged across all the supplied modems.

                                    Don't expect a static any time soon. The 'static' problem is supposed to be taken care of by DNS when the router and DNS providers get it all working. "Services, DHCPv6 Server & RA, LAN, DHCPv6 Server, Dynamic DNS Display" is the new static in it's early stages.

                                    I don't want to risk a situation where the network ID changes, and then the ipv6 network goes down when I'm not there.

                                    If I have a tracking interface, with working unmanaged RA, it'll be self healing.

                                    No it won't. Try repowering the modem with a switch in between the router and the cable box so the router can't sense link down. The address won't change but connectivity will be lost.

                                    NATv6 FTW until this problem is fixed.

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      JKnott
                                      last edited by Feb 15, 2017, 3:51 AM

                                      You can also turn on 'Do not send release' which will prevent dhcp6c from sending a release signal, some ISP's will give you a new address/prefix if they get a release signal.

                                      Where is that setting?  I sometimes get a new prefix and in testing I could see pfSense send a DHCPv6 release after I disconnected and reconnected the WAN Ethernet cable.  My DUID has not changed since last May.  I'm on Rogers.

                                      PfSense running on Qotom mini PC
                                      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                      UniFi AC-Lite access point

                                      I haven't lost my mind. It's around here...somewhere...

                                      1 Reply Last reply Reply Quote 0
                                      • ?
                                        Guest
                                        last edited by Feb 15, 2017, 6:54 AM

                                        @JKnott:

                                        You can also turn on 'Do not send release' which will prevent dhcp6c from sending a release signal, some ISP's will give you a new address/prefix if they get a release signal.

                                        Where is that setting?  I sometimes get a new prefix and in testing I could see pfSense send a DHCPv6 release after I disconnected and reconnected the WAN Ethernet cable.  My DUID has not changed since last May.  I'm on Rogers.

                                        Interfaces/WAN/DHCP6 Client Configuration - Do not allow PD/Address release.

                                        DUID hold is in System/Advanced/Networking.

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          JKnott
                                          last edited by Feb 15, 2017, 11:14 AM

                                          I don't see that, even under Advanced Configuration.  I'm running pfSense 2.3.2_1.

                                          PfSense running on Qotom mini PC
                                          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                          UniFi AC-Lite access point

                                          I haven't lost my mind. It's around here...somewhere...

                                          1 Reply Last reply Reply Quote 0
                                          20 out of 48
                                          • First post
                                            20/48
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received