Unix Technical Forum

Changing network interfaces - eth0 / eth1

This is a discussion on Changing network interfaces - eth0 / eth1 within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> My interfaces seem to have swapped and not sure why. I have a PCI wireless card and an onboard ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 08:49 PM
trryhend@gmail.com
 
Posts: n/a
Default Changing network interfaces - eth0 / eth1

My interfaces seem to have swapped and not sure why. I have a PCI
wireless card and an onboard ethernet device. They have previously
been eth0-ethernet & eth1-wireless-wifi0, but when I just now booted,
I see that they have swapped.
Why would this happen? How can I stop it from happening in the
future?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 08:49 PM
Mike
 
Posts: n/a
Default Re: Changing network interfaces - eth0 / eth1

trryhend@gmail.com wrote:
> My interfaces seem to have swapped and not sure why. I have a PCI
> wireless card and an onboard ethernet device. They have previously
> been eth0-ethernet & eth1-wireless-wifi0, but when I just now booted,
> I see that they have swapped.
> Why would this happen? How can I stop it from happening in the
> future?


>From http://www.puresimplicity.net/~twinreverb/linux/config/

config.html

NEW: Assigning device nodes to network cards using Udev
Slackware 10.2 and after started using the udev daemon.
Basically, this loads modules and assigns their device node in /dev
automatically. However, sometimes you want a specific network card to
be assigned to a specific device node. In which case, if you look in /
etc/udev/rules.d/network-devices.rules, you will see:

#KERNEL=="eth?", SYSFS{address}=="00:0f:7b:4b:47:17", NAME="eth0"
#KERNEL=="eth?", SYSFS{address}=="00:0f:35:3c:92:cb", NAME="eth1"

Basically, this is where udev put a helpful configuration. I
detected two network cards, and assigned them, but included a
configuration to set which device node they get assigned to. Like
when I booted, my wireless card was eth0, and my ethernet card was
eth1. In the configuration above, however, if I uncomment it, this
would make my wireless card eth1 and my ethernet card eth0. What you
need to do if you are not sure is look at the MAC addresses of the
ethernet cards using a command like this:

KERNEL=="eth?", SYSFS{address}=="MAC ADDRESS", NAME="DEVICE NODE"

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 08:49 PM
Douglas Mayne
 
Posts: n/a
Default Re: Changing network interfaces - eth0 / eth1

On Tue, 30 Jan 2007 06:18:40 -0800, trryhend@gmail.com wrote:

> My interfaces seem to have swapped and not sure why. I have a PCI
> wireless card and an onboard ethernet device. They have previously
> been eth0-ethernet & eth1-wireless-wifi0, but when I just now booted,
> I see that they have swapped.
> Why would this happen? How can I stop it from happening in the
> future?
>

Are you running Slackware 11? Then this thread about udev has a hint:
http://groups.google.com/group/alt.o...fc13c6e9950f75

(and other messages on the thread)

--
Douglas Mayne


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 08:50 PM
trryhend@gmail.com
 
Posts: n/a
Default Re: Changing network interfaces - eth0 / eth1

On Jan 30, 8:32 am, Douglas Mayne <d...@slack-1a.localnet> wrote:
> On Tue, 30 Jan 2007 06:18:40 -0800, trryh...@gmail.com wrote:
> > My interfaces seem to have swapped and not sure why. I have a PCI
> > wireless card and an onboard ethernet device. They have previously
> > been eth0-ethernet & eth1-wireless-wifi0, but when I just now booted,
> > I see that they have swapped.
> > Why would this happen? How can I stop it from happening in the
> > future?

>
> Are you running Slackware 11? Then this thread about udev has a hint:http://groups.google.com/group/alt.o...sg/c8fc13c6e99...
>
> (and other messages on the thread)
>
> --
> Douglas Mayne


Yes, Slackware version is 11.0 and kernel version is 2.6.18 and
running udev

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:03 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com