CentOS配置网卡开机自动获取IP地址:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
将 ONBOOT=”no” 改为 ONBOOT=”yes”
保存后: service network restart
查看IP: ifconfig centOS没有ifconfig, 用:ip addr
保存后重启网卡: service network restart
centOS7,看这里
CentOS配置网卡开机自动获取IP地址:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
将 ONBOOT=”no” 改为 ONBOOT=”yes”
保存后: service network restart
查看IP: ifconfig centOS没有ifconfig, 用:ip addr
保存后重启网卡: service network restart
centOS7,看这里