更改网卡名称以及重启网卡提示Determining if ip address x.x.x.x is already in use for device eth0

安装系统完成后,在CentOS6.6下网卡名称变为em1,有些不太方便,还是改回eth0

修改grub配置文件,vi /boot/grub/grub.conf,增加如下红色字体

kernel /vmlinuz-2.6.32-504.el6.x86_64 ro root=UUID=de48d388-2123-4232-bd97-2464e0d6367b rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet biosdevname=0


cd  /etc/sysconfig/network-scripts/ 

mv ifcfg-em1 ifcfg-eth0

修改网卡配置文件 vi /etc/sysconfig/network-scripts/ifcfg-eth0


DEVICE=eth0(更改网卡名称)
HWADDR=F8:B1:56:C7:E1:B6
TYPE=Ethernet
UUID=05eedc12-6134-45bd-bf50-ac4660ab88bc
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=status
IPADDR=192.168.1.101
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
ARPCHECK=no(解决提示ip is already in use)

重启 reboot

            **

重点内容

**

posted @ 2018-07-09 11:56  JY小脚丫  阅读(641)  评论(0编辑  收藏  举报