Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have two virtual machine on vmware player both, each have a NIC card. I want to direct connect VM1's NIC to VM2's NIC, not bridge, not NAT, not Host-only, just direct connect like connect through wire.

Is is possible? How can I do this? Thanks!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

In network settings you can choose a separate Virtual Machine Network to connect them to. However if you want full control on how this network acts you need Workstation.

But in the end, the closest you'll get is the two vm's in one network without dhcp (but a straight cable connection is nothing different).

share|improve this answer
    
I have tested the solution, there seem be a virtual switch in the network which the two cables connected. But they aren't direct connected still. I run tcpreplay to send packets on VM1, and VM2 doesn't recive the packets. –  KaiWen Feb 14 at 7:40
1  
I make a mistake. Just use sar and ifstat to count the recived packets which sended by tcpreplay on another vm, they show nothing. I use tcpdump instead, then I got the right answer. –  KaiWen Feb 14 at 8:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.