The aim is to standardize the Ethernet adapter type on all production servers. One of these servers disposes an em1, rather than eth0.
Today, an attempt has been done to change it, without success. Before executing a second attempt, this conversion will be tested first.
A Vagrant box has been created and eth0 is the current adapter.
To mimic the production setting, the eth0 needs to be changed to em1. Biosdevname has been installed (
sudo yum install biosdevname -y),
70-persistent-net.rules removed (
sudo rm /etc/udev/rules.d/70-persistent-net.rules),
biosdevname=1 executed and added to
/etc/grub.conf as follows:
# grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root # initrd /initrd-[generic-]version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Scientific Linux (2.6.32-431.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet initrd /initramfs-2.6.32-431.el6.x86_64.img biosdevname=1
However, once the system has been rebooted and
ifconfig has been executed the eth0 adapter persists.
How to change