Re: [SLUG] eth1 or wlan1

From: Eben King (eben01@verizon.net)
Date: Mon Aug 07 2006 - 10:25:17 EDT


On Mon, 7 Aug 2006, Chuck Hast wrote:

> I was under the impression that when you set up a wireless lan nic it was
> assigned a device name of wlan something. Indeed on my desktop I have
> a wireless lan card and the wireless lan device is wlan0, the wired nic card
> is eth0. But on my laptop eth0 is the wired device and eth1 is the wlan
> device, It appears that the nic management tool is trying to handle the
> ethernet device as though it was a wireless nic. I just disregard the
> wireless
> stuff for it, but it is not logical to step through a bunch of wireless
> params
> for a wired nic. What is involved in changing eth1 to wlan0? so that it is
> more like what I am used to with other wireless card installs? Not sure
> why the system has set it's self up this way. I am using SuSE 10.1,
> but it was like that with 10.0 too.

Is the "wlan" one running an older kernel? I looked in the source for
2.6.1[35].1 and found no uses of the string "wlan" but found 7 references to
the string "eth" each. I think that sort of thing is controlled by the
kernel. If you're running one specific to your distribution, who knows how
they've modified it. What I did was

eben@pc:~$ uname -r
2.6.13.1
eben@pc:~$ find /usr/src/linux-`uname -r` -name \*.[ch] | xargs grep '"wlan"'
eben@pc:~$ find /usr/src/linux-`uname -r` -name \*.[ch] | xargs grep '"eth"'
/usr/src/linux-2.6.13.1/arch/um/drivers/net_kern.c:__setup("eth", eth_setup);
/usr/src/linux-2.6.13.1/arch/um/drivers/net_kern.c: .name = "eth",
/usr/src/linux-2.6.13.1/arch/xtensa/platform-iss/network.c:__setup("eth", iss_net_setup);
/usr/src/linux-2.6.13.1/drivers/net/Space.c: unsigned long base_addr = netdev_boot_base("eth", unit);
/usr/src/linux-2.6.13.1/drivers/net/sunhme.c: if (!strncmp(dev->name, "eth", 3)) {
/usr/src/linux-2.6.13.1/drivers/net/tulip/de4x5.c: if (!(q = strstr(p+strlen(dev->name), "eth"))) q = p + strlen(p);
/usr/src/linux-2.6.13.1/net/irda/irlan/irlan_common.c:static int eth; /* Use "eth" or "irlan" name for devices */

If you see anything additional (except maybe "rcX") in the "uname"'s output,
you have a modified kernel.

Your kernel source (if installed) may be elsewhere.

-- 
"The Web brings people together because no matter what kind of a twisted
  sexual mutant you happen to be, you've got millions of pals out there.
  Type in 'Find people that have sex with goats that are on fire' and the
  computer will say, 'Specify type of goat.'" -- Rich Jeni
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:45:11 EDT