How to ping a virtual machine to a physical machine-personal experience

Source: Internet
Author: User

VMware network adapter vmnet1 and VMWare network adapter vmnet8 are two virtual NICs used for communication between the virtual host and the Internet. They are not decisive in connecting with virtual machines and physical machines, even if the two virtual NICs are disabled, the ping between the physical machine and the virtual machine is not affected.

The key factor that determines whether Ping can be performed is whether they are in a CIDR block.

On the physical machine, run cmd-> ipconfig/all to view the Ethernet adapter-local connection, confirm IPv4, and set the Virtual Machine Nic to the IP address of the same network segment.

In virtual machines, Cd etc/sysconfig/network-script/

VI ifcfg-eth0

The content is similar to the following:

Device = eth0

Bootproto = static

Ipaddr = 169.254.73.5

Netmark = 255.255.0.0

# Dhcpclass =

Hwaddr = 00: 0C: 29: AE: 7f: 9f

Onboot = Yes


After saving and exiting, You can ping each other to implement communication between the virtual machine and the physical machine.

It is worth noting that the VM must be set as a program that can pass through the firewall.

If you have other questions, you can send an email [email protected] to communicate and make progress together.

This article is from the "Rhino" blog, please be sure to keep this source http://rhino.blog.51cto.com/5504750/1530233

How to ping a virtual machine to a physical machine-personal experience

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.