一.配置固定ip
1.编辑网卡 vim /etc/sysconfig/network-scripts/ifcfg-eno16777736
删除1.1 HWADDR=00:0C:29:96:FC:7D 1.2 UUID=d86e3d85-88f9-4f5b-b69d-2d7f8ef64b67
IPADDR=192.168.38.11
NETMASK=255.255.255.0
GATEWAY=192.168.38.2
BOOTPROTO=static
ONBOOT=yes
DNS1=8.8.8.8
DNS2=114.114.114.114
2.更新网卡配置 service network restart