蔷薇525 发表于 2018-5-9 11:06:14

redhat7.0修改网卡名字为eth0

  #vim /etc/sysconfig/grub
GRUB_CMDLINE_LINUX="rd.lvm.lv=rhel/root crashkernel=autord.lvm.lv=rhel/swap vconsole.font=latarcyrheb-sun16 vconsole.keymap=us net.ifnames=0 biosdevname=0 rhgb quiet"

#grub2-mkconfig -o /boot/grub2/grub.cfg

#ifconfig
ether 00:50:56:9d:70:4d

#cd /etc/sysconfig/network-scripts/
#mv ifcfg-ens32 ifcfg-eth0
#vi ifcfg-eth0
HWADDR=00:50:56:9d:70:4d

BOOTPROTO=static

NAME=eth0

ONBOOT=yes
IPADDR=10.26.100.10
PREFIX=24

#ls /etc/udev/rules.d/
查看是否有70-persistent-net.rules的文件,如果有将其删除
  
#reboot
页: [1]
查看完整版本: redhat7.0修改网卡名字为eth0