Today I needed to change a network card on one of my Debian Lenny severs. The server was using the network card as eth1. After replacing the 'bad' card I could not get the network up again. (it could not find eth1) After a lot of testing things I managed to get Lenny to see the new network card as eth2. (I set it in /etc/networking/interfaces) As this card was also not working the way I wanted, I changed it again to a new network card. Again I had the same problem. No way that I could get it to work as eth1 OR eth2. After setting it to eth3 in interfaces all was working fine again..... Anyone here who might know what is causing this, an how to set it to see the new (now set to eth3) network card again as eth1?
damir, Let me try to explain exactly what I've been doing here as the above message was only a simplified version. The server in question (a Dell SC1425) is now using a HDD with a Lenny OS on it that has been installed on an other identical Dell SC1425. After some time I again moved the HDD to an other Dell SC1425 as the server it was 1st in was about to stop working.. Anyway. The HDD (with the 1st install of Lenny) has been moved several times from Dell SC1425 servers. Everytime I moved the HDD to an other SC1425 I needed to change the ethX to an other number. So.. Here is the requested output. Code: host:/home/# cat /etc/udev/rules.d/70-persistent-net.rules # This file was automatically generated by the /lib/udev/write_net_rules # program run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single line. # PCI device 0x8086:0x1076 (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:22:09:bb:c8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x8086:0x1076 (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:22:09:bb:c9", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x14e4:0x1659 (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:c5:fa:56:ea", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # PCI device 0x14e4:0x1659 (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:c5:fa:56:e9", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x8086:0x1076 (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:13:72:3f:f4:bb", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" # PCI device 0x8086:0x1076 (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:13:72:3f:f4:bc", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth5" # PCI device 0x8086:0x1076 (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:22:b0:33:de", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth6" # PCI device 0x8086:0x1076 (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:22:b0:33:dd", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth7" host:/home/# eth7 is the one that I'm now using
Udev has assigned different names for every network change. As you can see there is different mac addresses for every ethX. How many nics do you have and is eth7 only entry in /etc/networking/interface file?
The Dell SC1425 has two nics, but I'm only using one (the other one is disabled in the BIOS) Also.. My error. I'm now using eth0, and NOT eth7 Anyway.. In /etc/network/interfaces I now have eth0 and eth0:1 (virtual nick)
Hmmm strange.. /etc/network/interfaces is showing me eth0 and eth0:1 only, but when I do a ifconfig I get this. Code: host:/etc/network# ifconfig eth6 Link encap:Ethernet HWaddr 00:14:22:b0:33:de inet addr:90.71.211.182 Bcast:90.71.211.191 Mask:255.255.255.192 inet6 addr: fe80::214:22ff:feb0:37de/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:295170211 errors:0 dropped:0 overruns:0 frame:0 TX packets:261835956 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:1218305526 (1.1 GiB) TX bytes:397696922 (379.2 MiB) eth6:1 Link encap:Ethernet HWaddr 00:14:22:b0:33:de inet addr:90.71.211.183 Bcast:90.71.211.191 Mask:255.255.255.192 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth6:2 Link encap:Ethernet HWaddr 00:14:22:b0:33:de inet addr:90.71.211.184 Bcast:90.71.211.191 Mask:255.255.255.192 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth6:3 Link encap:Ethernet HWaddr 00:14:22:b0:33:de inet addr:90.71.211.185 Bcast:90.71.211.191 Mask:255.255.255.192 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth6:4 Link encap:Ethernet HWaddr 00:14:22:b0:33:de inet addr:90.71.211.186 Bcast:90.71.211.191 Mask:255.255.255.192 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth6:5 Link encap:Ethernet HWaddr 00:14:22:b0:33:de inet addr:90.71.211.187 Bcast:90.71.211.191 Mask:255.255.255.192 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 (IP's have been changed a bit by me)