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

 

posted @ 2019-11-08 11:05  赵海博运维笔记  阅读(461)  评论(0编辑  收藏  举报