DHCP problems
-
hello.
some time ago i bought an SG1100, and so far it worked ok. i used fixed (manually assigned) IP addresses in the 192.168 range, so i didn't even try to use the DHCP server.
then, last week, i bought a device where i can't manually assign an IP address (a sonos speaker), so now i need the DHCP server. problem is, i can't get it to work.
in the DHCP logs i find LOADS of entries like these:dhcp6c 43225 Sending Solicitimmediately (within the same second) followed by
dhcp6c 43225 transmit failed: Permission deniedthis happens roughly every 2 minutes. but i've also seen other errors like
no port configured to listen for DHCP trafficor something to that effect. i don't remember the exact words.
what's going on here, and what can i do about it?
PS. the sonos speaker appears in the devices list in unifi with an IP address in the 169.254 range but i want it in the 192.168 range, like all my other devices.
-
@harry747 said in DHCP problems:
dhcp6c
hey there,
WHAT exactly did you switch on?
WHAT exactly do you need?
Looks like you somehow enabled the dhcp6 server function...but my guess is you want for that interface a dhcp4 server active for that diveice...so: do you need IPv6 or IPv4? The quoted error points in the direction I mentioned...it sends dhcp6 out.So: what have you configured? What was your goal?
-
@the-other i turned on the IPv4 DHCP server and i got some error messages, so i turned on the IPv6 DHCP server too. (it was on before this whole thing started).
i just turned the IPv6 DHCP server off again. let's see if that causes any problems...
my goal was to get the sonos speaker to work.
after turning the IPv6 DHCP server off, i got the following log entries:Oct 4 18:15:24 kea-dhcp4 98495 ERROR [kea-dhcp4.dhcp4.0x3df432c12000] DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file '/usr/local/etc/kea/kea-dhcp4.conf': option data does not match option definition (space: dhcp4, code: 42): Failed to convert string to address 'ptbtime1.ptb.de': Invalid argument (/usr/local/etc/kea/kea-dhcp4.conf:81:33) Oct 4 18:15:24 kea-dhcp4 98495 ERROR [kea-dhcp4.dhcp4.0x3df432c12000] DHCP4_CONFIG_LOAD_FAIL configuration error using file: /usr/local/etc/kea/kea-dhcp4.conf, reason: option data does not match option definition (space: dhcp4, code: 42): Failed to convert string to address 'ptbtime1.ptb.de': Invalid argument (/usr/local/etc/kea/kea-dhcp4.conf:81:33) Oct 4 18:15:24 kea-dhcp4 98495 ERROR [kea-dhcp4.dhcp4.0x3df432c12000] DHCP4_PARSER_FAIL failed to create or run parser for configuration element subnet4: option data does not match option definition (space: dhcp4, code: 42): Failed to convert string to address 'ptbtime1.ptb.de': Invalid argument (/usr/local/etc/kea/kea-dhcp4.conf:81:33) Oct 4 18:15:24 kea-dhcp4 98495 INFO [kea-dhcp4.dhcpsrv.0x3df432c12000] DHCPSRV_CFGMGR_NEW_SUBNET4 a new subnet has been added to configuration: 192.168.1.0/24 with params: valid-lifetime=7200 Oct 4 18:15:24 kea-dhcp4 98495 INFO [kea-dhcp4.hooks.0x3df432c12000] HOOKS_LIBRARY_CLOSED hooks library /usr/local/lib/kea/hooks/libdhcp_lease_cmds.so successfully closed Oct 4 18:15:24 kea-dhcp4 98495 INFO [kea-dhcp4.dhcpsrv.0x3df432c12000] DHCPSRV_CFGMGR_SOCKET_TYPE_DEFAULT "dhcp-socket-type" not specified , using default socket type raw Oct 4 18:15:24 kea-dhcp4 98495 INFO [kea-dhcp4.dhcpsrv.0x3df432c12000] DHCPSRV_CFGMGR_ADD_IFACE listening on interface mvneta0.4091 Oct 4 18:15:24 kea-dhcp4 98495 WARN [kea-dhcp4.dhcp4.0x3df432c12000] DHCP4_RESERVATIONS_LOOKUP_FIRST_ENABLED Multi-threading is enabled and host reservations lookup is always performed first. Oct 4 18:15:24 kea-dhcp4 98495 WARN [kea-dhcp4.dhcpsrv.0x3df432c12000] DHCPSRV_MT_DISABLED_QUEUE_CONTROL disabling dhcp queue control when multi-threading is enabled. Oct 4 18:15:24 kea-dhcp4 98495 INFO [kea-dhcp4.hosts.0x3df432c12000] HOSTS_BACKENDS_REGISTERED the following host backend types are available: -
@harry747 for NTP servers you can't add hostnames but only IPs.
On the first line you find the following "Failed to convert string to address 'ptbtime1.ptb.de'" and there is the reason. If you try addition it.
-
@patient0 i have no idea how or why, but replacing that domain name with the IP address worked. IOW, problem solved. thanks.
-
@harry747 KEA does not accept hostnames, only IPs for NTP servers. If you add NTP servers in the GUI then the GUI should give an error and refuse to save if you entered a name. But if you add it as a 'Custom Configuration' then the GUI can check it and KEA will fail it's config file syntax check fails.
-
@harry747 said in DHCP problems:
can't manually assign an IP address (a sonos speaker),
Your Sonos lives on your pfSense LAN.
I presume you want it to assign an IPv4 (lease actually) with the DHCP IPv4 LAN server.This :
dhcp6c 43225 Sending Solicit
'dhcp6c' is a DHCP client process which operates only on your pfSense WAN interface. It is used to obtain a "IPv6 lease" (and probably at least one prefix ) on the pfSense WAN side from an upstream, ISP device or connection. Your ISP must support IPv6.
IPv6 business on the WAN side has nothing to do with IPv4 on the LAN side.A solution to shut up 'dhcp6c' : set "IPv6 Configuration Type" to None.

