Centos7修改网卡名称

2024-11-07 18:08:45

1、默认网卡名称为ens32

Centos7修改网卡名称

2、进入网卡存放目录,编辑配醅呓择锗置文件ifcfg-ens32[root@localhost rules.d]# cd /etc/sysconfig/network-s艘早祓胂cripts/[root@localhost network-scripts]# vi ifcfg-ens32

Centos7修改网卡名称

3、ens32修改为eth0

Centos7修改网卡名称

4、mv ifcfg-ens32 ifcfg-eth0

Centos7修改网卡名称

5、vi /etc/default/grub加入内容“net.ifnames=0 biosdevname=0”

Centos7修改网卡名称

6、重启操作系统reboot

Centos7修改网卡名称
猜你喜欢