I installed centos6.5 using vm ware, but after I configured the static IP, I can ping the windows IP address in the virtual machine, and I can also ping baidu.com. But in windows, I want to use The xshell connection always fails. I pinged it and found that the connection timed out. What is the reason?
Attached is the configuration screenshot:
192.168.5.72 is the IP of my local Windows
192.168 .227.80 is the ip
Pinging virtual machine under windows failed:
You can ping Baidu or the local IP of Windows under the Linux virtual machine:
The following is my virtual machine network configuration:
Screenshot of my failure to use x-shell to connect to linux in a windows environment:
Excuse me, what is the reason for this? How can I make it possible for Windows to ping the virtual machine and use x-sherll to connect? Thank you!
(Actually, I just installed Linux at noon. I can still ping, but not in the afternoon...)
某草草2017-06-05 11:12:00
The characteristic of the NAT network is that it can connect to the outside from the inside, but cannot connect to the inside from the outside. Just like a computer at home can access the Internet through the router at home, but the outside network cannot connect to the machine at home.
I guess what you want to achieve is that the virtual machine can access the Internet and can connect to it through an ssh client from Windows. Two solutions are recommended. One is to change the NAT mode to "bridge mode", so that the virtual machine is in the same network segment as your host. You can use DHCP or configure an IP in the same network segment as your host. It can both access the Internet and connect to it through the host; the other is to add another network card and select "host only mode", so the virtual machine has two network cards, one accesses the Internet through NAT, and the other is specifically connected to the host, so You can connect to the virtual machine through the IP on the "host only mode" network card.
为情所困2017-06-05 11:12:00
1.ssh use the tcp port 22,but the ping program has nothing to do with it. just check your firewall/iptables status and configuration.
2.if you have no idea how to solve, please paste the results of following commands:
service iptables status
service sshd status
PHP中文网2017-06-05 11:12:00
Change the bridge mode, turn off the firewall iptables -F or add access rules