启动进入后
sudo vim /etc/sysconfig/network-scripts/ifcfg-enp0s3sudo vim /etc/sysconfig/network-scripts/ifcfg-enp0s3
```
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s3
UUID=d38be364-d821-481c-8e12-df2cca65d27a
DEVICE=enp0s3
ONBOOT=yes
IPADDR=192.168.0.204
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
```
service network restart
vim /etc/resolv.conf
nameserver 8.8.8.8 #google域名服务器
nameserver 8.8.4.4 #google域名服务器
ping www.baidu.com