Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Problems with dhcpcd



Hi all,
I've installed 10.99.9 from about a day ago onto an old Raspberry Pi and I just can't get it to correctly set its hostname from DHCP. (I have removed the hostname=rpi from /etc/rc.conf).

What I have discovered so far is that if I manually run "dhcpcd -d" then no hostname gets set. If I run "dhcpcd -d -B" then the hostname does get set. This doesn't make sense.

Here are the logs from the failed run (console and /var/log/messages). Dhcpcd doesn't seem to be running the hooks for the "CARRIER", which is something that does happen with dhcpcd -d -B". Interestingly, the message "executing: /libexec/dhcpcd-run-hooks ..." is not logged to syslog by either invocation of dhcpcd.

Any advice would be welcome.

Cheers,
Lloyd

---------------->8-----------
dhcpcd-10.0.2 starting
chrooting as _dhcpcd to /var/chroot/dhcpcd
sandbox: posix resource limited
spawned manager process on PID 330
spawned privileged proxy on PID 331
spawned network proxy on PID 332
spawned controller proxy on PID 333
DUID 00:01:00:01:2c:a8:c9:27:b8:27:eb:d8:e5:08
lo0: ignoring due to interface type and no config
usmsc0: executing: /libexec/dhcpcd-run-hooks PREINIT
forked to background, child pid 330
no interfaces have a carrier

Sep 30 22:15:28  dhcpcd[325]: dhcpcd-10.0.2 starting
Sep 30 22:15:28  dhcpcd[331]: DUID 00:01:00:01:2c:a8:c9:27:b8:27:eb:d8:e5:08
Sep 30 22:15:29  dhcpcd[331]: no interfaces have a carrier
Sep 30 22:15:29  dhcpcd[331]: usmsc0: waiting for carrier
Sep 30 22:15:29  dhcpcd[331]: usmsc0: carrier acquired
Sep 30 22:15:29  dhcpcd[331]: usmsc0: IAID eb:d8:e5:08
Sep 30 22:15:29 dhcpcd[331]: usmsc0: adding address fe80::ba27:ebff:fed8:e508
Sep 30 22:15:29  dhcpcd[331]: usmsc0: soliciting an IPv6 router
Sep 30 22:15:30  dhcpcd[331]: usmsc0: carrier lost - roaming
Sep 30 22:15:37  dhcpcd[331]: usmsc0: carrier acquired
Sep 30 22:15:40  dhcpcd[331]: usmsc0: IAID eb:d8:e5:08
Sep 30 22:15:40 dhcpcd[331]: usmsc0: Router Advertisement from fe80::20d:b9ff:fe50:fe8c Sep 30 22:15:40 dhcpcd[331]: usmsc0: adding address 2406:1e00:b410:3501:ba27:ebff:fed8:e508/64 Sep 30 22:15:40 dhcpcd[331]: usmsc0: adding route to 2406:1e00:b410:3501::/64 Sep 30 22:15:40 dhcpcd[331]: usmsc0: adding default route via fe80::20d:b9ff:fe50:fe8c
Sep 30 22:15:40  dhcpcd[331]: usmsc0: rebinding lease of 10.0.1.53
Sep 30 22:15:46  dhcpcd[331]: usmsc0: leased 10.0.1.53 for 86400 seconds
Sep 30 22:15:52  dhcpcd[331]: usmsc0: adding route to 10.0.1.0/24
Sep 30 22:15:52  dhcpcd[331]: usmsc0: adding default route via 10.0.1.1


Home | Main Index | Thread Index | Old Index