View previous topic :: View next topic |
Author |
Message |
gsgleason n00b
Joined: 06 Feb 2007 Posts: 31
|
Posted: Wed Apr 18, 2007 5:11 am Post subject: i have eth0 and eth2 but no eth1 after mobo swapout [SOLVED] |
|
|
I upgraded my desktop pc and put the old motherboard in my gentoo server.
The old motherboard in the server had 2 PCI NICs, one realtek r8169 (gig) and another supported by the e100 module.
The new board has an on board nic, so I now only have one pci nic (the realtek gig-ethernet).
I complied a new kernel with built in support for the VIA rhine II on board ethernet controller as well as the pre-existing r8169.
now, when it boots up, i have eth0 (the pci realtek) but the onboard VIA rhine is eth2.
Any idea why this would be? Here are some lines from /var/log/messages and dmesg from the last bootup containing "eth"
Code: |
/var/log/messages:
Apr 17 15:59:36 slackbox eth0: VIA Rhine II at 0x1d400, 00:0b:6a:76:3f:5b, IRQ 17.
Apr 17 15:59:36 slackbox eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 41e1.
Apr 17 15:59:36 slackbox eth1: RTL8169s/8110s at 0xf8806400, 00:40:f4:e9:cd:88, IRQ 18
Apr 17 15:59:36 slackbox eth2: link up, 100Mbps, full-duplex, lpa 0x41E1
dmesg|grep eth:
eth0: VIA Rhine II at 0x1d400, 00:0b:6a:76:3f:5b, IRQ 17.
eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 41e1.
eth1: RTL8169s/8110s at 0xf8806400, 00:40:f4:e9:cd:88, IRQ 18
eth2: link up, 100Mbps, full-duplex, lpa 0x41E1
r8169: eth0: link up
|
I find it odd that it mentions eth0-eth3 when I only have two nics!!
Last edited by gsgleason on Wed Apr 18, 2007 6:01 am; edited 1 time in total |
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Wed Apr 18, 2007 5:30 am Post subject: |
|
|
Does the motherboard have an IEEE 1394 port? |
|
Back to top |
|
|
CrazyIvanMN n00b
Joined: 20 Feb 2007 Posts: 45
|
Posted: Wed Apr 18, 2007 5:35 am Post subject: |
|
|
I've observed similar but not exactly the same behavior when I changed mainboards on my machine.
it could be that udev is assigning (reassigning) names of your NICs.. Check /etc/udev/rules.d/70-persistent-net.rules (or similar) and see if it's setting the name (based on MAC addresses) for your new/old NICs.
This might not be the case with your system though, since when that happened to me, dmesg was still showing my onboard NIC as eth0 but udev was renaming it eth1 (since it wasn't the same MAC address of the old mainboard). |
|
Back to top |
|
|
gsgleason n00b
Joined: 06 Feb 2007 Posts: 31
|
Posted: Wed Apr 18, 2007 5:45 am Post subject: |
|
|
desultory wrote: | Does the motherboard have an IEEE 1394 port? |
no it does not. ifconfig eth1 says it doesn't exist. |
|
Back to top |
|
|
wizard69 Apprentice
Joined: 22 Sep 2003 Posts: 178 Location: Berlin
|
Posted: Wed Apr 18, 2007 5:54 am Post subject: |
|
|
Create a file called /etc/udev/rules.d/10-local.rules and add the following.
Code: |
KERNEL=="eth*", SYSFS{address}=="00:0e:a6:0e:47:26", NAME="lan"
|
Exchange the mac address with your own the name on the end can be anything you want. That will make sure that your network cards are always assigned to the same device by udev. |
|
Back to top |
|
|
gsgleason n00b
Joined: 06 Feb 2007 Posts: 31
|
Posted: Wed Apr 18, 2007 6:01 am Post subject: |
|
|
CrazyIvanMN wrote: | I've observed similar but not exactly the same behavior when I changed mainboards on my machine.
it could be that udev is assigning (reassigning) names of your NICs.. Check /etc/udev/rules.d/70-persistent-net.rules (or similar) and see if it's setting the name (based on MAC addresses) for your new/old NICs.
This might not be the case with your system though, since when that happened to me, dmesg was still showing my onboard NIC as eth0 but udev was renaming it eth1 (since it wasn't the same MAC address of the old mainboard). |
That was exactly it. you rock! Thanks! |
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
|
Back to top |
|
|
|