wireless lan configuration - why is it wlan0 and not eht1?
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.
wireless lan configuration - why is it wlan0 and not eht1?
i have 2 usb wlan adapters, edimax 7117U (zydas 1201 chipset) and a white brand (atmel chipset)
i started by trying to install wlanctl-ng (for the 7117U) but i gave up and decided to try the atmel drivers, and they worked.
my problem is that i don't know how to request a IP from the DHCP server (on a PC running Windows). For the ethernet card i do it the only way i know, i just type "service network restart". But restarting this service doesn't include wlanX interfaces!
(there is a service named "wlan", but i don't know if this service was installed by the wlanctl-ng, or was damaged by it, it doesn't work)
So, how can i get an IP address for my wireless interface? Or how can i make it eth1 instead of wlan0?
Trick is to get the script to do what you need on startup and on restart of the network service. On redhat and redhat based system there are files in the folder /etc/sysconfig/networking/devices and in /etc/sysconfig/network-scripts in the network-scripts folders are examples and in the networking/devices folder are the ones run when you start and stop the network service.
Modifying or adding files in the networking/devices folder will likely resolve your problems. Make sure you have wireless tools installed so iwconfig works.
ok, i now have wlan0 working, i can get an ip addr by dhcp, (which means i am communicating with my Windows PC), and i added the ifcfg-wlan0 to that directory, so the network service also includes wlan0, but...
I have no internet/network access. I get an IP address from my windows pc (192.168.0.1) but i can't even ping that machine
another thing is also strange... when i see the wlan0 properties, by typing iwconfig, it says i have a good signal (almost 100) but the "Link" is 0!
Does the eth0 change to wlan0?
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.0.0 * 255.255.0.0 U 0 0 0 wlan0
loopback localhost 255.0.0.0 UG 0 0 0 lo
default homeportal.gate 0.0.0.0 UG 0 0 0 wlan0
Is about what it should look like.... If it doesn't you need to set the default route to use iface wlan0
Just one point in answer to below: according to README,linux-wlan-ng packages only partly implement the 'wireless' features, so iw* commands give unreliable info, such as only polling certain features. They recommend using the wlan* controls, which aren't much fun to use.
>>another thing is also strange... when i see the wlan0 properties, by typing >>iwconfig, it says i have a good signal (almost 100) but the "Link" is 0!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.