How to connect two virtual machines with two different networks?

zizoooss Posted messages 18 Status Member -  
 aaa -
Hello,

Please tell me how I can connect two virtual machines that are not in the same network on VMware Workstation Player v15

machine 1: 192.168.80.133
machine 2: 130.24.80.61

Thank you.

2 answers

  1. InformatiWeb Posted messages 1776 Status Member 458
     
    Hello,
    use the Virtual Network Editor program (accessible from the Windows Start menu) to add a new network (Add Network).

    1) choose "Host-only (connect VMs internally in a private network)" to create an internal network (a switch, really).
    2) uncheck the box "Connect a host virtual adapter to this network"
    3) If you want IP addresses to be distributed automatically, you can leave the box "Use local DHCP service to distribute IP address to VMs" and configure it via the "DHCP Settings" button.
    OR INSTEAD, uncheck this box and assign static IPs to your VMs from the guest system (installed in the VM).

    4) Now that you have your new virtual switch, you just need to add a new virtual network adapter on your VMs and choose the network "VMnetx" (created in Virtual Network Editor) in the "Custom: Specific virtual network" list.

    PS: if you need a small clarification for VMware, don't hesitate to ask me ;-)

    2
    1. zizoooss Posted messages 18 Status Member
       
      Thank you very much, I am grateful to you.
      0
    2. zizoooss Posted messages 18 Status Member
       
      the problem now is when I ping it returns "destination host unreachable"
      0