You are not logged in.

#1 2011-11-30 18:41:18

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

[solved]Wireless problem: can connect to router but cannot communicate

I couldn't think of a succinct, descriptive title.

I haven't used a wireless connection in a few months, having only connected by ethernet cable. Now, when I attempt to connect wirelessly to a router via NetworkManager (nm-applet in Gnome), I am able to get an IP address so I appear connected, however I cannot actually access the Internet. If I connect to the same router via a cable, then I have no problem. This has happened now on two different routers.

My /etc/hosts and /etc/rc.conf seem fine (again, I have no problem connecting via cable). One interesting thing is if I connect to the router via wifi and then I try to ping it, I get this:

PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted

--- 192.168.2.1 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4007ms

When I connect with the cable, I get the expected output:

PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_req=1 ttl=64 time=0.330 ms
64 bytes from 192.168.2.1: icmp_req=2 ttl=64 time=0.315 ms
64 bytes from 192.168.2.1: icmp_req=3 ttl=64 time=0.325 ms

--- 192.168.2.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.315/0.323/0.330/0.015 ms

Here are the NetworkManager entries in /var/daemons.log for when I try to connect via WiFi:

Nov 30 18:44:51 localhost NetworkManager[686]: <info> Activation (wlan0) starting connection 'Auto WiFiBDC771'
Nov 30 18:44:51 localhost NetworkManager[686]: <info> (wlan0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Nov 30 18:44:51 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Nov 30 18:44:51 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Nov 30 18:44:51 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Nov 30 18:44:51 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Nov 30 18:44:51 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Nov 30 18:44:51 localhost NetworkManager[686]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Nov 30 18:44:51 localhost NetworkManager[686]: <info> (wlan0): preparing device.
Nov 30 18:44:51 localhost NetworkManager[686]: <info> Activation (wlan0/wireless): access point 'Auto WiFiBDC771' has security, but secrets are required.
Nov 30 18:44:51 localhost NetworkManager[686]: <info> (wlan0): device state change: config -> need-auth (reason 'none') [50 60 0]
Nov 30 18:44:51 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Nov 30 18:45:12 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Nov 30 18:45:12 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Nov 30 18:45:12 localhost NetworkManager[686]: <info> (wlan0): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Nov 30 18:45:12 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Nov 30 18:45:12 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Nov 30 18:45:12 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Nov 30 18:45:12 localhost NetworkManager[686]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Nov 30 18:45:12 localhost NetworkManager[686]: <info> Activation (wlan0/wireless): connection 'Auto WiFiBDC771' has security, and secrets exist.  No new secrets needed.
Nov 30 18:45:12 localhost NetworkManager[686]: <info> Config: added 'ssid' value 'WiFiBDC771'
Nov 30 18:45:12 localhost NetworkManager[686]: <info> Config: added 'scan_ssid' value '1'
Nov 30 18:45:12 localhost NetworkManager[686]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Nov 30 18:45:12 localhost NetworkManager[686]: <info> Config: added 'auth_alg' value 'OPEN'
Nov 30 18:45:12 localhost NetworkManager[686]: <info> Config: added 'psk' value '<omitted>'
Nov 30 18:45:12 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Nov 30 18:45:12 localhost NetworkManager[686]: <info> Config: set interface ap_scan to 1
Nov 30 18:45:12 localhost NetworkManager[686]: <info> (wlan0): supplicant interface state: inactive -> scanning
Nov 30 18:45:14 localhost NetworkManager[686]: <info> (wlan0): supplicant interface state: scanning -> authenticating
Nov 30 18:45:14 localhost NetworkManager[686]: <info> (wlan0): supplicant interface state: authenticating -> associating
Nov 30 18:45:14 localhost NetworkManager[686]: <info> (wlan0): supplicant interface state: associating -> associated
Nov 30 18:45:14 localhost NetworkManager[686]: <info> (wlan0): supplicant interface state: associated -> 4-way handshake
Nov 30 18:45:14 localhost NetworkManager[686]: <info> (wlan0): supplicant interface state: 4-way handshake -> completed
Nov 30 18:45:14 localhost NetworkManager[686]: <info> Activation (wlan0/wireless) Stage 2 of 5 (Device Configure) successful.  Connected to wireless network 'WiFiBDC771'.
Nov 30 18:45:14 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) scheduled.
Nov 30 18:45:14 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) started...
Nov 30 18:45:14 localhost NetworkManager[686]: <info> (wlan0): device state change: config -> ip-config (reason 'none') [50 70 0]
Nov 30 18:45:14 localhost NetworkManager[686]: <info> Activation (wlan0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Nov 30 18:45:14 localhost NetworkManager[686]: <info> dhcpcd started with pid 2617
Nov 30 18:45:14 localhost NetworkManager[686]: <info> Activation (wlan0) Beginning IP6 addrconf.
Nov 30 18:45:14 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) complete.
Nov 30 18:45:14 localhost dhcpcd[2617]: version 5.2.12 starting
Nov 30 18:45:15 localhost NetworkManager[686]: <info> (wlan0): DHCPv4 state changed nbi -> preinit
Nov 30 18:45:15 localhost dhcpcd[2617]: wlan0: broadcasting for a lease
Nov 30 18:45:15 localhost dhcpcd[2617]: wlan0: offered 192.168.2.108 from 192.168.2.1
Nov 30 18:45:15 localhost dhcpcd[2617]: wlan0: acknowledged 192.168.2.108 from 192.168.2.1
Nov 30 18:45:15 localhost dhcpcd[2617]: wlan0: checking for 192.168.2.108
Nov 30 18:45:19 localhost dhcpcd[2617]: wlan0: leased 192.168.2.108 for infinity
Nov 30 18:45:19 localhost NetworkManager[686]: <info> (wlan0): DHCPv4 state changed preinit -> bound
Nov 30 18:45:19 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) scheduled...
Nov 30 18:45:19 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) started...
Nov 30 18:45:19 localhost NetworkManager[686]: <info>   address 192.168.2.108
Nov 30 18:45:19 localhost NetworkManager[686]: <info>   prefix 24 (255.255.255.0)
Nov 30 18:45:19 localhost NetworkManager[686]: <info>   gateway 192.168.2.1
Nov 30 18:45:19 localhost NetworkManager[686]: <info>   nameserver '192.168.2.1'
Nov 30 18:45:19 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) complete.
Nov 30 18:45:35 localhost NetworkManager[686]: <info> (wlan0): IP6 addrconf timed out or failed.
Nov 30 18:45:35 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 4 of 5 (IP6 Configure Timeout) scheduled...
Nov 30 18:45:35 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 4 of 5 (IP6 Configure Timeout) started...
Nov 30 18:45:35 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) scheduled...
Nov 30 18:45:35 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 4 of 5 (IP6 Configure Timeout) complete.
Nov 30 18:45:35 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) started...
Nov 30 18:45:36 localhost NetworkManager[686]: <info> (wlan0): device state change: ip-config -> activated (reason 'none') [70 100 0]
Nov 30 18:45:36 localhost NetworkManager[686]: <info> Policy set 'Auto WiFiBDC771' (wlan0) as default for IPv4 routing and DNS.
Nov 30 18:45:36 localhost NetworkManager[686]: <info> Activation (wlan0) successful, device activated.
Nov 30 18:45:36 localhost NetworkManager[686]: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) complete.
Nov 30 18:45:36 localhost dbus[605]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Nov 30 18:45:36 localhost dbus[605]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'

Finally, the name servers given by DHCP are the same for both the wired and the wireless connection, so I've ruled out some sort of weird DHCP error, I think.

I'm at a complete loss here. Does anyone have any ideas?

Last edited by jakobcreutzfeldt (2011-12-03 11:30:54)

Offline

#2 2011-11-30 18:49:37

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: [solved]Wireless problem: can connect to router but cannot communicate

Here's the ifconfig info for wlan0 while connected:

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        inet 192.168.2.108  netmask 255.255.255.0  broadcast 192.168.2.255
        ether 00:1b:77:a8:c0:15  txqueuelen 1000  (Ethernet)
        RX packets 4401  bytes 1371511 (1.3 MiB)
        RX errors 0  dropped 27  overruns 0  frame 0
        TX packets 20  bytes 2703 (2.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Offline

#3 2011-11-30 22:19:07

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: [solved]Wireless problem: can connect to router but cannot communicate

I installed inetutils, as suggested in this Arch news item but it doesn't seem to have made a difference.

Offline

#4 2011-12-03 11:31:24

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: [solved]Wireless problem: can connect to router but cannot communicate

Ok, I didn't actually solve it. I took this as the final push to get around to the full system reinstall I had been meaning to do.

Offline

Board footer

Powered by FluxBB