Score:0

How to connect 2 VMware instance running on same Linux host machine via emulated ethernet cable (accessible via mac address)?

jp flag

I have a host machine running Linux (ubuntu-18.04). There I have 2 VMware instances configured and the network is configured via NAT. I can ping from VM1 to VM2 (and vice-versa) via their local IPs but for my current need, I want them to be connected via ethernet cable for the DPDK test environment so that one machine can find another by direct mac address(layer 2 protocol, without IP stack). How to do that in an easy and efficient way and test that it is working (via arping probably, not sure) correctly?

ar flag
It is not clear what you are asking. How can two VMs inside a single host using an Ethernet cable? Are you talking about a virtual cable?
jp flag
its about emulating, let me update the title
ar flag
What IP addresses are getting assigned to the 2 VMs? They should be in the same subnet to communicate with each other.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.