Centos7 修改网卡名称 方法

2025-05-09 19:53:54

1、操作系统版本为centos7.6CentOS Linux release 7.6.1810 (Core)

Centos7 修改网卡名称 方法

3、但是通过这个命令ll /etc/sysconfig/network-scripts/ifcfg-ens*查询到的网卡名称不是eth0,所以才没办法获取到ip地址

Centos7 修改网卡名称 方法

5、执行命令如下命令grub2-mkconfig -o /boot/grub2/grub.cfg

Centos7 修改网卡名称 方法

7、替换配置文件中ens3为eth0sed -i 's/ens3/eth0/g' ifcfg-eth0

Centos7 修改网卡名称 方法
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