linux(centos) 網卡重命名

# rm -f /etc/udev/ruls.d/70-persistent-net   
# mv ifcfg-em1 ifcfg-eth0
#  vi ifcfg-eth0
DEVICE=eth0

#  reboot 0

*******************************
如果刪除操作仍然無法重命名網卡,需要在重啓後執行

#touch /etc/iftab

#ifrename -i em1 -n eth0   
#service network restart
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章