Navigation

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

    DHCPv6 Send DUID on WAN ?

    DHCP and DNS
    2
    4
    253
    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.
    • F
      FTLN46 last edited by

      Hello All,

      I'm a new PFSENSE user coming from EdgeRouter™ Lite on a gigabit fiber connection in France (SFR).

      At the moment I have DHCPv4 assigned from ISP on the wan interface and I have no issue to get a ipv4 lease using dhcp-class-identifier in send options.

      What I need to figure out how to do now is send dhcpv6 DUID in order to get IPV6 up an running, this was quite easy on the EdgeRouter using the following :

              dhcpv6-pd {
                  duid 00030001e45d51xxxxxx
                  pd 1 {
                      interface eth0 {
                          host-address ::1
                          prefix-id 1
                          service slaac
                      }
                      interface eth2 {
                          host-address ::1
                          prefix-id 2
                          service slaac
                      }
                      prefix-length /56
                  }
                  rapid-commit enable
      

      How can I configure this in PFSENSE ?

      Regards,
      FTLN46

      1 Reply Last reply Reply Quote 0
      • virgiliomi
        virgiliomi last edited by

        The DUID can be set in System > Advanced > Networking tab. You can choose the type of DUID to be sent and provide the necessary information.

        1 Reply Last reply Reply Quote 0
        • F
          FTLN46 last edited by FTLN46

          Thanks, this is working now and I can see the correct duid in packet capture on wan interface but still no prefix ipv6 connectivity.

          My ISP uses dhcpv6 and PD with /64.
          At the moment on my wan interface I can only see neighbour solicitation packets from pfsense and the occasional RA from the ISP, my pfsense does not seems to be requesting its prefix.
          DHCP logs show :

          Time Process Message
          01/11/2026 06:24 dhcpd DHCPREQUEST for 192.168.1.150 from 00:04:4b:5d:a4:13 via em1
          01/11/2026 06:24 dhcpd DHCPACK on 192.168.1.150 to 00:04:4b:5d:a4:13 via em1
          01/11/2026 06:28 dhcpd DHCPREQUEST for 192.168.1.176 from 64:16:8d:ba:80:af (SEP64168DBA80AF) via em1
          01/11/2026 06:28 dhcpd Wrote 7 leases to leases file.
          01/11/2026 06:28 dhcpd DHCPACK on 192.168.1.176 to 64:16:8d:ba:80:af (SEP64168DBA80AF) via em1
          01/11/2026 06:32 dhcpd Internet Systems Consortium DHCP Server 4.4.1
          01/11/2026 06:32 dhcpd Copyright 2004-2018 Internet Systems Consortium.
          01/11/2026 06:32 dhcpd All rights reserved.
          01/11/2026 06:32 dhcpd For info, please visit https://www.isc.org/software/dhcp/
          01/11/2026 06:32 dhcpd Config file: /etc/dhcpd.conf
          01/11/2026 06:32 dhcpd Database file: /var/db/dhcpd.leases
          01/11/2026 06:32 dhcpd Internet Systems Consortium DHCP Server 4.4.1
          01/11/2026 06:32 dhcpd PID file: /var/run/dhcpd.pid
          01/11/2026 06:32 dhcpd Copyright 2004-2018 Internet Systems Consortium.
          01/11/2026 06:32 dhcpd All rights reserved.
          01/11/2026 06:32 dhcpd For info, please visit https://www.isc.org/software/dhcp/
          01/11/2026 06:32 dhcpd Wrote 7 leases to leases file.
          01/11/2026 06:32 dhcpd Listening on BPF/em1/00:15:17:80:c6:e5/192.168.1.0/24
          01/11/2026 06:32 dhcpd Sending on BPF/em1/00:15:17:80:c6:e5/192.168.1.0/24
          01/11/2026 06:32 dhcpd Sending on Socket/fallback/fallback-net
          01/11/2026 06:32 dhcpd Server starting service.
          01/11/2026 06:32 dhcpd Internet Systems Consortium DHCP Server 4.4.1
          01/11/2026 06:32 dhcpd Copyright 2004-2018 Internet Systems Consortium.
          01/11/2026 06:32 dhcpd All rights reserved.
          01/11/2026 06:32 dhcpd For info, please visit https://www.isc.org/software/dhcp/
          01/11/2026 06:32 dhcpd Config file: /etc/dhcpd.conf
          01/11/2026 06:32 dhcpd Database file: /var/db/dhcpd.leases
          01/11/2026 06:32 dhcpd Internet Systems Consortium DHCP Server 4.4.1
          01/11/2026 06:32 dhcpd PID file: /var/run/dhcpd.pid
          01/11/2026 06:32 dhcpd Copyright 2004-2018 Internet Systems Consortium.
          01/11/2026 06:32 dhcpd All rights reserved.
          01/11/2026 06:32 dhcpd For info, please visit https://www.isc.org/software/dhcp/
          01/11/2026 06:32 dhcpd Wrote 7 leases to leases file.
          01/11/2026 06:32 dhcpd Listening on BPF/em1/00:15:17:80:c6:e5/192.168.1.0/24
          01/11/2026 06:32 dhcpd Sending on BPF/em1/00:15:17:80:c6:e5/192.168.1.0/24
          01/11/2026 06:32 dhcpd Sending on Socket/fallback/fallback-net
          01/11/2026 06:32 dhcpd Server starting service.
          01/11/2026 06:33 dhcpd Internet Systems Consortium DHCP Server 4.4.1
          01/11/2026 06:33 dhcpd Copyright 2004-2018 Internet Systems Consortium.
          01/11/2026 06:33 dhcpd All rights reserved.
          01/11/2026 06:33 dhcpd For info, please visit https://www.isc.org/software/dhcp/
          01/11/2026 06:33 dhcpd Config file: /etc/dhcpd.conf
          01/11/2026 06:33 dhcpd Database file: /var/db/dhcpd.leases
          01/11/2026 06:33 dhcpd Internet Systems Consortium DHCP Server 4.4.1
          01/11/2026 06:33 dhcpd PID file: /var/run/dhcpd.pid
          01/11/2026 06:33 dhcpd Copyright 2004-2018 Internet Systems Consortium.
          01/11/2026 06:33 dhcpd All rights reserved.
          01/11/2026 06:33 dhcpd For info, please visit https://www.isc.org/software/dhcp/
          01/11/2026 06:33 dhcpd Wrote 7 leases to leases file.
          01/11/2026 06:33 dhcpd Listening on BPF/em1/00:15:17:80:c6:e5/192.168.1.0/24
          01/11/2026 06:33 dhcpd Sending on BPF/em1/00:15:17:80:c6:e5/192.168.1.0/24
          01/11/2026 06:33 dhcpd Sending on Socket/fallback/fallback-net
          01/11/2026 06:33 dhcpd Server starting service.
          01/11/2026 06:37 dhcp6c extracted an existing DUID from /var/db/dhcp6c_duid: 00:03:00:01:e4:5d:51:be:ff:08
          01/11/2026 06:37 dhcp6c failed to open /usr/local/etc/dhcp6cctlkey: No such file or directory
          01/11/2026 06:37 dhcp6c failed initialize control message authentication
          01/11/2026 06:37 dhcp6c skip opening control port
          01/11/2026 06:37 dhcp6c <3>[interface] (9)
          01/11/2026 06:37 dhcp6c <5>[em0] (3)
          01/11/2026 06:37 dhcp6c <3>begin of closure [{] (1)
          01/11/2026 06:37 dhcp6c <3>[script] (6)
          01/11/2026 06:37 dhcp6c <3>["/var/etc/dhcp6c_wan_script.sh"] (31)
          01/11/2026 06:37 dhcp6c <3>end of sentence [;] (1)
          01/11/2026 06:37 dhcp6c <3>end of closure [}] (1)
          01/11/2026 06:37 dhcp6c <3>end of sentence [;] (1)
          01/11/2026 06:37 dhcp6c called
          01/11/2026 06:37 dhcp6c called
          01/11/2026 06:37 dhcp6c reset a timer on em0, state=INIT, timeo=0, retrans=891
          01/11/2026 06:37 dhcp6c Sending Solicit
          01/11/2026 06:37 dhcp6c a new XID (72b940) is generated
          01/11/2026 06:37 dhcp6c set client ID (len 10)
          01/11/2026 06:37 dhcp6c set elapsed time (len 2)
          01/11/2026 06:37 dhcp6c send solicit to ff02::1:2%em0
          01/11/2026 06:37 dhcp6c reset a timer on em0, state=SOLICIT, timeo=0, retrans=1091
          01/11/2026 06:37 dhcp6c receive advertise from fe80::230:88ff:fe04:806f%em0 on em0
          01/11/2026 06:37 dhcp6c get DHCP option client ID, len 10
          01/11/2026 06:37 dhcp6c DUID: 00:03:00:01:e4:5d:51:be:ff:08
          01/11/2026 06:37 dhcp6c get DHCP option server ID, len 14
          01/11/2026 06:37 dhcp6c DUID: 00:01:00:01:1c:52:fd:81:00:30:88:04:80:6f
          01/11/2026 06:37 dhcp6c get DHCP option DNS, len 32
          01/11/2026 06:37 dhcp6c server ID: 00:01:00:01:1c:52:fd:81:00:30:88:04:80:6f, pref=-1
          01/11/2026 06:37 dhcp6c reset timer for em0 to 0.978510
          01/11/2026 06:37 dhcp6c picked a server (ID: 00:01:00:01:1c:52:fd:81:00:30:88:04:80:6f)
          01/11/2026 06:37 dhcp6c Sending Request
          01/11/2026 06:37 dhcp6c a new XID (1787af) is generated
          01/11/2026 06:37 dhcp6c set client ID (len 10)
          01/11/2026 06:37 dhcp6c set server ID (len 14)
          01/11/2026 06:37 dhcp6c set elapsed time (len 2)
          01/11/2026 06:37 dhcp6c send request to ff02::1:2%em0
          01/11/2026 06:37 dhcp6c reset a timer on em0, state=REQUEST, timeo=0, retrans=909
          01/11/2026 06:37 dhcp6c Sending Request
          01/11/2026 06:37 dhcp6c set client ID (len 10)
          01/11/2026 06:37 dhcp6c set server ID (len 14)
          01/11/2026 06:37 dhcp6c set elapsed time (len 2)
          01/11/2026 06:37 dhcp6c send request to ff02::1:2%em0
          01/11/2026 06:37 dhcp6c reset a timer on em0, state=REQUEST, timeo=1, retrans=1737
          01/11/2026 06:37 dhcp6c Sending Request
          01/11/2026 06:37 dhcp6c set client ID (len 10)
          01/11/2026 06:37 dhcp6c set server ID (len 14)
          01/11/2026 06:37 dhcp6c set elapsed time (len 2)
          01/11/2026 06:37 dhcp6c send request to ff02::1:2%em0
          01/11/2026 06:37 dhcp6c reset a timer on em0, state=REQUEST, timeo=2, retrans=3518
          01/11/2026 06:37 dhcp6c Sending Request
          01/11/2026 06:37 dhcp6c set client ID (len 10)
          01/11/2026 06:37 dhcp6c set server ID (len 14)
          01/11/2026 06:37 dhcp6c set elapsed time (len 2)
          01/11/2026 06:37 dhcp6c send request to ff02::1:2%em0
          01/11/2026 06:37 dhcp6c reset a timer on em0, state=REQUEST, timeo=3, retrans=7121
          01/11/2026 06:38 dhcp6c Sending Request
          01/11/2026 06:38 dhcp6c set client ID (len 10)
          01/11/2026 06:38 dhcp6c set server ID (len 14)
          01/11/2026 06:38 dhcp6c set elapsed time (len 2)
          01/11/2026 06:38 dhcp6c send request to ff02::1:2%em0
          01/11/2026 06:38 dhcp6c reset a timer on em0, state=REQUEST, timeo=4, retrans=13926
          01/11/2026 06:38 dhcpd Internet Systems Consortium DHCP Server 4.4.1
          01/11/2026 06:38 dhcpd Copyright 2004-2018 Internet Systems Consortium.
          01/11/2026 06:38 dhcpd All rights reserved.
          01/11/2026 06:38 dhcpd For info, please visit https://www.isc.org/software/dhcp/
          01/11/2026 06:38 dhcpd Config file: /etc/dhcpd.conf
          01/11/2026 06:38 dhcpd Database file: /var/db/dhcpd.leases
          01/11/2026 06:38 dhcpd Internet Systems Consortium DHCP Server 4.4.1
          01/11/2026 06:38 dhcpd PID file: /var/run/dhcpd.pid
          01/11/2026 06:38 dhcpd Copyright 2004-2018 Internet Systems Consortium.
          01/11/2026 06:38 dhcpd All rights reserved.
          01/11/2026 06:38 dhcpd For info, please visit https://www.isc.org/software/dhcp/
          01/11/2026 06:38 dhcpd Wrote 7 leases to leases file.
          01/11/2026 06:38 dhcpd Listening on BPF/em1/00:15:17:80:c6:e5/192.168.1.0/24
          01/11/2026 06:38 dhcpd Sending on BPF/em1/00:15:17:80:c6:e5/192.168.1.0/24
          01/11/2026 06:38 dhcpd Sending on Socket/fallback/fallback-net
          01/11/2026 06:38 dhcpd Server starting service.
          01/11/2026 06:38 dhcp6c Sending Request
          01/11/2026 06:38 dhcp6c set client ID (len 10)
          01/11/2026 06:38 dhcp6c set server ID (len 14)
          01/11/2026 06:38 dhcp6c set elapsed time (len 2)
          01/11/2026 06:38 dhcp6c send request to ff02::1:2%em0
          01/11/2026 06:38 dhcp6c reset a timer on em0, state=REQUEST, timeo=5, retrans=28119
          01/11/2026 06:38 dhcp6c Sending Request
          01/11/2026 06:38 dhcp6c set client ID (len 10)
          01/11/2026 06:38 dhcp6c set server ID (len 14)
          01/11/2026 06:38 dhcp6c set elapsed time (len 2)
          01/11/2026 06:38 dhcp6c send request to ff02::1:2%em0
          01/11/2026 06:38 dhcp6c reset a timer on em0, state=REQUEST, timeo=6, retrans=29739
          01/11/2026 06:39 dhcp6c Sending Request
          01/11/2026 06:39 dhcp6c set client ID (len 10)
          01/11/2026 06:39 dhcp6c set server ID (len 14)
          01/11/2026 06:39 dhcp6c set elapsed time (len 2)
          01/11/2026 06:39 dhcp6c send request to ff02::1:2%em0
          01/11/2026 06:39 dhcp6c reset a timer on em0, state=REQUEST, timeo=7, retrans=28152
          01/11/2026 06:39 dhcp6c Sending Request
          01/11/2026 06:39 dhcp6c set client ID (len 10)
          01/11/2026 06:39 dhcp6c set server ID (len 14)
          01/11/2026 06:39 dhcp6c set elapsed time (len 2)
          01/11/2026 06:39 dhcp6c send request to ff02::1:2%em0
          01/11/2026 06:39 dhcp6c reset a timer on em0, state=REQUEST, timeo=8, retrans=30834
          01/11/2026 06:40 dhcp6c Sending Request
          01/11/2026 06:40 dhcp6c set client ID (len 10)
          01/11/2026 06:40 dhcp6c set server ID (len 14)
          01/11/2026 06:40 dhcp6c set elapsed time (len 2)
          01/11/2026 06:40 dhcp6c send request to ff02::1:2%em0
          01/11/2026 06:40 dhcp6c reset a timer on em0, state=REQUEST, timeo=9, retrans=27750
          01/11/2026 06:40 dhcp6c no responses were received
          01/11/2026 06:40 dhcp6c removing an event on em0, state=REQUEST
          01/11/2026 06:40 dhcp6c removing server (ID: 00:01:00:01:1c:52:fd:81:00:30:88:04:80:6f)
          01/11/2026 06:44 dhcpd DHCPREQUEST for 192.168.1.154 from 18:5e:0f:87:7f:df (EUFRPCPC09839V) via em1
          01/11/2026 06:44 dhcpd DHCPACK on 192.168.1.154 to 18:5e:0f:87:7f:df (EUFRPCPC09839V) via em1
          01/11/2026 06:47 dhcpd DHCPREQUEST for 192.168.1.156 from b0:7f:b9:3e:4e:15 (R7800) via em1
          01/11/2026 06:47 dhcpd DHCPACK on 192.168.1.156 to b0:7f:b9:3e:4e:15 (R7800) via em1
          01/11/2026 06:48 dhcpd DHCPREQUEST for 192.168.1.155 from 6c:5a:b5:4f:d6:60 (LF-S50G) via em1
          01/11/2026 06:48 dhcpd DHCPACK on 192.168.1.155 to 6c:5a:b5:4f:d6:60 (LF-S50G) via em1

          1 Reply Last reply Reply Quote 0
          • virgiliomi
            virgiliomi last edited by

            Do you have your LAN interface already configured to track WAN and use that /64 from your ISP? If so, not sure what the issue might be... might need someone with more DHCP6 knowledge to respond.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Products

            • Platform Overview
            • TNSR
            • pfSense
            • Appliances

            Services

            • Training
            • Professional Services

            Support

            • Subscription Plans
            • Contact Support
            • Product Lifecycle
            • Documentation

            News

            • Media Coverage
            • Press
            • Events

            Resources

            • Blog
            • FAQ
            • Find a Partner
            • Resource Library
            • Security Information

            Company

            • About Us
            • Careers
            • Partners
            • Contact Us
            • Legal
            Our Mission

            We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

            Subscribe to our Newsletter

            Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

            © 2021 Rubicon Communications, LLC | Privacy Policy