I. Basic environment 1, role, IP, version, kernel servera 192.168.1.30 3.10.0-229.el7.x86_64 centos linux release 7.1.1503 (Core) Second, modify the NIC name eth01, backup configuration Cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak2, Modify Configuration diff /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak88c88< linux16 /vmlinuz-3.10.0-229.el7.x86_64 root=UUID=5120ba17-c4a9-403a-b9df-b2fa09957e14 ro Crashkernel=auto rhgb quiet lang=en_us. Utf-8 net.ifnames=0 biosdevname=0---> linux16 / Vmlinuz-3.10.0-229.el7.x86_64 root=uuid=5120ba17-c4a9-403a-b9df-b2fa09957e14 ro crashkernel= Auto rhgb quiet lang=en_us. UTF-83, change the configuration name mv /etc/sysconfig/network-scripts/ifcfg-eno16777736 /etc/sysconfig/network-scripts/ IFCFG-ETH04, change the name in/etc/sysconfig/network-scripts/ifcfg-eth0 to ETH0NAME=ETH05, restart the network service/etc/init.d/network restartrestarting network (VIA&NBSP;SYSTEMCTL): &NBSP;&NBsp; [ ok ]6, restart machine reboot7, check verification ip a1: lo: < loopback,up,lower_up> mtu 65536 qdisc noqueue state unknown link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:d2:b2:51 brd ff:ff:ff:ff:ff:ff inet 192.168.1.30/24 brd 192.168.1.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::20c : 29ff:fed2:b251/64 scope link valid_lft forever preferred_lft forever
This article is from the "7928217" blog, please be sure to keep this source http://7938217.blog.51cto.com/7928217/1701341
Centos7 changing the NIC name (eth0)