ipconfig查看win10网络信息
dhclient
显示ens33 ip地址
ip addr
su
输入密码
chmod 777 /etc/sysconfig/network-scripts/ifcfg-ens33
vim /etc/sysconfig/network-scripts/ifcfg-ens33
BOOTPROTO="static"
ONBOOT="yes"
IPADDR=192.168.1.100
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=119.29.29.29
systemctl restart network.service