Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been fiddling around with this for two days, I could really need some help now. I bet it's something trivial. As I haven't used Linux in almost ten years, I might just be a little rusty. Please note that I'm on Bodhi Linux 3.0.0 RC1 (Ubuntu 14.04), but I don't think it's a distribution-specific or hardware-specific issue. WLAN is working fine on Windows, and it was working fine on Debian before I opted to go with Bodhi.
I can successfully connect to my router using the "wicd" connection manager. Although the WLAN is hidden and WPA2-protected, I can connect without trouble. I get assigned an IP through DHCP, and my router also tells me that the Bodhi machine has connected. However, I cannot ping anything else in the network for the life of me!
I've already disabled the 'n' wireless mode on the router as I heard about problems with that, but I haven't figured out a way to disable that mode in the driver (rtl8291ce). The wpa_supplicant is driven with 'wext' if that is relevant at all.
BTW: I'm not on the machine in question right now, but if you need some detailed system information, I'll be happy to provide it. Just let me know.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
From what you're saying it looks like you're connected and that the network is available. That about right?
Sounds like you don't have a DNS server. Quick and dirty, open a terminal and, as root
Code:
vi /etc/resolv.conf
<insert>
search com
nameserver 8.8.8.8
nameserver 8.8.4.4
<save and exit>
ping -c 5 news.google.com
Those are Google Free DNS Servers, you may opt to use the DNS server addresses provided by your ISP instead.
wicd will overwrite /etc/resolv.conf (and I've never been able to figure out how to prevent that!). I keep a reslov.bak file in /etc and, after connecting with wicd, copy that into /etc/resolv.conf when I'm using my laptop remotely. Otherwise all my systems are fixed-IP and are connected to a router or switch with Ethernet cables (and thus I don't use wicd so no problem with DNS servers).
I've switched back to Debian yesterday hoping to circumvent this problem. But since I desperately need a Blender version with Cycles support, I went with "jessie" instead of "wheezy". I don't really like the idea of backporting.
Needless to say... WLAN refuses to work on Debian as well now.
I've crawled through google search results as if I had discovered the internet just yesterday, and it seems like a lot of people have problems with RTL8192ce wireless devices. Some people even report that the only option to get this driver (or similar ones) going is to first boot into Windows and then into Linux. Sounds crazy... and I doesn't work for me of course... but it stresses what the situation is like.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
One problem you may have is that your DNS is the router: many routers, e.g., Linksys, provide DNS services briefly then stop. You, most likely, need external DNS servers specified in /etc/resolv.conf. That "no servers can be reached" is a hint about DNS services (the DNS nameserver address given above is the router gateway).
One thing you may try is to set your system to fixed-IP addressing (this is not as "bad" as you may think).
Your gateway address is 192.168.0.1, your system address can be, say, 192.168.0.10 (or 2, 3, 15, 20 doesn't mater, anything but 192.168.0.1 or greater than 100 -- that's where DHCP usually starts).
As I mentioned, WICD wipes out /etc/resolv.conf and you may need to keep an /etc/resolv.bak file (as I do) when using WICD to connect to a wireless device. Note that, if you have an Ethernet cable attached to your router you will not be required to screw with this stuff with a fixed-IP address as above. It's dirt simple to connect to WICD then copy /etc/resolv.bak to /etc/resolv.conf which will give you DNS services and you will be able to connect to web pages with, for example, "www.google.com" once /etc/resolv.conf is in place.
My laptop has WICD installed. On boot the Ethernet cable is recognized and the connection is made (and /etc/resolv.conf does not get wiped out -- it's only when connecting wi-fi with WICD that it does (and I just do the copy and all is well).
You can't count on a router to provide DNS services; sometime it does, sometimes it does not, better to specify specific addresses for DNS servers.
One problem you may have is that your DNS is the router: many routers, e.g., Linksys, provide DNS services briefly then stop. You, most likely, need external DNS servers specified in /etc/resolv.conf. That "no servers can be reached" is a hint about DNS services (the DNS nameserver address given above is the router gateway).
One thing you may try is to set your system to fixed-IP addressing (this is not as "bad" as you may think).
Your gateway address is 192.168.0.1, your system address can be, say, 192.168.0.10 (or 2, 3, 15, 20 doesn't mater, anything but 192.168.0.1 or greater than 100 -- that's where DHCP usually starts).
As I mentioned, WICD wipes out /etc/resolv.conf and you may need to keep an /etc/resolv.bak file (as I do) when using WICD to connect to a wireless device. Note that, if you have an Ethernet cable attached to your router you will not be required to screw with this stuff with a fixed-IP address as above. It's dirt simple to connect to WICD then copy /etc/resolv.bak to /etc/resolv.conf which will give you DNS services and you will be able to connect to web pages with, for example, "www.google.com" once /etc/resolv.conf is in place.
My laptop has WICD installed. On boot the Ethernet cable is recognized and the connection is made (and /etc/resolv.conf does not get wiped out -- it's only when connecting wi-fi with WICD that it does (and I just do the copy and all is well).
You can't count on a router to provide DNS services; sometime it does, sometimes it does not, better to specify specific addresses for DNS servers.
Hope this help some.
Thanks a lot, I'll try that out tonight when I get on my Linux machine.
What you're saying makes sense and all, however, without testing anything yet, how do you explain that I can't even ping the router?
Shouldn't that be possible regardless of my DNS settings?
No matter what I do, I get 100% packet loss. It's funny that it worked briefly on my old Debian "wheezy" installation. Unfortunately I can't think of anything I configured differently on the new "jessie" installation. Back in the days (2004ish) I set up my Debian WLAN with an NDISWRAPPER, but according to other forums and blogs, this doesn't really help in my situation today. I may look into that again though.
It's not a laptop, so I could somehow cope with not having WLAN, but having a 30 feet cable through my living room sucks balls.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
I hauled out the laptop, did not connect the Ethernet cable, and told WICD to automatically connect to the Netgear 11ng (which is connected to my router via Ethernet; essentially the router looks like the satellite modem to the Netgear). I'm connected with DHCP at 192.168.1.100 which is the router, not the Netgear (don't want to start yanking cables to connect the Netgear directly to the satellite but that really doesn't matter: I'm connected).
So, the content of /etc/resolv.conf is
Code:
cat /etc/resolv.conf
# Generated by dhcpcd from wlan0
# /etc/resolv.conf.head can replace this line
nameserver 192.168.0.1
# /etc/resolv.conf.tail can replace this line
192.168.0.1 is the Netgear (the router is 192.168.1.1).
I can ping:
Code:
ping -c 5 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=150 time=1.62 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=150 time=1.64 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=150 time=1.59 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=150 time=1.51 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=150 time=1.54 ms
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 1.516/1.583/1.647/0.059 ms
ping -c 5 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=63 time=3.84 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=63 time=1.90 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=63 time=1.82 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=63 time=1.84 ms
64 bytes from 192.168.0.1: icmp_seq=5 ttl=63 time=1.83 ms
--- 192.168.0.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4007ms
rtt min/avg/max/mdev = 1.820/2.248/3.845/0.800 ms
So everybody's talking to me and to each other.
I can also ping a local machine by name (connected to the router) and the outside world (I'm writing this on the laptop so, yeah, I can get to the outside world).
dig www.google.com
; <<>> DiG 9.9.5-P1 <<>> www.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44099
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.google.com. IN A
;; ANSWER SECTION:
www.google.com. 1200 IN A 74.125.224.209
www.google.com. 1200 IN A 74.125.224.208
www.google.com. 1200 IN A 74.125.224.212
www.google.com. 1200 IN A 74.125.224.211
www.google.com. 1200 IN A 74.125.224.210
;; Query time: 3 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Wed Aug 13 08:51:04 EDT 2014
;; MSG SIZE rcvd: 112
All this sort of leads me to wonder...
Have you got any other device that connects to your wi-fi? Say a Kindle or something?
Are you sure that you've got WICD configured correctly with the right password (chek yer speling)?
Are you sure that the dongle you've got is actually working (is it USB, unplug it and plug it into another USB port maybe)?
The relevant sections of /etc/rc.d/rc.inet1.conf look like this:
Code:
# Config information for eth0:
IPADDR[0]="192.168.1.30"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""
# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""
# Default gateway IP address:
GATEWAY="192.168.1.1"
The GATEWAY address is my wired router (which is not connected).
Everything else is commented-out; i.e., there is no wlan configuration, WICD handles all that.
The WICD configuration is WPA 1/2 (Hex[0-9/A-F), Use Encryption and the password is the one I set in the Netgear wi-fi router (not the default).
So, I dunno; it sounds like there might be a password problem? When you start up WICD if you don't see it connect, them's the stuff I'd check.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.