dhcpcd-discuss

Re: dhcpcd-gtk thinks dhcpcd is down

Roy Marples

Tue Sep 18 08:41:38 2012

Hi William

On 18/09/2012 0:25, William MacKay wrote:
I'm using wpa_supplicant and dhcpcd and they both work fine. I can
connect to my wireless network and get an IP address. But when I start dhcpcd-gtk, it tells me dhcpcd is down, even though it is running. Its icon in the indicator panel displays a red X. Do you have any ideas on
how I could get it to work?

I'm using Debian wheezy (testing) with dhcpcd 5.5.6, dhcpcd-dbus
0.6.0, and dhcpcd-gtk 0.6.0. Here is some console output that may be
relevant:

foobaz@balrog ~> ls -lh /var/run/wpa_supplicant
total 0
srwxrwx--- 1 root netdev 0 Sep 17 14:26 wlan0=

foobaz@balrog ~> ps aux | grep -i dhc
root 3824 0.0 0.0 8396 340 ? Ss 14:27 0:00 dhcpcd wlan0
root      3965  0.0  0.0  10664   964 ?        S    14:29   0:00
/usr/lib/dhcpcd-dbus/dhcpcd-dbus
foobaz 6758 0.0 0.0 7816 912 pts/1 S+ 16:14 0:00 grep -i dhc

foobaz@balrog ~> /sbin/ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr e0:ca:94:4c:3f:a4
inet addr:192.168.55.47 Bcast:192.168.55.255 Mask:255.255.255.0 inet6 addr: 2001:470:1f05:67b:e2ca:94ff:fe4c:3fa4/64 Scope:Global
          inet6 addr: fe80::e2ca:94ff:fe4c:3fa4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:76324 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41304 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:88986385 (84.8 MiB)  TX bytes:5990654 (5.7 MiB)

foobaz@balrog ~> dhcpcd-gtk
** Message: Connecting ...
** Message: Connected to dhcpcd-dbus-0.6.0
** Message: Status changed to down
** Message: dhcpcd not running

From your process list, it's because dhcpcd is running per interface. In this case, wlan0. For dhcpcd-dbus and dhcpcd-gtk to work, dhcpcd needs to be run as a single daemon for all interfaces. So just simply set dhcpcd to start in your runlevel and remove any DHCP configuration from the Debian network config.

Thanks

Roy

References:
dhcpcd-gtk thinks dhcpcd is downWilliam MacKay
Archive administrator: postmaster@marples.name