Centos7修改网卡名称

2026-04-01 13:22:42

1、默认网卡名称为ens32

Centos7修改网卡名称

2、进入网卡存放目录,编辑配置文件ifcfg-ens32

[root@localhost rules.d]# cd /etc/sysconfig/network-scripts/

[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修改网卡名称

相关推荐
  • 阅读量:99
  • 阅读量:60
  • 阅读量:63
  • 阅读量:51
  • 阅读量:130
  • 猜你喜欢