Centos 6.5配置网卡ip

修改文件:/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE
=eth0 TYPE=Ethernet BOOTPROTO=static IPADDR=192.168.1.100 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 NM_CONTROLLED=no ONBOOT=yes  #开启自启动 重启网卡服务 /etc/init.d/network restart

猜你喜欢

转载自www.cnblogs.com/bretzhao/p/11818876.html