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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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? |
| |||
| 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" |
| |||
| 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 |
| ||||
| 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 |