linux配置静态ip

上一篇 | 下一篇:简单linux自动部…
目录/etc/sysconfig/network-scripts/下

DEVICE=eth0
TYPE=Ethernet
UUID=e2a098f7-5ad9-482d-81cf-99c9f2fde054
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.160.188
NETMASK=255.255.255.0
GATEWAY=192.168.160.2
DNS1=192.168.160.2
HWADDR=00:0C:29:42:DB:08
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=“System eth0”

你可能感兴趣的:(linux)