dhcpcd error on startup - "": interface not found or invalid
Jyothsna Rajan
Thu Jun 13 23:13:58 2013
Hi,
i am using version 5.2.12 of dhcpcd and run into this error every time dhcpcd is restarted. Here is dump of the first few error messages right after start:
Apr 12 22:13:16 hgfedcba dhcpcd[3526]: version 5.2.12 starting
Apr 12 22:13:16 hgfedcba dhcpcd[3526]: "": interface not found or invalid
Apr 12 22:13:16 hgfedcba dhcpcd[3526]: eth0: broadcasting for a lease
Apr 12 22:13:17 hgfedcba dhcpcd[3526]: eth0: offered 172.20.100.212 from 172.20.1.20
Apr 12 22:13:17 hgfedcba dhcpcd[3526]: eth0: acknowledged 172.20.100.212 from 172.20.1.20
Apr 12 22:13:17 hgfedcba dhcpcd[3526]: eth0: checking for 172.20.100.212
Apr 12 22:13:22 hgfedcba dhcpcd[3526]: eth0: leased 172.20.100.212 for 600 seconds
Apr 12 22:13:22 hgfedcba avahi-daemon[1069]: Joining mDNS multicast group on interface eth0.IPv4 with address 172.20.100.212.
Apr 12 22:13:22 hgfedcba avahi-daemon[1069]: New relevant interface eth0.IPv4 for mDNS.
Apr 12 22:13:22 hgfedcba avahi-daemon[1069]: Registering new address record for 172.20.100.212 on eth0.IPv4.
Apr 12 22:13:22 hgfedcba dhcpcd[3526]: forked to background, child pid 3553
Apr 12 22:13:24 hgfedcba ntpd[1045]: Listen normally on 11 eth0 172.20.100.212 UDP 123
Apr 12 22:13:24 hgfedcba ntpd[1045]: new interface(s) found: waking up resolver
The command being executed ( from ps aux | grep dhcpcd) is:
/sbin/dhcpcd -q --reboot 0 --hostname "" -t 16 eth0
I use the hostname option so that I can send a hostname along with the DHCP request. I did a wireshark capture and found that the hostname is being sent in the DHCP request , but it is not an empty string as I would expect, but a default hostname that I have specified in /etc/rc.conf.
If I remove the empty string after the hostname, i.e. execute
/sbin/dhcpcd -q --reboot 0 --hostname -t 16 eth0
the error message goes away. I do not observe any noticeable change in system behaviour.
If I add a hostname string, i.e. execute
/sbin/dhcpcd -q --reboot 0 --hostname "AAAABC" -t 16 eth0
I get the error message
Apr 12 00:41:58 TesiraServer91101311 dhcpcd[25095]: AAAABC: interface not found or invalid
If I completely remove the hostname option, then DHCP request does not include a hostname.
From the error message text, it appears as if the string specified after hostname is being interpreted as the interface name. Per the spec, hostname can be an empty string. What am I doing wrong here?
Thanks for your help.
JR
Archive administrator: postmaster@marples.name