LinuxQuestions.org
Review your favorite Linux distribution.
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 05-20-2008, 12:39 PM   #1
hawk_turner
LQ Newbie
 
Registered: May 2008
Posts: 4

Rep: Reputation: 0
udev eth mapping consistency [FC9]


Hello,

I have servers that have swappable hard drives and two NICs.
When I moved one to another server, the network would no longer work stating that the device eth0 was no longer present. Instead, i had eth2, eth3.

I did some research and found that if you delete /etc/udev/rules.d/70-persistent-net.rules it would work again. So, i deleted that file and it did find eth0 and eth1 again... but then all my IP settings i had set up in my sysconfig files no longer worked. Then, when i switched the network cable to the other NIC it all worked. For some reason it did not map eth0 to the same port (same location on back of server) on the new machine.

How can I insure that eth0 always be mapped to the port I want it to be on? Is it even possible with udev? Or anything else I can do?

Thank you.
 
Old 06-10-2008, 10:12 PM   #2
G30ff
LQ Newbie
 
Registered: Jun 2008
Location: Sydney, Australia
Distribution: Fedora
Posts: 2

Rep: Reputation: 0
Are your servers that you swap drives between all based on identical hardware?
 
Old 06-10-2008, 10:26 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Possibly it would allow you to edit the persistent rules file and make the appropriate card with the specific MAC address eth0..
so you would end up with 2 rules that map to eth0 but one rule would be for each server ..

I don't know if that is allowed (two rules mapping to the same device name) but you could certainly try it.. I'm thinking it might ignore the rule for the device that doesn't exist..
 
Old 06-10-2008, 10:37 PM   #4
G30ff
LQ Newbie
 
Registered: Jun 2008
Location: Sydney, Australia
Distribution: Fedora
Posts: 2

Rep: Reputation: 0
An alternative is to ignore the MAC address completely in the name assignment rules and use the PCI bus location. With identical hardware (ie motherboards with multiple network interfaces) the PCI bus location will be the same.

For example:
SUBSYSTEM=="net", SUBSYSTEMS="pci", ACTION=="add", DRIVERS=="?*", KERNELS=="0000:04:02.0", NAME="eth0"
SUBSYSTEM=="net", SUBSYSTEMS="pci", ACTION=="add", DRIVERS=="?*", KERNELS=="0000:04:02.1", NAME="eth1"
 
  


Reply

Tags
eth



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
FC9 -beta Problem anilbh Fedora 6 05-08-2008 09:54 PM
How To Upgrade Fc8 To Fc9 Biswajit Ransingh Fedora - Installation 7 04-07-2008 06:01 AM
consistency! spank Linux - Hardware 0 12-27-2005 09:50 AM
Where is the Consistency ToeShot General 2 11-08-2004 12:09 PM
physical scsi channel mapping to scsiX device node mapping, how to configure manually drthornt Linux - Hardware 3 02-09-2003 11:50 AM

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

All times are GMT -5. The time now is 04:21 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