本人环境:Window10 \ VM15.5.2 \ Centos7
1、检查防火墙是否关闭;
2、检查和本机是否是同一网段。
1、防火墙检查 关闭
1.1:查看防火墙状态》》systemctl status firewalld
1.2:开启防火墙状态 》》systemctl start firewalld
1.3:关闭防火墙状态 》》systemctl stop firewalld
1.3.1:禁用防火墙,下次开机启动后防火墙服务不再启动》》systemctl disable firewalld
防火墙关闭状态,如下图,说明关闭:
2、检查和本机是否是同一网段
2.1:虚拟机需 NAT 模式
2.2:虚拟机 Linux IP查:ip addr
2.3:本机IP cmd>>ipconfig
2.4:同为114环境,则ping网络没问题,不同网段网络不通,需修改,可修改本机网段,即可生效;
3、测ping VM linux IP
4、额外:SHH安装、centos7的IP地址并激活网卡
4.1:查看sshd服务状态 》》systemctl status sshd
4.2:开启sshd服务 》》systemctl start sshd
4.3:关闭sshd服务 》》systemctl stop sshd