Xshell remote can not Centos7, Windows ping nowhere CentOS7

Question: Xshell remote can not Centos7, centos can ping windows, can ping outside the network, but the windows ping nowhere centos

Problem Description: The operating system of this machine using win10, the virtual machine is VM12, Linux operating system centos7, centos set a static IP, After configuring the DNS, centos can ping themselves, can ping windows, but also be able to ping outside the network, but can not remote Xshell Centos7, examination revealed windows ping nowhere centos, online access to information that is turn off the firewall and the like, but after close, or not.

The following is the author of the solution, if you have encountered a similar problem, you can do the next reference

Enter centos in ifconfig, ip view information
Here Insert Picture Description
input ipconfig command windows, the view ip information, found a static IP and the IP VMnet8 windows in centos is set outside a network segment, the windows VMnet8 no default gateway

Here Insert Picture Description
Open windows Virtual Machine VMnet property is set in ipv4 found automatically obtain state
Here Insert Picture Description
so my solution is:

ipv4 set in the windows virtual machine VMnet property settings for the same static ip ip, ip address and Centos7 in the top three, the last bit different, subnet mask, default fill 255.255.255.0, and the default gateway configuration configured in the same CentOS7

Here Insert Picture Description
Once configured, windows cmd view ip information is as follows:

Here Insert Picture Description

At this time, in the windows of the ping Centos7 cdm address can ping the

Here Insert Picture Description
Xshell can remotely log the user Centos

Here Insert Picture Description
Next record, we hope to give partners encounter the same problem to help.

Guess you like

Origin blog.csdn.net/lz6363/article/details/91868925