LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-04-2009, 04:46 PM   #1
wsduvall
Member
 
Registered: Aug 2006
Posts: 92

Rep: Reputation: 16
NIC eth# keeps changing


Hey guys,

I've got a RAID server with three NIC's in them (two gigabit and one on-board). When I first installed Linux, the card I was using was eth0. Then I rebooted, and it was eth1 and then eth2. I know this has something to do with how the modules are loaded. Anybody know how to fix this? The machine is running Arch Linux.
 
Old 03-04-2009, 07:04 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
My PCLOS system has the following lines in /etc/udev/rules.d/61-net_config.rules

Code:
# grep -H eth rules.d/*
rules.d/61-net_config.rules:SUBSYSTEM=="net", ACTION=="add", ENV{INTERFACE}!="*.*", SYSFS{address}=="00:09:5b:bb:f1:ed", NAME="eth0", ENV{MDV_CONFIGURED}="yes"
rules.d/61-net_config.rules:SUBSYSTEM=="net", ACTION=="add", ENV{INTERFACE}!="*.*", SYSFS{address}=="00:0f:b5:8d:cb:2f", NAME="eth1", ENV{MDV_CONFIGURED}="yes"
#
It looks like it is assigning the eth number by the hardware address of the card.
 
Old 03-05-2009, 07:28 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
some nvidia chipset motherboards also had a BIOS option to change the MAC address of the on board NICs at every boot. that would be another thing to check. the MAC changing would add new rules to the file stress_junkie posted at every boot, as it automatically created a new rule to match the new MAC address..

If this is your issue, check in the BIOS for some 'security / anonymity' setting for the NIC


http://www.reactivated.net/writing_udev_rules.html
 
Old 03-05-2009, 09:57 AM   #4
wsduvall
Member
 
Registered: Aug 2006
Posts: 92

Original Poster
Rep: Reputation: 16
Alright thanks guys! I'm going to try the udev rules when I get out of class, and may post further questions.

Looks like changing the udev rules fixed the problem. Thanks guys!

Last edited by wsduvall; 03-06-2009 at 07:19 AM.
 
  


Reply



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
eth:0 Failed - NIC Issue .... Genith Linux - Networking 7 01-30-2006 03:55 AM
HOWDOI implicitily configure a USB NIC to be eth(whatever) zareous Linux - Hardware 2 07-20-2005 01:15 AM
Bind ETH devices to specific NIC/MAC not_an_expert Slackware 8 10-13-2004 11:00 AM
How to specify which eth# maps to to which nic. dileepkk Linux - Networking 5 07-27-2004 07:01 AM
E100: eth NIC link is down. bossie Linux - General 1 10-18-2003 11:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:16 PM.

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