You are not logged in.
So I'm posting this because I've ruled out all of the possibilities that I thought were reasonable. Let us begin with a short story:
A mere two hours ago my wireless was working well. I left for two hours with my computer, sat down at a cafe with free wireless and worked for a while. I was having some trouble connecting properly once I got to the cafe, so I messed around with a few things (took the wireless down, brought it back up, and then tried iwconfig and dhcp a few times). None of this worked, so I shrugged my shoulders and kept working with no wireless (I commonly go to this cafe and commonly have problems with their wireless network, so I did not take this as a sign that something was wrong).
I have now returned home and cannot connect to my wireless network at home. I am connected to my router, (netcfg runs without a hitch, iwconfig doesn't tell me "not associated") but I can't load any websites. I haven't had this problem previously. What might I have done at the cafe to mess things up?
Allow me to eliminate some usual suspects:
-- I am posting this using the wireless connection in my apartment from a different computer, so my connection is clearly fine
-- This should be obvious from the story above, but I'm confident that my wireless is enabled and so on, I haven't accidentally left the device down or hit a switch to turn the card off
--I didn't do anything weird with my configuration files or anything like that at the cafe; everything here is the same as it has been for the several weeks that it's been working with no problems
--I have used my wireless since the last time I ran sudo pacman -Syu, so I don't think it's related to any software update
--I can't ping any websites either, so it truly is a connection issue and not a browser issue or whatever
Does anybody have a hypothesis?
Thanks!
(edited to add the last usual suspect)
Last edited by keither (2009-10-12 13:43:07)
Offline
Could you check that /etc/resolv.conf is correct and are you able to ping via IP address?
Offline
I've never really looked at resolv.conf, so I don't know what would be correct, but it shows
domain Belkin
nameserver 192.168.2.1
which seems okay, since i have a belkin router and that's the ip.
I actually cannot ping the router. Output is
$ping -c 3 192.168.2.1
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
--192.168.2.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2009ms
Offline
Do output from the following give any clues?
ifconfig
iwlist scan
route -n
route
cat /etc/hosts
Do you get the much the same results whether you connect to your router wirelessly or wired?
Offline
Actually, maybe. ifconfig gave "inet addr: 192.168.2.5", and I can ping this ip successfully. Is this meaningful?
edit: type-o
Last edited by keither (2009-10-11 22:27:29)
Offline
It would be helpful if you would post the output of all the commands that vacant mentioned:
ifconfig
iwlist scan
route -n
route
cat /etc/hosts
I'd also add
iwconfig
ip route #sometimes shows more than the old route
Your problem sounds a lot like a routing issue. Maybe dhcpcd giving you bad cached routes. You still have old routes in your routing-table (you did tear down the old connection completely, or even rebooted i suppose).
Offline
So, I can't find my thumb drive, so this would be a lot of output for me to reproduce for you. I'll look around and try to paste all of this stuff here in a bit.
I did reboot when I returned.
Offline
Okay, here goes:
$ ifconfig; iwlist scan; route -n; route; iwconfig; ip route; cat /etc/hosts
eth0 Link encap:Ethernet HWaddr 00:22:19:F1:28:45
inet6 addr: fe80::222:19ff:fef1:2845/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:44 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5054 (4.9 Kb) TX bytes:426 (426.0 b)
Interrupt:17
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:55 errors:0 dropped:0 overruns:0 frame:0
TX packets:55 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4416 (4.3 Kb) TX bytes:4416 (4.3 Kb)
wlan0 Link encap:Ethernet HWaddr 00:22:FB:B8:D2:D2
inet addr:192.168.2.5 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: 2002:4751:83de:1234:222:fbff:feb8:d2d2/64 Scope:Global
inet6 addr: fe80::222:fbff:feb8:d2d2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2550 errors:0 dropped:0 overruns:0 frame:0
TX packets:622 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:323932 (316.3 Kb) TX bytes:65488 (63.9 Kb)
wmaster0 Link encap:UNSPEC HWaddr 00-22-FB-B8-D2-D2-00-00-00-00-00-00-00-00-00-00
UP RUNNING MTU:0 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)
lo Interface doesn't support scanning.
wmaster0 Interface doesn't support scanning.
wlan0 Scan completed :
Cell 01 - Address: 00:22:75:39:BF:5C
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=54/70 Signal level=-56 dBm
Encryption key:on
ESSID:"Apt106"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
18 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000120d87ce0
Extra: Last beacon: 190230ms ago
IE: Unknown: 0006417074313036
IE: Unknown: 010882848B961224486C
IE: Unknown: 030101
IE: Unknown: 2A0104
IE: Unknown: 32040C183060
IE: Unknown: 2D1AEC010FFFFF000000000000000000000000000000000000000000
IE: Unknown: 3D1601000700000000000000000000000000000000000000
IE: Unknown: 3E0100
IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
IE: Unknown: 7F0101
IE: Unknown: DD07000C4300000000
IE: Unknown: DD1E00904C33EC010FFFFF000000000000000000000000000000000000000000
IE: Unknown: DD1A00904C3401000700000000000000000000000000000000000000
eth0 Interface doesn't support scanning.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 303 0 0 wlan0
0.0.0.0 192.168.2.1 0.0.0.0 UG 303 0 0 wlan0
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 303 0 0 wlan0
default 192.168.2.1 0.0.0.0 UG 303 0 0 wlan0
lo no wireless extensions.
wmaster0 no wireless extensions.
wlan0 IEEE 802.11abgn ESSID:"Apt106"
Mode:Managed Frequency:2.412 GHz Access Point: 00:22:75:39:BF:5C
Bit Rate=0 kb/s Tx-Power=15 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=60/70 Signal level=-50 dBm Noise level=-87 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
eth0 no wireless extensions.
192.168.2.0/24 dev wlan0 proto kernel scope link src 192.168.2.5 metric 303
default via 192.168.2.1 dev wlan0 metric 303
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost My-Host
# End of file
Offline
Okay, I opened wicd and used non-dhcdcp settings and everything is working, so I think it has something to do with dhcdcp. I won't mark this solved yet because I'd like to know what the deal is with dhcdcp (or netcfg) that's keeping me from getting online. I prefer not to have to point and click around all the time.
Offline
As far as I can see that all looks fine. I been using wicd for my wireless and wired connection for ages so good choice.
Sometimes disabling ipv6 can enable dhcp to work (I've found this on several PCs), I also seem to remember hearing that disabling ipv6 can speed up traffic.
Last edited by vacant (2009-10-12 08:56:13)
Offline
Okay, well my initial problem is solved. I really love netcfg and want to use it again, so I'll keep trying to figure that out. Thanks everyone!
Offline