第一步:進(jìn)入 /etc/sysconfig/network-scripts/目錄
image.png
第二步:修改ifcfg-eth(xxx)文件
vim ifcfg-eth0
image.png
需要修改的屬性有:
MM_CONTROLLED=no
ONBOOT=YES #no換成yes
第三步:重啟網(wǎng)絡(luò)
service network restart
vim ifcfg-eth0
需要修改的屬性有:
MM_CONTROLLED=no
ONBOOT=YES #no換成yes
service network restart