Centos7.2中配置静态IP地址

TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=enp0s3
UUID=f1745c94-e46a-455e-b2ce-71097e68d96b
DEVICE=enp0s3
ONBOOT=yes
DNS1=114.114.114.114
DNS2=8.8.8.8
IPV6_PRIVACY=no
PROXY_METHOD=none
BROWSER_ONLY=no
IPADDR=192.168.1.105
PREFIX=24
GATEWAY=192.168.1.1

你可能感兴趣的:(linux)