[SOLVED] How can I get CentOS to recognize the nic (eth0) after changing the mother board?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Centos 7 didn't rename it to enp7s4. Red Hat followed BSD naming conventions to more easily help advanced users find what nic they really are using rather than an arbitrary enX number. My guess is that most other distro's will eventually follow this naming.
I'd also suggest ip command or ifconfig -a to find out what you have. I too agree that it may be named differently based on the motherboard change.
Fedoara, RedHat and clones are stinkers and have been stinkers when cloning or moving to other hardware because they way it located nic's before. There is some file you have to edit if the name is wrong to get back to eth0.
Now, if your nic isn't fully supported then you either need to do one or more of the following. Blacklist driver, add in driver, use ndiswrapper to run windows driver.
CentOS is the same. If you delete the /etc/udev/rules.d/70-persistent-net.rules and remove the MAC address from the ifcfg-eth0 file networking should be reconfigured when you reboot.
You might check the configuration files. Those generated by the GUI tend to have the MAC address AND a UUID included. And these alone will prevent the network device from being recognized.
If the file /etc/sysconfig/network-scripts/ifcfg-<interface> have an entry "HWADDR=" and/or "UUID="
you would have a problem. I just commented out the "UUID=" entry (using #) and then replace the MAC address with that of the new entry.
No problems after that. In the case of my SuperMicro motherboard, the system named the interface enp6s0 and enp6s1 (I'm using Fedora 21).
I had no need to change drivers - the system recognized them appropriately.
CentOS is the same. If you delete the /etc/udev/rules.d/70-persistent-net.rules and remove the MAC address from the ifcfg-eth0 file networking should be reconfigured when you reboot.
I never had an issue with the old way. Got my order by placing the MAC address in the config files. The new way make you have to think about what port is where. Besides it is easier to remember eth0 instead of enp7s4 (had to look it up).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.