[Dnsmasq-discuss] Noisy DHCPv6 DHCPADVERTISE

Sam Edwards sam at samedwards.ca
Sun Jun 2 04:02:27 BST 2019


Hello,

I have dnsmasq set up to provide IPv6 RAs with the SLAAC bit set, and also serve select static DHCPv6 leases. Everything is set up and working correctly, but because only some devices have a static lease set up, and there is no DHCPv6 pool, my logs fill up with entries from devices that don't get a lease, reporting that there is no address available for them.

Jun  1 19:46:56 dnsmasq-dhcp[4798]: DHCPADVERTISE(switch0.5) 00:02:00:00:01:57:72:f6:40:68:e8:c6:6d:4e:8e:bd:fc:34:65:xx:xx:xx,no addresses available
Jun  1 19:47:33 dnsmasq-dhcp[4798]: DHCPADVERTISE(switch0.5) 00:01:00:01:1d:b7:03:73:3c:07:54:xx:xx:xx,no addresses available
Jun  1 19:48:12 dnsmasq-dhcp[4798]: DHCPADVERTISE(switch0.5) 00:01:00:01:21:4c:7f:01:08:66:98:xx:xx:xx,no addresses available
Jun  1 19:48:57 dnsmasq-dhcp[4798]: DHCPADVERTISE(switch0.5) 00:02:00:00:01:57:72:f6:40:68:e8:c6:6d:4e:8e:bd:fc:34:65:xx:xx:xx,no addresses available
Jun  1 19:49:24 dnsmasq-dhcp[4798]: DHCPADVERTISE(switch0.5) 00:01:00:01:1d:b7:03:73:3c:07:54:xx:xx:xx,no addresses available
Jun  1 19:50:04 dnsmasq-dhcp[4798]: DHCPADVERTISE(switch0.5) 00:01:00:01:21:4c:7f:01:08:66:98:xx:xx:xx,no addresses available
Jun  1 19:50:57 dnsmasq-dhcp[4798]: DHCPADVERTISE(switch0.5) 00:02:00:00:01:57:72:f6:40:68:e8:c6:6d:4e:8e:bd:fc:34:65:xx:xx:xx,no addresses available
Jun  1 19:51:15 dnsmasq-dhcp[4798]: DHCPADVERTISE(switch0.5) 00:01:00:01:1d:b7:03:73:3c:07:54:xx:xx:xx,no addresses available
Jun  1 19:51:17 dnsmasq-dhcp[4798]: DHCPADVERTISE(switch0.5) 00:01:00:01:23:38:5f:28:e0:33:8e:xx:xx:xx,no addresses available
Jun  1 19:51:54 dnsmasq-dhcp[4798]: DHCPADVERTISE(switch0.5) 00:01:00:01:21:4c:7f:01:08:66:98:xx:xx:xx,no addresses available

I see in the source, around line 899 of src/rfc3315.c that there is code to suppress these messages when dnsmasq is operating strictly in stateless IPv6 mode, but that of course doesn't apply to me.

The question I guess I'm really asking here then, is if the log entry that's emitted on line 905 of src/rfc3315.c shouldn't be a log6_quiet instead of a log6_packet, or if there's a feeling that this log line is important enough to be present at all times.

Here's the relevant part of my configuration for reference:

quiet-dhcp
quiet-dhcp6
quiet-ra
enable-ra
ra-param=*,mtu:tun0,high,60
dhcp-range=set:Clients-v6,::,constructor:switch0.5,static,slaac,64,24h
dhcp-option=tag:Clients-v6,option6:dns-server,[::]
dhcp-option=tag:Clients-v6,option6:domain-search,xxxxxxxx.xxx
dhcp-host=3c:07:54:xx:xx:xx,set:Clients-v6,[::5],caesar,caesar.xxxxxxxx.xxx
dhcp-host=id:00:01:00:01:20:69:f8:4b:b8:27:eb:xx:xx:xx,set:Clients-v6,[::7],prince,prince.xxxxxxxx.xxx
dhcp-host=id:00:03:00:01:00:1f:f3:xx:xx:xx,set:Clients-v6,[::9],kitchen.xxxxxxxx.xxx
dhcp-host=22:88:fe:xx:xx:xx,set:Clients-v6,[::235],adiutor,adiutor.xxxxxxxx.xxx
dhcp-host=8e:16:5c:xx:xx:xx,set:Clients-v6,[::91],peel,peel.xxxxxxxx.xxx
dhcp-host=7e:44:1c:xx:xx:xx,set:Clients-v6,[::126],solium,solium.xxxxxxxx.xxx
dhcp-host=fa:76:fc:xx:xx:xx,set:Clients-v6,[::222],fenestram,fenestram.xxxxxxxx.xxx
dhcp-host=id:00:01:00:01:23:f2:35:79:6c:0b:84:xx:xx:xx,set:Clients-v6,[::250],imbrem,imbrem.xxxxxxxx.xxx


Thanks,
Sam


More information about the Dnsmasq-discuss mailing list