LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-10-2013, 08:41 AM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Can't bring up eth0 or eth1 after replacing main harddrive (centos)


I replaced the harddrive on my box with one with centos preinstalled (the previous drive with centos went bad).

However it would not let me bring up any of the eth interfaces and would give the error:
Code:
]#ifup eth0
Device eth0 does not seem to be present, delaying initialization.
If there a way to get it to recognize the interfaces without reinstalling the OS?

TIA
 
Old 08-10-2013, 08:54 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Post the output of
Code:
ifconfig -a
and
Code:
cat /etc/sysconfig/network-scripts/ifcfg-eth0
 
Old 08-10-2013, 09:05 AM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:435612 errors:0 dropped:0 overruns:0 frame:0
TX packets:435612 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:206646569 (197.0 MiB) TX bytes:206646569 (197.0 MiB)

# cat ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=none
IPADDR=11.11.11.11
PREFIX=24
GATEWAY=11.11.11.1
DNS1=8.8.8.8
DNS2=8.8.8.8
DOMAIN=domain.com
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
 
Old 08-10-2013, 10:02 AM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Hmm.. looks like no driver for your ethernet. What hardware do you have?

Easiest way to check is
Code:
lspci |grep Ether
 
Old 08-10-2013, 10:32 AM   #5
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
# lspci |grep Ether
0d:00.0 Ethernet controller: Intel Corporation 82573E Gigabit Ethernet Controller (Copper) (rev 03)
0f:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
 
Old 08-10-2013, 10:51 AM   #6
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Please try:
Code:
modprobe e1000
ifconfig -a
 
Old 08-23-2013, 09:45 PM   #7
lag_rvp
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Rep: Reputation: Disabled
Have you found the solution yet?

A lot of times if /etc/sysconfig/network-scripts/ifcfg-eth* has a detailed "static" configuration it will not work on any other box as is... being preconfigured, I'm guessing this is the issue.
 
Old 08-27-2013, 04:48 AM   #8
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
The OP stated that he installed a new harddisk with an pre-installed OS. I bet he's having problems with udev rules.
@abe Check in /etc/udev/rules.d. There should be a net-persistent rules file. Remove all references to the eth devices and restart your system.

Cheers
 
Old 08-28-2013, 01:27 PM   #9
CodeFreaker
LQ Newbie
 
Registered: Feb 2010
Posts: 27

Rep: Reputation: 12
Smile

Quote:
Originally Posted by abefroman View Post
I replaced the harddrive on my box with one with centos preinstalled (the previous drive with centos went bad).

However it would not let me bring up any of the eth interfaces and would give the error:
Code:
]#ifup eth0
Device eth0 does not seem to be present, delaying initialization.
If there a way to get it to recognize the interfaces without reinstalling the OS?

TIA
yes you can remove 70-persistent-net.rules in cd /etc/udev/rules.d/ and must restart the box.
 
  


Reply



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
is this legal: can still ping eth1 through eth0, even if eth1 cable is unplugged 5883 Linux - Networking 2 12-05-2012 03:55 AM
CentOS 5.2: Only one of eth0 (internet) or eth1 (LAN) works Sinedie Linux - Networking 3 08-20-2008 04:52 AM
howto acess intrnet thru eth1(wireless card)in winXP via briging in linux(eth0-eth1) labhesh_popli Linux - Wireless Networking 1 09-21-2006 01:11 AM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM
Kernel 2.4.22 finds eth0 and eth1 but 2.6.0 does not find eth1 coollink Linux - Networking 3 01-13-2004 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:12 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration