Mar 5, 2019
176 Views
Comments Off on How to remove old NICs in RHEL / CentOS 6 or 5

How to remove old NICs in RHEL / CentOS 6 or 5

Written by

Removing old NICS from your virtual machines is typical when moving virtual machines to different hyper visors. Ie, moving a VMware Virtual Machine to to Hyper-V or VirtualBox.

Using your favorite editor, edit the following

/etc/udev/rules.d/70-persistent-net.rules (CentOS 6 only)

The first device will be the old NIC, comment it out with a # and change the name=””

to your old NIC value, typically eth0

then save the file and restart networking. This in most cases will solve the issue.

For CentOS / RHEL 5.X

remove the following

/etc/sysconfig/networking/devices/ifcfg-eth*
/etc/sysconfig/networking/profiles/default/ifcfg-eth*
/etc/sysconfig/network-scripts/ifcfg-eth*

then reboot

#reboot -t now

Then run  system-config-network

This will allow the creation of the new device with the network settings you provide.

finally restart networking.

/etc/init.d/network restart

Leave your vote

0 points
Upvote Downvote

Comments

0 comments

Article Tags:
· · ·
Article Categories:
Linux

Log In

Forgot password?

Forgot password?

Enter your account data and we will send you a link to reset your password.

Your password reset link appears to be invalid or expired.

Log in

Privacy Policy

Add to Collection

No Collections

Here you'll find all collections you've created before.