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

    DHCP V6 static addresses

    Scheduled Pinned Locked Moved IPv6
    2 Posts 1 Posters 4.5k 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.
    • W
      wallabybob
      last edited by

      I attempted to add a DHCP V6 static IP address

      Services: DHCPv6: Edit static mapping   
      Static DHCPv6 Mapping
      MAC address 00:03:47:81:cd:f7
      IPv6 address 2001:470:1f05:463::211
      Hostname bunyip
      Description

      The web GUI box for entering the IPv6 address is far too small to display a "typical" address.

      There are some problems with the generated dhcpdv6.conf:

      
      # more /var/dhcpd/etc/dhcpdv6.conf
      
      option domain-name "example.org";
      option ldap-server code 95 = text;
      option domain-search-list code 119 = text;
      
      default-lease-time 7200;
      max-lease-time 86400;
      log-facility local7;
      ddns-update-style none;
      one-lease-per-client true;
      deny duplicates;
      ping-check true;
      authoritative;
      subnet6 2001:470:1f05:14b3::/64 {
              range6 2001:470:1f05:14b3::8 2001:470:1f05:14b3::16;
              # Not supported in IPv6; option dhcp6.routers 2001:470:1f05:14b3::1;
              option dhcp6.name-servers 2001:470:1f05:14b3::1;
      
      }host s_lan_0 {
              hardware ethernet 00:03:47:81:cd:f7;
              option host-name bunyip;
      }
      # 
      
      

      1. The assigned IP address doesn't appear in the file.
      2. On startup, dhcpd reports:

      
      Mar  8 12:06:08 pfsense dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
      Mar  8 12:06:08 pfsense dhcpd: Copyright 2004-2010 Internet Systems Consortium.
      Mar  8 12:06:08 pfsense dhcpd: All rights reserved.
      Mar  8 12:06:08 pfsense dhcpd: For info, please visit https://www.isc.org/software/dhcp/
      Mar  8 12:06:10 pfsense dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
      Mar  8 12:06:10 pfsense dhcpd: Copyright 2004-2010 Internet Systems Consortium.
      Mar  8 12:06:10 pfsense dhcpd: All rights reserved.
      Mar  8 12:06:10 pfsense dhcpd: For info, please visit https://www.isc.org/software/dhcp/
      Mar  8 12:06:10 pfsense dhcpd: /etc/dhcpdv6.conf line 20: You can not use a hardware parameter for DHCPv6 hosts. Use the host-identifier parameter instead.
      Mar  8 12:06:10 pfsense dhcpd: /etc/dhcpdv6.conf line 20: You can not use a hardware parameter for DHCPv6 hosts. Use the host-identifier parameter instead.
      Mar  8 12:06:10 pfsense dhcpd: 	hardware 
      Mar  8 12:06:10 pfsense dhcpd: 	hardware 
      Mar  8 12:06:10 pfsense dhcpd:          ^
      Mar  8 12:06:10 pfsense dhcpd:          ^
      Mar  8 12:06:10 pfsense dhcpd: Configuration file errors encountered -- exiting
      Mar  8 12:06:10 pfsense dhcpd: Configuration file errors encountered -- exiting
      Mar  8 12:06:10 pfsense dhcpd: 
      Mar  8 12:06:10 pfsense dhcpd: 
      Mar  8 12:06:10 pfsense dhcpd: If you did not get this software from ftp.isc.org, please
      Mar  8 12:06:10 pfsense dhcpd: If you did not get this software from ftp.isc.org, please
      Mar  8 12:06:10 pfsense dhcpd: get the latest from ftp.isc.org and install that before
      Mar  8 12:06:10 pfsense dhcpd: get the latest from ftp.isc.org and install that before
      Mar  8 12:06:10 pfsense dhcpd: requesting help.
      Mar  8 12:06:10 pfsense dhcpd: requesting help.
      Mar  8 12:06:10 pfsense dhcpd: 
      Mar  8 12:06:10 pfsense dhcpd: 
      Mar  8 12:06:10 pfsense dhcpd: If you did get this software from ftp.isc.org and have not
      Mar  8 12:06:10 pfsense dhcpd: If you did get this software from ftp.isc.org and have not
      Mar  8 12:06:10 pfsense dhcpd: yet read the README, please read it before requesting help.
      Mar  8 12:06:10 pfsense dhcpd: yet read the README, please read it before requesting help.
      Mar  8 12:06:10 pfsense dhcpd: If you intend to request help from the dhcp-server@isc.org
      Mar  8 12:06:10 pfsense dhcpd: If you intend to request help from the dhcp-server@isc.org
      Mar  8 12:06:10 pfsense dhcpd: mailing list, please read the section on the README about
      Mar  8 12:06:10 pfsense dhcpd: mailing list, please read the section on the README about
      Mar  8 12:06:10 pfsense dhcpd: submitting bug reports and requests for help.
      Mar  8 12:06:10 pfsense dhcpd: submitting bug reports and requests for help.
      Mar  8 12:06:10 pfsense dhcpd: 
      Mar  8 12:06:10 pfsense dhcpd: 
      Mar  8 12:06:10 pfsense dhcpd: Please do not under any circumstances send requests for
      Mar  8 12:06:10 pfsense dhcpd: Please do not under any circumstances send requests for
      Mar  8 12:06:10 pfsense dhcpd: help directly to the authors of this software - please
      Mar  8 12:06:10 pfsense dhcpd: help directly to the authors of this software - please
      Mar  8 12:06:10 pfsense dhcpd: send them to the appropriate mailing list as described in
      Mar  8 12:06:10 pfsense dhcpd: send them to the appropriate mailing list as described in
      Mar  8 12:06:10 pfsense dhcpd: the README file.
      Mar  8 12:06:10 pfsense dhcpd: the README file.
      Mar  8 12:06:10 pfsense dhcpd: 
      Mar  8 12:06:10 pfsense dhcpd: 
      Mar  8 12:06:10 pfsense dhcpd: exiting.
      Mar  8 12:06:10 pfsense dhcpd: exiting.
      Mar  8 12:06:10 pfsense php: : The command '/usr/local/sbin/dhcpd -6 -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpdv6.conf bridge0' returned exit code '1', the output was 'Internet Systems Consortium DHCP Server 4.1.1-P1 Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /etc/dhcpdv6.conf line 20: You can not use a hardware parameter for DHCPv6 hosts. Use the host-identifier parameter instead. 	hardware          ^ Configuration file errors encountered -- exiting  If you did not get this software from ftp.isc.org, please get the latest from ftp.isc.org and install that before requesting help.  If you did get this software from ftp.isc.org and have not yet read the README, please read it before requesting help. If you intend to request help from the dhcp-server@isc.org mailing list, please read the section on the README about submitting bug reports and requests for help.  Please do not under any circumstances send requests for 
      Mar  8 12:06:10 pfsense dnsmasq[61568]: started, version 2.55 cachesize 10000
      
      

      After more than half an hour of searching I have not been able to find an example of the use of the host-identifier parameter instead of the hardware parameter.

      My attempts to delete the static entry to recover a working dhcpv6 also fared poorly: On confirming I wanted to delete the static entry the browser was went to the DHCP (V4) Server page. On going to the DHCPV6 server page i was informed there were pending changes so I applied them but the resultant page still showed the static entry and /cf/conf/config.xml included the static entry:

      
                              <staticmap><mac>00:03:47:81:cd:f7</mac>
                                      <ipaddrv6>2001:470:1f05:4b3::211</ipaddrv6>
                                      <hostname>bunyip</hostname></staticmap> 
      
      

      At this stage I am far more interested in getting static DHCPV6 working than in getting deletion of static entries working.

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        It appears there is no support in DHCP v6 for static IP address assignments based on "raw" MAC address but assignments can be based on various forms of UIDs, some of which can be derived from a MAC address.

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