centos静态ip设置

DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.28.102
NETMASK=255.255.255.0
DNS1=114.114.114.114
DNS2=8.8.8.8
HWADDR=00:0C:29:03:3D:77
DEFROUTE:yes
GATEWAY:192.168.28.1
PREFIX=24
IPV4_FAILURE_FATA=yes_
IPV6_DEFAULTGW=
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.28.120
TYPE=Ethernet
GATEWAY=192.168.28.1
IPV6ADDR=
IPV6_DEFAULTGW=
DNS=127.0.0.1
IPV6INIT=no
HWADDR=00:0c:29:1d:51:73
DEFROUTE=yes
PREFIX=24
IPV4_FAILURE_FATAL=yes
DNS1=114.114.114.114

  保存完了 执行 service network restart

posted @ 2016-08-29 16:49  纯粹的人  阅读(350)  评论(0编辑  收藏  举报