Change default network name “eth0” centos7

# vi /etc/default/grub

Make change at line GRUB_CMDLINE_LINUX

GRUB_CMDLINE_LINUX=”rd.lvm.lv=rootvg/usrlv rd.lvm.lv=rootvg/swaplv crashkernel=auto vconsole.keymap=us rd.lvm.lv=rootvg/rootlv vconsole.font=latarcyrheb-sun16 rhgb quiet net.ifnames=0 biosdevname=0”
 # grub2-mkconfig -o /boot/grub2/grub.cfg 

Output,

Generating grub configuration file …
Found linux image: /boot/vmlinuz-3.10.0-121.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-121.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-df30d92ad3eb414583d85bb471003eb4
Found initrd image: /boot/initramfs-0-rescue-df30d92ad3eb414583d85bb471003eb4.img
done
#vi /etc/udev/rules.d/70-persistent-ipoib.rules

add this two lines

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

instead xx:xx should be hardware address.

#cd /etc/sysconfig/network-scripts/
#cp ifcfg-eno1 ifcfg-eth0
#cp ifcfg-eno2 ifcfg-eth1

use ifcfg-eth0 conf file to change param.

#vi /etc/sysconfig/network-scripts/ifcfg-eth0

TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eno1 ---> eth0
UUID=e904c92a-e00d-42de-9733-3ab7ec7fedb7
DEVICE=eno1 ---> eth0
ONBOOT=yes

same for interface ifcfg-eth1

#reboot