CentOS 7
1.修改IP
vi空格/etc/sysconfig/network-scripts/ifcfg-ens32
:wq
systemctl restart network
2.修改DNS
vi空格/etc/resolv.conf
systemctl restart network
3.关防火墙
systemctl status firewalld
systemctl stop firewalld
systemctl restarted network
然后就可以Ping自己主机和外网了