#1  
Old 17th April 2012, 18:29
saco721 saco721 is offline
Member
 
Join Date: Feb 2010
Posts: 63
Thanks: 15
Thanked 1 Time in 1 Post
Default eth0 now eth2 in debian

Hi!,

Yesterday one of my servers went down and I had to move the hard drive to another identical machine. The server was running Debian.

The server was using the network card as eth0. After replacing the 'bad' server I could not get the network up again. (it could not find eth0)

After a lot of testing, I managed to get Debian to see the new network card as eth2. (I set it in /etc/networking/interfaces)

Here is /etc/networking/interfaces

Quote:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
auto eth2
iface eth2 inet static
address 192.168.1.12
netmask 255.255.255.0
gateway 192.168.1.1
here is the output from /etc/udev/rules.d/70-persistent-net.rules :

Quote:
# 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:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:08:74:0d:c6:09", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:08:74:0d:c4:a3", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:08:74:15:e0:a1", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

Anyone here who might know what is causing this, and how to set it to see the network card again as eth0?

Thank you very much for your help!.
Reply With Quote
Sponsored Links
  #2  
Old 17th April 2012, 20:36
kwickcut kwickcut is offline
Senior Member
 
Join Date: Nov 2005
Location: nj usa
Posts: 223
Thanks: 14
Thanked 11 Times in 10 Posts
Default

delete file: /etc/udev/rules.d/70-persistent-net.rules

then restart the machine and you should be good... this is what i did on ubuntu so it should be the same for you

this is the thread if you like to read it

http://www.howtoforge.com/forums/showthread.php?t=56270



kwick
__________________
Operating system Ubuntu Linux 10.04.4
ISPConfig Version: 3.0.4.3
Webmin version 1.580
Kernel and CPU Linux 2.6.32-40-server on x86_64
Processor information AMD Phenom(tm) II X4 945 Processor, 4 cores
Real memory 4.0 GB total
Reply With Quote
  #3  
Old 17th April 2012, 22:13
saco721 saco721 is offline
Member
 
Join Date: Feb 2010
Posts: 63
Thanks: 15
Thanked 1 Time in 1 Post
 
Default

Hey kwickcut,

thanks very much for your reply, now got eth0 back.

best wishes, saco721
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation just stops, and dies. cosmicsafari Installation/Configuration 3 19th July 2011 11:24
[debian 5 + ispconfig 3] Unable to send mail tanakskool HOWTO-Related Questions 6 4th November 2009 19:20
Please help me whit bind9 astra2000 Server Operation 12 10th October 2007 03:43
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 01:57
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 15:42


All times are GMT +2. The time now is 18:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.