1.centos在最小化安装时,执行ifconfig会不显示eth0地址
编辑ifcfg-eth0文件,若没有,则新建
[root@centos ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
2.重启网络
[root@centos ~]# service network restart
1.centos在最小化安装时,执行ifconfig会不显示eth0地址
编辑ifcfg-eth0文件,若没有,则新建
[root@centos ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
2.重启网络
[root@centos ~]# service network restart