LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 08-31-2004, 09:12 AM   #1
johnemil
LQ Newbie
 
Registered: Aug 2004
Posts: 3

Rep: Reputation: 0
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
 
Old 09-01-2004, 02:55 AM   #2
sharpie
Member
 
Registered: Jan 2004
Location: California
Distribution: Slackware 10.1
Posts: 190

Rep: Reputation: 30
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.

Last edited by sharpie; 09-01-2004 at 02:57 AM.
 
Old 09-02-2004, 10:36 AM   #3
Ghost_runner
Member
 
Registered: Jun 2004
Location: Kansas City, MO
Distribution: Fedora (LXQT)
Posts: 276

Rep: Reputation: 30
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...
 
Old 09-02-2004, 02:36 PM   #4
flamingice
Member
 
Registered: Apr 2004
Location: New Jersey
Distribution: LFS
Posts: 85

Rep: Reputation: 15
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.
 
Old 09-02-2004, 05:48 PM   #5
johnemil
LQ Newbie
 
Registered: Aug 2004
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 09-02-2004, 05:57 PM   #6
flamingice
Member
 
Registered: Apr 2004
Location: New Jersey
Distribution: LFS
Posts: 85

Rep: Reputation: 15
I don't know where you're finding type "ethernet" or "wireless". It sounds like a distro specific issue.
 
Old 09-10-2004, 12:28 PM   #7
Ghost_runner
Member
 
Registered: Jun 2004
Location: Kansas City, MO
Distribution: Fedora (LXQT)
Posts: 276

Rep: Reputation: 30
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.
 
Old 09-10-2004, 02:01 PM   #8
flamingice
Member
 
Registered: Apr 2004
Location: New Jersey
Distribution: LFS
Posts: 85

Rep: Reputation: 15
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)?
 
Old 09-13-2004, 12:28 AM   #9
robinang
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Rep: Reputation: 0
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?
 
Old 09-13-2004, 02:06 PM   #10
flamingice
Member
 
Registered: Apr 2004
Location: New Jersey
Distribution: LFS
Posts: 85

Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wlan0 doesn't work without eth0? linuxhippy Fedora 8 07-26-2005 07:43 PM
Remapping wlan0 to eth0 Berhanie Linux - Networking 1 02-17-2005 07:59 AM
Eth0 to WLAN0 how do i rename it? XeoNoX Linux - Wireless Networking 5 02-22-2004 05:54 AM
Starting wlan0 instead of eth0 eo697 Linux - Networking 2 10-12-2003 05:02 PM
route wlan0 to eth0 hwood7587 Linux - Networking 1 07-13-2003 06:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 10:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration