LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 14 - DHCP Client Issue? (http://www.linuxquestions.org/questions/slackware-14/slackware-14-dhcp-client-issue-4175433911/)

zburns 10-24-2012 04:09 PM

Slackware 14 - DHCP Client Issue?
 
The following is some goo from /var/messages

For some reason on a cold or warm boot, DHCP attempts to get an address from the DHCP server, but fails. I can then log in as root and issue /etc/rc.d/rc.inet1 and it works getting an address

Never had any issues on the same hardware for 13.37 or current (before 14.0).

Can somebody help?

Zack



.
.
.
Oct 24 19:53:25 partnership kernel: [ 10.616259] Adding 19601844k swap on /dev/sda2. Priority:-1 extents:1 across:19601844k
Oct 24 19:53:25 partnership kernel: [ 10.727739] fuse init (API version 7.17)
Oct 24 19:53:25 partnership kernel: [ 11.375281] EXT4-fs (sda1): re-mounted. Opts: (null)
Oct 24 19:53:25 partnership kernel: [ 11.850738] ppdev: user-space parallel port driver
Oct 24 19:53:25 partnership kernel: [ 11.857427] lp: driver loaded but no devices found
Oct 24 19:53:26 partnership logger: /etc/rc.d/rc.inet1: /sbin/ifconfig lo 127.0.0.1
Oct 24 19:53:26 partnership logger: /etc/rc.d/rc.inet1: /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
Oct 24 19:53:26 partnership logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -t 10 eth0
Oct 24 19:53:26 partnership dhcpcd[1741]: version 5.5.6 starting
Oct 24 19:53:27 partnership kernel: [ 18.219550] r8169 0000:03:00.0: eth0: link down
Oct 24 19:53:27 partnership kernel: [ 18.219561] r8169 0000:03:00.0: eth0: link down
Oct 24 19:53:27 partnership dhcpcd[1741]: eth0: waiting for carrier
Oct 24 19:53:46 partnership kernel: [ 38.039898] NET: Registered protocol family 10
Oct 24 19:53:46 partnership kernel: [ 38.041225] ADDRCONF(NETDEV_UP): eth0: link is not ready
Oct 24 19:53:46 partnership sshd[1840]: Server listening on 0.0.0.0 port 2222.
Oct 24 19:53:46 partnership sshd[1840]: Server listening on :: port 2222.
Oct 24 19:53:47 partnership acpid: starting up with proc fs
Oct 24 19:53:47 partnership acpid: 1 rule loaded
Oct 24 19:53:47 partnership acpid: waiting for events: event logging is off
Oct 24 19:53:49 partnership kernel: [ 40.652520] r8169 0000:03:00.0: eth0: link up
Oct 24 19:53:49 partnership kernel: [ 40.652915] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Oct 24 19:53:50 partnership dbus[1860]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
Oct 24 19:53:53 partnership polkitd[1933]: started daemon version 0.105 using authority implementation `local' version `0.105'
Oct 24 19:53:53 partnership dbus[1860]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Oct 24 19:53:57 partnership /usr/sbin/gpm[2152]: *** info [startup.c(95)]:
Oct 24 19:53:57 partnership /usr/sbin/gpm[2152]: Started gpm successfully. Entered daemon mode.
Oct 24 19:53:57 partnership /usr/sbin/gpm[2152]: *** info [mice.c(1766)]:
Oct 24 19:53:57 partnership /usr/sbin/gpm[2152]: imps2: Auto-detected intellimouse PS/2
Oct 24 19:54:23 partnership logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -t 10 eth0
Oct 24 19:54:23 partnership dhcpcd[2216]: version 5.5.6 starting
Oct 24 19:54:23 partnership dhcpcd[2216]: eth0: sending IPv6 Router Solicitation
Oct 24 19:54:23 partnership dhcpcd[2216]: eth0: broadcasting for a lease
Oct 24 19:54:23 partnership dhcpcd[2216]: eth0: offered 192.168.1.134 from 192.168.1.26
Oct 24 19:54:23 partnership dhcpcd[2216]: eth0: acknowledged 192.168.1.134 from 192.168.1.26
Oct 24 19:54:23 partnership dhcpcd[2216]: eth0: checking for 192.168.1.134
Oct 24 19:54:27 partnership dhcpcd[2216]: eth0: sending IPv6 Router Solicitation
Oct 24 19:54:28 partnership dhcpcd[2216]: eth0: leased 192.168.1.134 for 518400 seconds
Oct 24 19:54:28 partnership dhcpcd[2216]: forked to background, child pid 2254
Oct 24 19:54:31 partnership dhcpcd[2254]: eth0: sending IPv6 Router Solicitation
Oct 24 19:54:35 partnership dhcpcd[2254]: eth0: sending IPv6 Router Solicitation
Oct 24 19:54:35 partnership dhcpcd[2254]: eth0: no IPv6 Routers available
Oct 24 19:55:20 partnership acpid: client connected from 2335[0:100]
Oct 24 19:55:20 partnership acpid: 1 client rule loaded
.
.
.

headrift 10-24-2012 04:23 PM

When dhcpcd first runs, eth0 isn't up yet. The interface isn't up for several more seconds, so by the time you log in and re-run dhcpcd, eth0 is up and can get an address.

That's what's going on, but I'm not sure how to fix it, I haven't really used Slackware for years, sorry. Maybe put in a "sleep 30" line into your /etc/rc.d/rc.inet1 file right above the line running dhcpcd?

clifford227 10-24-2012 06:34 PM

I had a smilar problem with Slack 12.2, and then again this time with Slack 14.

I add this to my '/etc/rc.d/rc.local' file:

rm /var/run/dhcpcd-wlan0.pid
sleep 2
/sbin/dhcpcd wlan0


All times are GMT -5. The time now is 03:14 PM.