Centos 7 network device naming

on Centos 7 new device names have long confusing names,

change grub line

root@testbox# cat /etc/default/grub

GRUB_TIMEOUT=5

GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"

GRUB_DEFAULT=saved

GRUB_DISABLE_SUBMENU=true

GRUB_TERMINAL_OUTPUT="console"

GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos01/root rhgb quiet tsc=reliable nohz=off isolcpus=4,6,8,10,12,14,16,18,20,22 biosdevname=1"

GRUB_DISABLE_RECOVERY="true"

mkconfig grub

root@testbox# grub2-mkconfig -o /boot/grub2/grub.cfg

reboot

new device names will pick up names like em1, p1p1, p2p1, etc

configure em1

TYPE=Ethernet

PROXY_METHOD=none

BROWSER_ONLY=no

BOOTPROTO=none

DEFROUTE=yes

IPV4_FAILURE_FATAL=no

IPV6INIT=no

NAME=em1

NM_CONTROLLED=yes

IPADDR=192.168.30.231

UUID=7ac23bb5-c31a-481e-ae15-4e603a4d763b

HWADDR=98:4b:e1:75:25:d4

DEVICE=em1

GATEWAY=192.168.30.1

ONBOOT=yes

PREFIX=32

DNS1=1.1.1.1