Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-26-2003, 06:43 PM   #1
LQ Newbie
Registered: Aug 2003
Location: London, UK
Distribution: SuSE 8.2 Pro
Posts: 5

Rep: Reputation: 0
Question how to set which NIC is eth0, & which is eth1

Hi all,

Short version:

I have two NICs on my PC. How can I force which one is mapped to eth0 and which one is mapped to eth1?

Long version:

I have recently installed SuSE 8.2 as an alternate OS to Win2K. On Win2K, I have been using the Linksys wirless WMP11 v2.7, but as this is unsupported in Linux, I have added a second Netgear NIC for Linux.

The trouble is, linux has decided that the WMP11 card should be eth0, and that the Netgear is eth1.

This means that during boot up, eth0 fails to initialise, which means that eth1 is ignored, which means that I get no network interface other than lo.

For the short term, I have just been restating the network once logged in, which brings up the Netgear as eth0, and everything works fine. Of course, I'd rather this happened automatically.

Does anyone know how I can switch things around so that linux considers the netgear as eth0 and the WMP11 as eth1?

The wire-based Netgear NIC is a short-term solution until I decide what I am going to do about my unsupported WMP11, so I would rather not remove the WMP11 as the solution to my problem.

Thanks in advance,
Old 08-26-2003, 07:06 PM   #2
LQ Newbie
Registered: Aug 2003
Location: Arizona, uSA
Distribution: Mandrake 9
Posts: 1

Rep: Reputation: 0
I will try here...Newbie myself...

It is my understanding that Linux addresses/identifies the NIC as eth0,1, .... based upon the IRQ assigned to the slot in which it is inserted and further by the BIOS addressing the IRQ to that slot ...

- Miron
Old 08-26-2003, 07:29 PM   #3
Senior Member
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Rep: Reputation: 47
nope wrong
the first network card identified is automatically eth0 by order of the kernel, secodn is then eth1 and so on

only way to set which is first is to make the network card drivers into modules and then load the driver fopr the card you want to be eth0 first then load the other, but this does not work if you have 2 identical cards. for instance a 3com and a realtek, you load the driver of the oen you want to be eth0 first

you can set this in the startup files, which files depends on distro, I am not a suse guy and I am also not familiar with modules.conf as I load modules another hacked way.
Old 08-26-2003, 08:21 PM   #4
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
I managed to do it when I was using redhat by adding the line


in the appropriate ifcfg file, and entries in modules.conf although it involved alot of messing around to get it thus as it had already been detecting them the way it normally does.

Or maybe I just got lucky
Old 09-01-2003, 12:08 PM   #5
LQ Newbie
Registered: Aug 2003
Location: London, UK
Distribution: SuSE 8.2 Pro
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for all the replies.

I thought that there may be a simple way to do it, but it looks like it is more complicated than I thought.

In the end, I just removed the configuration for the WMP11, so that Linux does not even try to bring it up. This way, my Netgear NIC gets to be eth0, and everything works fine.

I guess this is the best solution for now, since the WMP11 isn't supported anyway, and it's probably good not to have it half configured on my system. At least I didn't have to physically unplug it, which is what I wanted to avoid having to do.

Thanks again,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how do i assign/switch eth0 & eth1 the-sloth Linux - Networking 10 02-05-2011 01:48 PM
How do I set the ip address for eth0, eth1 and the default gateway? abefroman SUSE / openSUSE 5 05-19-2005 05:15 AM
Eth0 & Eth1 boot start Up FAILED.. PAOLO_GRS Linux - Networking 1 09-03-2004 08:18 PM
Swapping eth0 & eth1? sarah_t_s Slackware 6 07-25-2004 12:14 PM
eth0 & eth1 switched superbondbond Linux - Hardware 5 12-12-2003 09:59 AM > Forums > Linux Forums > Linux - Networking

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

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