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
修改文件:/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