LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Basic eth0 vs. wlan0 question (https://www.linuxquestions.org/questions/linux-wireless-networking-41/basic-eth0-vs-wlan0-question-224786/)

johnemil 08-31-2004 09:12 AM

Basic eth0 vs. wlan0 question
 
I'm trying to run an Xterasys PCI wireless card (ADM8211) on RedHat 8. It installs fine and works like a dream, but it shows up as eth0 instead of wlan0.

When I reboot, then, ithe system thinks it is an Ethernet card, and so it won't work unless I reinstall. When I try to scan the slots, it only allows eth and not wlan.

So may basic question is, do I need to install something to make the system read the card as wlan0 when I install it?

John Emil

sharpie 09-01-2004 02:55 AM

I sort of have the same problem, except the wireless still works as eth0, it's just I'd rather my wired ethernet card be called eth0 and the wireless one wlan or eth1. Plus for some reason every boot up it now defaults to the wireless card being up as eth0, and the wired one, now eth1, is disabled. It gets annoying having to take the wireless down, put the wired up, and then set up the routes everytime I boot up.

Edit: I'm using the intel pro 2100 chipset in a laptop.

Ghost_runner 09-02-2004 10:36 AM

edit your /etc/pcmcia/network and put the lines in the bottom that you type everytime, or make a shell script (somewhere in your path) that does this for you example:

#!/bin/bash
ifdown eth0
ifup eth1
iproutes
etc...

flamingice 09-02-2004 02:36 PM

How is that suppose to work? The intel wireless chipsets are mini-pci, not pcmcia.

In my opinion, wireless cards should also use ethX. Why? Because it acts like an ethernet card, and I don't like having different names for everything. This way, either my wireless card or ethernet card show up on my system as eth0 and my simple network scripts can up the interface without checking if wlan0 exists or eth0 exists. On *bsd (AFAIK), every driver seems to have their own prefix - their adm8211 driver, for example, creates names like atw0.

However, the *real* solution to network interface naming problems is to use nameif or something of the sort. nameif renames your network interfaces according to their MAC address, so you can rename your interface to "wireless_card", for example. So regardless of the order you plug your network devices in or what name the driver chose, they'll always have the same name.

But.. I dunno how well distros/hotplug support nameif.

johnemil 09-02-2004 05:48 PM

Quote:

Originally posted by flamingice

In my opinion, wireless cards should also use ethX. Why? Because it acts like an ethernet card, and I don't like having different names for everything. This way, either my wireless card or ethernet card show up on my system as eth0 and my simple network scripts can up the interface without checking if wlan0 exists or eth0 exists. On *bsd (AFAIK), every driver seems to have their own prefix - their adm8211 driver, for example, creates names like atw0.
This sounds reasonable, but then why and how when it finds my wireless card (as eth0) is its type being changed from "wireless" to "ethernet"? When I first install it (and it works) it shows as type "wireless", but on a reboot it is changed to "ethernet" and thus does not match the driver.

John Emil

flamingice 09-02-2004 05:57 PM

I don't know where you're finding type "ethernet" or "wireless". It sounds like a distro specific issue.

Ghost_runner 09-10-2004 12:28 PM

i use mandrake 10, my wireless card shows up as eth0 when i have both wireless and wired in my docking station, i get eth0 and eth1 and have to use iwconfig to discover which is the wireless. having them named wi0 and eth0 would be easier to set up batch scripts for, you don't use wep, accesspoint, etc on the wired card.

flamingice 09-10-2004 02:01 PM

The naming of ethernet interfaces is really a userspace issue. (in other words, your distro's job) The same problem would happen anyway with two wired cards - which one do you plug into (or which card is currently plugged in)?

robinang 09-13-2004 12:28 AM

hmmmm i used to have tat prob when i first installed ndiswrapper...i have eth0 and eth1....but configuring the eth1 ends me with no success

after tat i decide to reinstall everything...i gt wlan0 and eth0 and i finally gt tat to work...
i feel it would give a clear distinct name if the distro use wlan0 and eth0

anyone feels the same?

flamingice 09-13-2004 02:06 PM

ndiswrapper (AFAIK) always uses wlan%d, so if you don't see wlan0 or such and you're using ndiswrapper, something is probably wrong..

The drivers name the interfaces eth or wlan, but the distros can change it. (they don't) Any driver that currently uses wlan is highly unlikely to switch to using eth, and vice versa. It'd unexpectedly break configurations that don't rename interfaces, which is probably 99.9% of the people out there.


All times are GMT -5. The time now is 02:03 AM.