LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Eth0 seems to not exist. (https://www.linuxquestions.org/questions/linux-server-73/eth0-seems-to-not-exist-4175441485/)

AtlasDragon 12-14-2012 03:55 PM

Eth0 seems to not exist.
 
I am a support technician for Atlas Networks.
I have a very strange CentOS issue.

I originally installed CentOS on a SuperMicro board, with the intent to move the drive to a different newer board.
After the move, the Intel network interface on the new board appears to not be seem by CentOS. lsmod shows the e1000e module loaded, and it makes no difference.

I have taken the new system and installed Centos, and verified that it will use the NIC natively, so this is not a 'missing module' issue.

The original board is a Super Micro X8STI-F
The newboard is an Intel DX79T0

The system this CentOS installation is running on is a Production server, so I am not open to just 'Try' things with out a definitive solution, or at least something that sounds very promising.

amani 12-15-2012 11:21 AM

What happens to the card during boot?

correctly it is supposed to become active.

post output of lspci -v

pantdk 12-15-2012 12:18 PM

check the status or whether the nic is present or not
mii-tool -v

lspci -v "check the nic type, if "e1000e" something is showing then go to the Intel site & download the driver for the linux & install the gcc for compiler gcc compiler is required to install the driver

#yum install gcc*

then untar the pkg of the drive

tar zxf e1000e-<x.x.x>.tar.gz

Change to the driver src directory, where <x.x.x> is the version number for the driver tar:

cd e1000e-<x.x.x>/src/

Compile the driver module:

# make install


more see the link

http://www.intel.com/support/network/sb/cs-032514.htm

btmiller 12-15-2012 10:57 PM

Try typing "ifconfig -a" to see if the card has been given another name such as eth1 or eth2. I've noticed RHEL-based distros tend to hard-code the hardware address of the network adapters into their config files (for eth0 this config file is /etc/sysconfig/network-scripts/ifcfg-eth0). This is done so that interfaces do not change names when cards are added or removed. However, it means that if you move a drive to a new server, the network interface will not be called eth0 (since the system thinks eth0 should have a different hardware address). You'll need to edit the HWADDR line in the config file to change this or simply use the new interface name.

AtlasDragon 12-16-2012 03:36 PM

Quote:

Originally Posted by btmiller (Post 4850191)
Try typing "ifconfig -a" to see if the card has been given another name such as eth1 or eth2. I've noticed RHEL-based distros tend to hard-code the hardware address of the network adapters into their config files (for eth0 this config file is /etc/sysconfig/network-scripts/ifcfg-eth0). This is done so that interfaces do not change names when cards are added or removed. However, it means that if you move a drive to a new server, the network interface will not be called eth0 (since the system thinks eth0 should have a different hardware address). You'll need to edit the HWADDR line in the config file to change this or simply use the new interface name.

This did it. It runs out it was assigned eth2. I am used to debian, so CentOS and RHEL is new for me.
Thanks for your help.

solarisguy 12-19-2012 02:38 AM

Change ethX interface name
 
Quote:

Originally Posted by AtlasDragon (Post 4850559)
This did it. It runs out it was assigned eth2. I am used to debian, so CentOS and RHEL is new for me.
Thanks for your help.

If you look in /etc/udev/rules.d/70-persistent-net.rules (or maybe 60-net.rules) you should see your physical device and its alias to eth2. You may see other ethernet devices here as well. If you reorder the device names in the udev rules (as well as update the corresponding HWADDR lines in /etc/sysconfig/network-scripts/ifcfg-ethX), then reboot, it will map the devices in the desired manner.

It can be a bit annoying that devices that have been removed still occupy their ethX interface alias. If there are old devices (no longer on the system), you can delete the lines referring to these lines entirely.


All times are GMT -5. The time now is 02:20 PM.