Gentoo Archives: gentoo-user

From: Bruce Hill <daddy@×××××××××××××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] wifi connection problem
Date: Sat, 21 Sep 2013 15:08:50
Message-Id: 20130921150836.GK25579@server
1 After moving from one location to another, changing ISPs from Metrocast to
2 Comcast, we're having connectivity issues. But let me just state the problem
3 with the wife's PC, peter. (My laptop, baruch, works with a static IP using
4 wicd...nothing has worked using DHCP in Gentoo since moving to Comcast.)
5
6 It can connect with a wire, but not wireless, using /etc/conf.d/net and
7 wpa_supplicant.conf
8
9 dmesg output:
10
11 <snip>
12 [ 4.598076] systemd-udevd[1214]: starting version 204
13 [ 5.211658] r8712u: module is from the staging directory, the quality is unknown, you have been warned.
14 [ 5.211965] r8712u: Staging version
15 [ 5.211976] r8712u: register rtl8712_netdev_ops to netdev_ops
16 [ 5.211980] usb 1-2: r8712u: USB_SPEED_HIGH with 4 endpoints
17 [ 5.212463] usb 1-2: r8712u: Boot from EFUSE: Autoload OK
18 [ 5.933140] usb 1-2: r8712u: CustomerID = 0x0000
19 [ 5.933145] usb 1-2: r8712u: MAC Address from efuse = 94:44:52:de:38:44
20 [ 5.933147] usb 1-2: r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
21 [ 5.933232] usbcore: registered new interface driver r8712u
22 [ 7.116650] Adding 1951860k swap on /dev/sda5. Priority:-1 extents:1 across:1951860k
23 [ 7.153107] XFS (sda2): Mounting Filesystem
24 [ 7.295342] XFS (sda2): Ending clean mount
25 [ 7.330984] XFS (sda3): Mounting Filesystem
26 [ 7.469806] XFS (sda3): Ending clean mount
27 [ 10.118645] r8712u 1-2:1.0 wlan0: 1 RCR=0x153f00e
28 [ 10.119365] r8712u 1-2:1.0 wlan0: 2 RCR=0x553f00e
29 [ 10.469578] r8169 0000:01:00.0 eth0: link down
30 [ 10.469589] r8169 0000:01:00.0 eth0: link down
31 [ 12.615465] r8169 0000:01:00.0 eth0: link up
32
33 peter ~ # egrep -v "(^#|^ *$)" /etc/conf.d/net
34 config_wlan0="192.168.11.75 netmask 255.255.255.0"
35 modules_wlan0="wpa_supplicant"
36 wpa_supplicant_wlan0="-Dwext"
37 dns_servers_wlan0="4.2.2.1 4.2.2.2 8.8.8.8 192.168.11.1"
38 routes_wlan0="default via 192.168.11.1"
39 config_eth0="192.168.11.55 netmask 255.255.255.0"
40 dns_servers_eth0="4.2.2.1 4.2.2.2 8.8.8.8 192.168.11.1"
41 routes_eth0="default via 192.168.11.1"
42
43 peter ~ # cat /etc/wpa_supplicant/wpa_supplicant.conf
44 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
45 #ap_scan=0
46 #update_config=1
47
48 network={
49 ssid="0024A5F5271E"
50 #psk="<munged>"
51 psk=<munged>
52 scan_ssid=1
53 proto=WPA2
54 key_mgmt=WPA-PSK
55 group=CCMP TKIP
56 pairwise=CCMP TKIP
57 # priority=5
58 }
59
60 peter ~ # ls -l /etc/init.d/net.*
61 lrwxrwxrwx 1 root root 6 Sep 16 09:35 /etc/init.d/net.eth0 -> net.lo
62 -rwxr-xr-x 1 root root 16919 Dec 9 2012 /etc/init.d/net.lo
63 lrwxrwxrwx 1 root root 6 Sep 21 07:05 /etc/init.d/net.wlan0 -> net.lo
64
65 peter ~ # rc-update show
66 bootmisc | boot
67 dcron | default
68 devfs | sysinit
69 dmesg | sysinit
70 fsck | boot
71 gpm | default
72 hostname | boot
73 hwclock | boot
74 keymaps | boot
75 killprocs | shutdown
76 local | default
77 localmount | boot
78 modules | boot
79 mount-ro | shutdown
80 mtab | boot
81 net.eth0 | default
82 net.lo | boot
83 net.wlan0 | default
84 netmount | default
85 procfs | boot
86 root | boot
87 savecache | shutdown
88 sshd | default
89 swap | boot
90 swapfiles | boot
91 sysctl | boot
92 sysfs | sysinit
93 syslog-ng | default
94 teamviewerd8 | default
95 termencoding | boot
96 tmpfiles.setup | boot
97 udev | sysinit
98 udev-mount | sysinit
99 urandom | boot
100 wpa_supplicant | default
101
102 peter ~ # ip addr
103 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
104 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
105 inet 127.0.0.1/8 scope host lo
106 valid_lft forever preferred_lft forever
107 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
108 link/ether bc:ae:c5:48:27:ef brd ff:ff:ff:ff:ff:ff
109 inet 192.168.11.55/24 brd 192.168.11.255 scope global eth0
110 valid_lft forever preferred_lft forever
111 3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
112 link/ether 94:44:52:de:38:44 brd ff:ff:ff:ff:ff:ff
113
114 NB: To ssh into peter from baruch and get this info, I had to del net.wlan0
115 from the default runlevel. Otherwise, I couldn't get sshd to start:
116
117 Sep 21 10:01:05 peter kernel: 4.598076] systemd-udevd[1214]: starting version 204
118 Sep 21 10:01:05 peter kernel: [ 5.211658] r8712u: module is from the staging directory, the quality is unknown, you have been warned.
119 Sep 21 10:01:05 peter kernel: [ 5.211965] r8712u: Staging version
120 Sep 21 10:01:05 peter kernel: [ 5.211976] r8712u: register rtl8712_netdev_ops to netdev_ops
121 Sep 21 10:01:05 peter kernel: [ 5.211980] usb 1-2: r8712u: USB_SPEED_HIGH with 4 endpoints
122 Sep 21 10:01:05 peter kernel: [ 5.212463] usb 1-2: r8712u: Boot from EFUSE: Autoload OK
123 Sep 21 10:01:05 peter kernel: [ 5.933140] usb 1-2: r8712u: CustomerID = 0x0000
124 Sep 21 10:01:05 peter kernel: [ 5.933145] usb 1-2: r8712u: MAC Address from efuse = 94:44:52:de:38:44
125 Sep 21 10:01:05 peter kernel: [ 5.933147] usb 1-2: r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
126 Sep 21 10:01:05 peter kernel: [ 5.933232] usbcore: registered new interface driver r8712u
127 Sep 21 10:01:05 peter kernel: [ 7.116650] Adding 1951860k swap on /dev/sda5. Priority:-1 extents:1 across:1951860k
128 Sep 21 10:01:05 peter kernel: [ 7.153107] XFS (sda2): Mounting Filesystem
129 Sep 21 10:01:05 peter kernel: [ 7.295342] XFS (sda2): Ending clean mount
130 Sep 21 10:01:05 peter kernel: [ 7.330984] XFS (sda3): Mounting Filesystem
131 Sep 21 10:01:05 peter kernel: [ 7.469806] XFS (sda3): Ending clean mount
132 Sep 21 10:01:05 peter crond[1681]: /usr/sbin/crond 4.5 dillon's cron daemon, started with loglevel notice
133 Sep 21 10:01:05 peter /usr/sbin/gpm[1694]: *** info [daemon/startup.c(136)]:
134 Sep 21 10:01:05 peter /usr/sbin/gpm[1694]: Started gpm successfully. Entered daemon mode.
135 Sep 21 10:01:06 peter kernel: [ 10.118645] r8712u 1-2:1.0 wlan0: 1 RCR=0x153f00e
136 Sep 21 10:01:06 peter kernel: [ 10.119365] r8712u 1-2:1.0 wlan0: 2 RCR=0x553f00e
137 Sep 21 10:01:06 peter kernel: [ 10.469578] r8169 0000:01:00.0 eth0: link down
138 Sep 21 10:01:06 peter kernel: [ 10.469589] r8169 0000:01:00.0 eth0: link down
139 Sep 21 10:01:06 peter /etc/init.d/net.wlan0[1925]: start-stop-daemon: failed to start `/usr/sbin/wpa_supplicant'
140 Sep 21 10:01:06 peter /etc/init.d/net.wlan0[1850]: ERROR: net.wlan0 failed to start
141 Sep 21 10:01:06 peter /etc/init.d/netmount[1932]: ERROR: cannot start netmount as net.wlan0 would not start
142 Sep 21 10:01:07 peter /etc/init.d/sshd[1933]: ERROR: cannot start sshd as net.wlan0 would not start
143 Sep 21 10:01:08 peter kernel: [ 12.615465] r8169 0000:01:00.0 eth0: link up
144 Sep 21 10:02:33 peter sudo: anna : TTY=pts/0 ; PWD=/home/anna ; USER=root ; COMMAND=/bin/bash
145 Sep 21 10:02:44 peter /etc/init.d/net.wlan0[2232]: start-stop-daemon: failed to start `/usr/sbin/wpa_supplicant'
146 Sep 21 10:02:44 peter /etc/init.d/net.wlan0[2157]: ERROR: net.wlan0 failed to start
147 Sep 21 10:02:44 peter /etc/init.d/sshd[2156]: ERROR: cannot start sshd as net.wlan0 would not start
148 Sep 21 10:03:33 peter /etc/init.d/net.wlan0[2333]: start-stop-daemon: failed to start `/usr/sbin/wpa_supplicant'
149 Sep 21 10:03:33 peter /etc/init.d/net.wlan0[2258]: ERROR: net.wlan0 failed to start
150 Sep 21 10:03:33 peter /etc/init.d/sshd[2257]: ERROR: cannot start sshd as net.wlan0 would not start
151 Sep 21 10:03:49 peter sshd[2362]: Server listening on 0.0.0.0 port 22.
152 Sep 21 10:04:13 peter sshd[2377]: SSH: Server;Ltype: Version;Remote: 192.168.11.77-50656;Protocol: 2.0;Client: OpenSSH_5.9p1-hpn13v11
153 Sep 21 10:04:13 peter sshd[2377]: SSH: Server;Ltype: Kex;Remote: 192.168.11.77-50656;Enc: aes128-ctr;MAC: hmac-md5;Comp: none [preauth]
154 Sep 21 10:04:13 peter sshd[2377]: SSH: Server;Ltype: Authname;Remote: 192.168.11.77-50656;Name: mingdao [preauth]
155 Sep 21 10:04:16 peter sshd[2377]: Accepted password for mingdao from 192.168.11.77 port 50656 ssh2
156 Sep 21 10:04:16 peter sshd[2377]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
157 Sep 21 10:04:16 peter sshd[2377]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
158
159 And the present status of services:
160
161 peter ~ # rc-status
162 Runlevel: default
163 syslog-ng [ started ]
164 wpa_supplicant [ started ]
165 net.eth0 [ started ]
166 netmount [ stopped ]
167 dcron [ started ]
168 gpm [ started ]
169 sshd [ started ]
170 teamviewerd8 [ started ]
171 local [ started ]
172 Dynamic Runlevel: hotplugged
173 Dynamic Runlevel: needed
174 Dynamic Runlevel: manual
175
176 What can I do to get wifi working on peter w/out using wicd?
177
178 Cheers,
179
180 Bruce
181 --
182 Happy Penguin Computers >')
183 126 Fenco Drive ( \
184 Tupelo, MS 38801 ^^
185 support@×××××××××××××××××××××.com
186 662-269-2706 662-205-6424
187 http://happypenguincomputers.com/
188
189 A: Because it messes up the order in which people normally read text.
190 Q: Why is top-posting such a bad thing?
191 A: Top-posting.
192 Q: What is the most annoying thing in e-mail?
193
194 Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting

Replies

Subject Author
Re: [gentoo-user] wifi connection problem Mick <michaelkintzios@×××××.com>