SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a system running slack 9-current.. it is a dell optiplex with an onboard intel pro/1000 MT nic. I just recently installed a dual port pro/1000 MT nic as well. Currently eth0 comes up as the first port of the dual nic, and eth1 is the 2nd port, and eth2 is the onboard nic. They all use the e1000 module and are all functioning correctly.
question: how can i make the onboard nic to be eth0?
I've tried adding the following to /etc/modules.conf :
alias eth0 e1000
alias eth1 e1000
alias eth2 e1000
options e1000 io=0xecc0,0xec80,0xec40
and also :
options e1000 irq=10,9,11
but on bootup i get an err saying e1000 does not support those parameters... not sure what else to try..
I got also that problem with my 2 nics (dlink 538-TX). And I come to the conclusion that the device (ethx) assignment is not related to IRQ,MAC nor to pci slot order, but maybe to the I/O address used by the NICs (I can be wrong).
The older ISA card need to be configured with irq,i/o but pci is plugNplay, that mean those irq,i/o will be assigned by the OS. I heard there are tool for that mii somethang (nope sure, maybe only for 538-tx card).
I quest on lilo there is a possibility to specify the irq,i/o for ethx, am nope sure whether this work, also don't have the time to probe n learnt to accept my eth1 to be the gateway to internet ..
We have 2 onboard tx, 1 Dual port fiber, 1 quad port Copper TX.
They all GB cards using the Innel e1000 driver.
Whats odd is...
Onboard is Eth0,1
Dual Fiber is Eth 2,4
Quad port is Eth 5,3,7,6. (top to bottom on card)
On the QUAD port it isn't even contiguous or in order. ARG.
I read an arcticle about using udev scripting to rename, based on MAc, which sounded liek a good idea. But I'd like to know what enables the wierd assignments. On teh exampe above, why in the world is ETH3 in the middle of a card?
Slackware 12.0 and up using UDEV will allow you to configure your network device assignments through the file /etc/udev/rules.d/75-network-devices.rules .
An example of that file shows how UDEV matches MAC addresses to device names:
If you swap the eth0 and eth1 in that file (which will be re-generated on boot if you delete it by the way), then your devices will be (re-)named exactly as defined there.
For non-UDEV systems you will have to pass the interface name on the kernel command line (e.g. in lilo.conf's "append" line) together with IO and IRQ addresses if possible, or else using modprobe options in /etc/modules.conf (2.4 kernels) or /etc/modprobe.conf (older Slackwares that do not have a /etc/modprobe.d/ directory).
Thanks Eric. I have successfully renamed the ports using UDEV, so physical ports now match ETH names in logical sequential order!
However, still one more small issue. When I type IP ADDR, the ETH ports are listed out of order. This is rather ugly. Any way to make them list starting at ETh0 and sequentially down?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.