LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-03-2006, 09:18 PM   #1
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 121Reputation: 121
eth1 and eth2 keeps interchanging


I have a strange problem of late. All these days, eth1 was my Marvell Yukon Gigabit ethernet onboard port which I use for the internet connection and eth2 was the Realtek RTL network card which connects to my other PC in a local LAN.

Now for the past few days I've noticed that eth1 and eth2 have interchanged over the last few reboots. I had to keep changing the /etc/network/interfaces file to keep changing the eth1 and eth2, but I would prefer to solve this strange issue. I'm not sure what causes it.
 
Old 03-04-2006, 12:13 AM   #2
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
I have the same problem on my system. Just install ifrename.
 
Old 03-04-2006, 12:40 AM   #3
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Original Poster
Rep: Reputation: 121Reputation: 121
Maybe it's got something to do with the new udev? Hotplug didn't have any problems...

Thanks for the suggestion.
 
Old 03-04-2006, 12:49 AM   #4
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
I don't know that it is a bug per se. It is probably just a race condition. You might be able to resolve it by putting you pci nic in a different slot.
 
Old 03-04-2006, 10:29 AM   #5
fvdbeek
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
I experienced the same problem and solved it by writing these udev rules:
Code:
KERNEL="eth[0-9]*", SYSFS{address}="xx:xx:xx:xx:xx:xx", NAME="internet"
KERNEL="eth[0-9]*", SYSFS{address}="xx:xx:xx:xx:xx:xx", NAME="network"
Replace the xx:xx:xx:xx:xx:xx with the appropriate MAC-address of the nics, and save the file as /etc/udev/rules.d/010_eth.rules. Then the nics will be renamed consistently after every reboot. The same effect can be reached by ifrename.

Folkert.
 
Old 03-04-2006, 10:49 AM   #6
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 707
Blog Entries: 1

Rep: Reputation: 32
Post

do you have setup respective ip addreses for both cards
 
Old 03-08-2006, 04:46 AM   #7
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Original Poster
Rep: Reputation: 121Reputation: 121
I've done the ifrename thing and created a /etc/iftab to set the ethernet address to bind to the specified mac address.

Thanks for the help.
 
  


Reply


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
eth0 - eth1 - eth2 and how to determine which driver they are using vharishankar Linux - Networking 7 06-02-2005 11:52 PM
Question about wireless networks (ipw2100 and why does it choose eth2 over eth1) Nurdin Linux - Wireless Networking 0 02-17-2005 12:33 AM
eth2 briankb713 Linux - Hardware 0 01-04-2005 09:28 PM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 01:12 PM
eth0 eth1 and eth2 on boot sergiodemoura Linux - Newbie 4 12-03-2003 02:21 AM


All times are GMT -5. The time now is 02:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration