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

Notices


Reply
  Search this Thread
Old 10-24-2007, 03:19 PM   #1
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 32
Suddenly NIC names change


Hello,
I have two lan cards:
1) integrated RTL8169 Gbit
2) external PCI RTL8139
They are both compiled as modules for the kernel 2.6.21.5
After a restart it happened their names (eth0, eth1) are changed. Why is that?
Does it matters which module loads first? If yes - how to check that?

Thanks!
 
Old 10-24-2007, 05:19 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Modules can usually be define in /etc/modprobe.conf file. Define an alias for eth0 and the module for it to use. Same for eth1. Not sure if it has an effect based on PCI interrupt order. If certain changes were made in the kernel on the pci then it may have this effect.

Brian
 
Old 10-24-2007, 11:59 PM   #3
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
Quote:
Originally Posted by Brian1 View Post
Modules can usually be define in /etc/modprobe.conf file.
Code:
# The use of this config file is deprecated.
# Instead, create files in the /etc/modprobe.d/ directory
# containing modprobe options.
Or you can use udev, and set a rule which will always assign the interface based on the MAC.

Cheers.
 
Old 10-25-2007, 07:05 AM   #4
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 32
Neccesarry rules found in /etc/udev/rules.d/network-devices.rules !
I just had to uncomment the right lines:
KERNEL=="eth?", SYSFS{address}=="00:13:8f:ea:f0:1e", NAME="eth1"
KERNEL=="eth?", SYSFS{address}=="00:19:e0:0e:e8:7d", NAME="eth0"
 
  


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
NIC stops working suddenly mhm Linux - Networking 5 06-10-2007 01:35 PM
NIC suddenly undetected linuxboy_inside Linux - Hardware 1 08-12-2005 05:35 PM
Why does my username suddenly change? manhinli LQ Suggestions & Feedback 7 06-02-2005 01:23 AM
Switch wireless and wired NIC names sharpie Linux - Wireless Networking 0 09-12-2004 03:18 AM
suddenly unable to change permissions (very strange) hobylinux Linux - Hardware 5 09-15-2003 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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