centos 6.7mnimal是centos提供的最小安裝盤, 其網卡默認不啟動
1.修改配置文件: /etc/sysconfig/network-script/ifcfg-eth0
為ONBOOT=yes
和NM_CONTROLLED=no
2.重啟網卡: service network restart
centos 7.1mnimal是centos提供的最小安裝盤, 其網卡默認不啟動
1.修改配置文件: /etc/sysconfig/network-script/ifcfg-nep0s3
為ONBOOT=yes
2.重啟網卡: service network restart
3.安裝網絡管理工具: yum install net-tools