Xshell can connect a virtual machine, but the virtual machine ping does not pass the host

Source: Internet
Author: User

According to the previous play, 650) this.width=650; "id=" image_operate_23591452049668507 "name=" image_operate_69931449799271100 "src=" http://s13.sinaimg.cn/mw690/003FIXzQgy6XGoHZQw45c&690 "width=" 690 "height=" 424 "alt=" 003fixzqgy6xgohzqw45c &690 "/>

I choose Vmnet1 only host mode, but today found that this mode is not able to ping each other with the local computer, so it is not ping, after consulting someone else, try the Vmnet8 this NAT mode, configured as follows:

650) this.width=650; "Name=" image_operate_17711449799271490 "src=" http://s7.sinaimg.cn/mw690/ 003fixzqgy6xgout5qy66&690 "width=" 690 "height=" 434 "alt=" 003fixzqgy6xgout5qy66&690 "/>

650) this.width=650; "Name=" image_operate_87741449799271646 "src=" http://s10.sinaimg.cn/mw690/ 003fixzqgy6xgozrmjl49&690 "width=" 690 "height=" 313 "alt=" 003fixzqgy6xgozrmjl49&690 "/>

This configuration file is set to this, where ipaddr is set according to the IP of your own computer.

650) this.width=650; "Name=" image_operate_41121449799271755 "src=" http://s8.sinaimg.cn/mw690/ 003fixzqgy6xgp7v8gf97&690 "width=" 635 "height=" 318 "alt=" 003fixzqgy6xgp7v8gf97&690 "/>
After the setup is complete, execute the service network restart, start the networking, and then ping your host,

[[email protected] ~]# Ping 192.168.37.1

PING 192.168.37.1 (192.168.37.1) bytes of data.

Bytes from 192.168.37.1:icmp_seq=1 ttl=128 time=43.4 ms

Bytes from 192.168.37.1:icmp_seq=2 ttl=128 time=0.377 ms

^c

---192.168.37.1 ping statistics---

2 packets transmitted, 2 received, 0% packet loss, time 2001ms

RTT Min/avg/max/mdev = 0.377/21.905/43.434/21.529 ms

Note that the 192.168.37.1 here is the IP of VMnet1.

650) this.width=650; "Name=" image_operate_35721449799368765 "src=" http://s14.sinaimg.cn/mw690/ 003fixzqgy6xgpkkkfj1d&690 "width=" 649 "height=" 326 "alt=" 003fixzqgy6xgpkkkfj1d&690 "/>
This interface is the command interface on your local Windows computer. Execute Ipconfig/all out of the


Xshell can connect a virtual machine, but the virtual machine ping does not pass the host

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.