@harry747 said in DHCP problems:
the sonos speaker appears in the devices list in unifi with an IP address in the 169.254
That "169.254" is very special.
When you find a devce that uses "169.254.a.b" as it IP address, the you know its DHCP client couldn't obtain a DHCP v4 Lease from a DHCP server. So, after a while, it auto assigns itself this IP "169.254".
I presume all pieces fall into place now ;) -
@patient0 said in DHCP problems:
KEA does not accept hostnames
Just to be clear neither does ISC - pfsense converted it for you in that setup. NTP servers in dhcp is only IP. And also btw its pretty pointless to be honest - I have yet to see a dhcp client actually use it to be honest.
https://kb.isc.org/docs/isc-dhcp-44-manual-pages-dhcp-options
option ntp-servers ip-address [, ip-address... ]; This option specifies a list of IP addresses indicating NTP (RFC 5905) servers available to the client. Servers should be listed in order of preference.Where it would be very handy is iot type devices - but nope have never seen one in the wild actually leverage this.. They love to use their hard coded ntp - and is it set to the vendor specific ntp that should be used? This is rare to be honest (pfsense does use their vendor specific ntp as default). But what I have seen is it set to country specific ntp when the device is sold in a different country. Vendors are suppose to register their specific ntp servers for use in their product.
https://www.ntppool.org/en/vendors.html
Get your vendor zone To allow you to use the pool as the default time service in your application, we will set you up with special hostnames, for example 0.vendor.pool.ntp.org, 1.vendor.pool.ntp.org, 2.vendor.pool.ntp.org and 3.vendor.pool.ntp.org. You must absolutely not use the default pool.ntp.org zone names as the default configuration in your application or appliance.But if you happen to have a dhcp client that would actually leverage what is handed out by dhcp - the dhcp server will hand out specific IP(s), not a fqdn
edit: example, so my roomba (irobot) doing it correctly, while the switchbot doing it wrong. Not only one of their smart plugs, but also their hub.

More iot stuff doing it wrong

emporia is a little device that logs my electric use from my smart meter (slick little device btw). kp401 is a tplink wifi smart plug (turn power on off little device - allows me to turn my outdoor water fountain on off via alexa for example). Govee - outdoor lighting. And Onkyo is my avr.
If I looked deeper into my dns logs sure would find other bad examples, and much less proper use.
Other pet peeve of mine - is ok irobot you are using vendor specific, great - but why and hell are you asking for AAAA when you have no viable ipv6 address that could ever in a million years talk to an external ntp server over ipv6 (I have no ipv6 setup on that vlan).. And also what your asking for is not correct, since ipv6 ntp servers are suppose to only be 2. not 0 or 1 or 3
Please also note that the system currently only provides IPv6 addresses for a zone in addition IPv4 addresses if the zone name is prefixed by the number 2, e.g. 2.pool.ntp.org (provided there are any IPv6 NTP servers in the respective zone). Zone names not prefixed by a number, or prefixed with any of 0, 1 or 3, currently provide IPv4 addresses only.;; QUESTION SECTION: ;1.irobot.pool.ntp.org. IN AAAA ;; AUTHORITY SECTION: pool.ntp.org. 1300 IN SOA e.ntpns.org. hostmaster.pool.ntp.org. 1791278848 5400 5400 1209600 3600So not only are you never going to be able to talk to this AAAA address even if you got one since you have no IPv6 address other than link-local. What your asking is never going to provide one even if you could talk to it. So no big deal right - just a dns query.. But how many millions and millions of irobot devices are there.. All just pointless.
-
@johnpoz said in DHCP problems:
Just to be clear neither does ISC - pfsense converted it for you in that setup
I see, I suspected it but didn't check
Vendors are suppose to register their specific ntp servers for use in their product.
If you browse the ntp pool forum, you see getting a vendor zone is a very manual and lengthy process which depends on the founder (user ask) of the project alone. And it can take years not to get it. Oracle is trying to get a vendor zone since 2018 (!!!, https://community.ntppool.org/t/oracle-linux-vendor-zone-request-for-a-clear-decision-and-a-usable-vendor-zone-process/4503).
-
@patient0 interesting.. But Oracle - jfc why would they not run their own time servers? Pretty sure they are like one of the top 50 companies on the planet.. They can't run their own time servers?
It would be interesting if someone from pfsense/netgate could chime in on their experience with getting their vendor zone.
How many instances of oracle linux are there. 10 million, 100 million? More? Curious who chimed in to just create their own cname and point it to the pool.. That would clearly be violation of the who idea of the vendor specific zones.
Sure missing part of the story for sure. Interesting read - thanks for the link. I know back in the day they use to point to the redhat vendor zone. But they don't even use the default ntp client anymore, they use chrony. Not sure where it defaults to - have not played with that linux distro in years and years.
My take would be with how large they are they should just run their own. Clearly there has been some sort of misunderstanding/disagreement between them.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy