Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
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.
First of all : as output of iwlist or iwconfig when there is stated "Access Point", do they mean the MAC Address of the router ?
If so, I have the *impression* that iwconfig wlan0 gives me the wrong AP.
If use the following commands both give me the good ESSID and an AP that is different than the one of the wireless router.
- iwconfig wlan0
- iwlist wlan0 scan
If my understanding of AP/MAC is correct I believe that I first of all have to solve this issue before proceeding and being able to connect to my network.
First of all : as output of iwlist or iwconfig when there is stated "Access Point", do they mean the MAC Address of the router ?
Actually, "Access Point" is usually used as a generic term for whatever device is being used to control wireless access. In fact, at least on my box, "Access Point" isn't part of either the iwlist or iwconfig output.
Quote:
If so, I have the *impression* that iwconfig wlan0 gives me the wrong AP.
The iwconfig command is completely dependant on the configuration a user has set, so if you haven't used iwconfig to enter the ESSID, WEP key, etc., then yes, you aren't seeing the right information. However, iwconfig has no way of finding the right information on its own.
Quote:
If use the following commands both give me the good ESSID and an AP that is different than the one of the wireless router.
- iwconfig wlan0
- iwlist wlan0 scan
OK, of those two command, only the iwlist command will be capable of showing you information about the wireless router. As I said above, iwconfig can only tell you about the information you've told it. If iwconfig wlan0 is giving you the proper ESSID, then it must be getting that from a config file you've set up.
At this point, why don't you post the output of iwconfig wlan0 and ifconfig wlan0 and we'll see where you are. And in case you didn't know, you can use a redirect to capture the output of those commands in a text file and save yourself a lot of typing:
iwconfig wlan0 > iwconfig_output.txt (you can use any filename here, not just the one I have). The > bit sends the output to the file rather than the screen, and then you can open it in a text editor.
Um, I'm a touch confused. From the outputs of 3 and 4 you should be able to connect to the internet. What happens when you try to do that? Also, are you assigning a static IP address to this card or are you using DHCP to obtain one from the access point?
Yes, I'm using DHCP, this is confirmed by Yast/Network Devices / Networking Card Configuration Overview
when I'm connected through wire (eth0) the internet connection works fine ...
Hangdog42, you asked what happens when I try to connect wireless to the internet. This is the error message I'm getting in the browser (Konqueror):
An error ocured while loading http://www.google.be
Unknown host www.google.be
That is the IP address for LQO. If you can connect with the IP address but not the name, then you've got a problem with the nameserver. If you can't connect either way it is something more basic.
Oh, and one more thing. Don't have the wired connection enabled at the same time you are trying to connect wirelessly. I've seen systems behave badly if they have both a wired and a wireless connection live at the same time. If you boot with the CAT5 cable unplugged you should be fine.
how do I make that the wired connection is not enabled ?
That's easy. Either make sure the CAT5 cable is NOT plugged into your computer when you boot, or use ifconfig eth0 down at the command line (assuming your wired connection is eth0).
Since it isn't a DNS problem, please post the output of route. The gateway listed there should be your router. What also might be informative is if you first get the output of route when your just using wireless, then reboot with a wired connection and look at the output then.
Assuming that wlan0 was active in both cases, it looks as if your DHCP request through wlan0 isn't being answered, or your system isn't completely understanding the answer. However, the fact that you get an IP address on wlan0 is really strange. Have you set the wlan0 IP address statically somewhere?
Assuming that you haven't set the IP address, lets not mess with using DHCP and instead setting everything manually and see if you can get on the Internet.
After booting your computer, configure wlan0 with your SSID using iwconfig. Once you've checked that it is set, next set a static IP address:
ifconfig wlan0 192.168.1.25 (or use whatever IP address you think is appropriate)
Next, you want to set up so that your gateway points to your router:
route add default gw 192.168.1.1 (assuming that 192.168.1.1 is the IP address of your router). Run route again to make sure that the settings took.
The final step is to add your ISPs DNS servers to your /etc/resolv.conf file. If your router is connected to your ISP, on one of the settings pages you should be able to see the IP address for the DNS servers it uses. Write those down. Now open up /etc/resolv.conf in a text editor and for each DNS server your ISP has add a line like this:
nameserver 1.2.3.4
Only replace 1.2.3.4 with the real IP address of the DNS server. Remember, one line per server. Save the file and then you should be able to connect to the internet.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.