I had been playing around with wpa_supplicant, iwconfig and dhcpcd to get an x-less internet connection. However, this seems to have broken my Internet connection. I have reverted my wpa_supplicant settings, but every time I change networks, I must manually run
$ sudo /sbin/dhcpcd wlan0
in order to get a connection.
Unfortunately, this sometimes results in
err, wlan0: timed out
warn, wlan0: using IPV4LL address ###.###.###.###
Using KDE 4.6 on openSUSE 11.4 32-bit. I want KNetworkManager to just automatically work.
$ ping google.com
ping: unknown host google.com
Pinging my other computer:
$ ping 192.168.1.101
connect: Network is unreachable
$ sudo ifconfig
eth0 Link encap:Ethernet HWaddr 00:1B:24:50:F0:F5
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:41 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:127 errors:0 dropped:0 overruns:0 frame:0
TX packets:127 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10261 (10.0 Kb) TX bytes:10261 (10.0 Kb)
wlan0 Link encap:Ethernet HWaddr 00:13:E8:3C:CE:65
inet addr:**169.254.##.##** Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:143 errors:0 dropped:0 overruns:0 frame:0
TX packets:281 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11981 (11.7 Kb) TX bytes:41984 (41.0 Kb)
The inet addr, should be 192.168.1.*.
$ ps aux | grep dhcp
root 2391 0.0 0.1 5228 2980 ? S 21:58 0:00 /sbin/dhclient -d -4 -sf /usr/lib/NetworkManager/nm-dhcp-client.action -pf /var/run/dhclient-wlan0.pid -lf /var/lib/dhcp/dhclient--wlan0.lease -cf /var/run/nm-dhclient-wlan0.conf wlan0
root 5160 0.0 0.0 2100 588 ? Ss 21:59 0:00 /sbin/dhcpcd wlan0
xxxx 5814 0.0 0.0 3680 768 pts/0 S+ 22:08 0:00 grep dhcp
$ ps aux | grep wpa_supplicant
root 1421 0.0 0.1 5676 2456 ? S 21:56 0:00 /usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -u -f /var/log/wpa_supplicant.log
xxxx 5785 0.0 0.0 3684 764 pts/0 S+ 22:07 0:00 grep wpa_supplicant
$ cat /etc/*-release
openSUSE 11.4 (i586)
VERSION = 11.4
CODENAME = Celadon