- @H_403_0@#cdetc/udev/rules.d/
- @H_403_0@编辑文件70-persistent-net.rules配置文件@H_403_0@修改文件名字name='eth1'
- @H_403_0@#lsmod 查看 网卡接口类型一般为:e1000根据实际情况定义
- @H_403_0@在编辑#/etc/sysconfig/network-scripts/ifcfg-eth0@H_403_0@
- @H_403_0@#mv/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-eth1
- @H_403_0@拆掉网卡驱动:modprobe -r e1000
- @H_403_0@#ifconfig查看网卡
@H_403_0@centos7的网卡重命名: @H_403_0@1.编辑/etc/default/grub配置文件(红色字体为新加入的)
@H_403_0@ @H_403_0@GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap net.ifnames=0 rhgb quiet" @H_403_0@2.生成配置文件: @H_403_0@#grub2-mkconfig -o /etc/grub2.cfg @H_403_0@3.编辑/etc/sysconfig/network-scripts/网卡里面的name=‘eth0’ @H_403_0@4.mv/etc/sysconfig/network-scripts/ifcfg-ens33 /etc/sysconfig/network-scripts/ifcfg-eth0 @H_403_0@5重启系统 原文链接:https://www.f2er.com/centos/378715.html