Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-07-2005, 11:13 AM
|
#1
|
LQ Newbie
Registered: Nov 2005
Location: Lewisville Texas
Posts: 4
Rep:
|
eth0 and eth1 switch places on reboot?
Had a network problem the other night and had to reboot the server. Upon starting the nic cards reversed order. The eth0 information was switch with the eth1 information creating tons of confusion. The mac address was hard coded in the /etc/syconfig/ area but hwconf seems to have chanced. Any idea why the cards would have switched? Can anyone point me in the right direction?
|
|
|
12-12-2005, 03:55 PM
|
#2
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
The first card to load it's driver gets to be eth0..
It can be controlled by delaying setting up eth1 until eth0 settles,
however there are several factors in play here.
acpi is the first to detect the card, then hotplug then your /etc/modules file then the /etc/init.d scripts.
Usually, the rc.d scripts and ifup allow you to specify a pre-up script/command, which you could use to load the respective eth modules, if they aren't autoloading already. Your distro will have a specific way of doing this..
But if all else fails, compile into the kernel the driver for the card you want to be eth0. This ensures it will get loaded by the acpi system before any other scripts run.
|
|
|
12-12-2005, 04:18 PM
|
#3
|
LQ Newbie
Registered: Nov 2005
Location: Lewisville Texas
Posts: 4
Original Poster
Rep:
|
The problem is that the cards are the same and the system has been rebooted several times before without the cards switching. Now all of the suddon the cards switch and great a networking nightmare. I have never had cards switch at this point.
|
|
|
12-12-2005, 04:44 PM
|
#4
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
Take a close look at the boot logs.
There is a lot of detailed info about hardware being detected and modules loading. You may get some more sense comparing a pre and post problem log.
Usually nothing changes until something changes..
|
|
|
12-13-2005, 03:39 PM
|
#5
|
LQ Newbie
Registered: May 2005
Posts: 9
Rep:
|
i think that your net cards has a different module name. so if i correct, you can assign your card1 to eth0 with alias command. so in modules.conf add: alias eth0 module_name
Last edited by pIscIs; 12-13-2005 at 03:42 PM.
|
|
|
12-14-2005, 09:31 AM
|
#6
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
All that will do is load the particular module regardless of the type of NIC found as eth0..
|
|
|
12-14-2005, 10:04 AM
|
#7
|
LQ Newbie
Registered: Nov 2005
Location: Lewisville Texas
Posts: 4
Original Poster
Rep:
|
I will have to moniter it from this point forward. I just started working for this company and don't know anything about this systems. They had no linux admin until about 2 weeks ago... me. I was just concerned because I have never seen cards set to macs chance name locations without being told to do so. I am starting to believe that someone set it up that way and upon boot it did it. No way to tell because the logs don't show anything but normal steps.
|
|
|
12-14-2005, 03:14 PM
|
#8
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
dmesg or your boot log will show which card it believes it found first..
eg.
PCI: Found IRQ 11 for device 00:0d.0
eth0: RealTek RTL8139 at 0xd0822f00, 00:90:0b:04:47:91, IRQ 11
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
shows the first found card was in pci slot 00:0d.0
or if you've got acpi working..
ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
e100: eth0: e100_probe: addr 0xe6000000, irq 11, MAC addr 00:A0:C9:4B:B5:79
shows the first found card was in pci slot 0000:01:00.0
There's no reason for this to change unless the BIOS is changed.
|
|
|
12-14-2005, 08:33 PM
|
#9
|
Member
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315
Rep:
|
slayer17 ... there is no magic .. it was always like this.
It has to do with what boot/install did with module.conf does ..
edit the file and live happy thereafter.
Peter_Robb is correct, but the only twist I am suggesting is that it was always like this .. has happend to me a zillion times ... mostly with Suse, knoppix/Mepis never caused the same grief on the same hardware
|
|
|
All times are GMT -5. The time now is 01:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|