Networking between 2 Linux guest VMs

Discussion in 'Linux Virtual Machine' started by Mark16, May 9, 2016.

  1. Mark16

    Mark16 Bit poster

    Messages:
    1
    Hi all,
    For educational purposes I am trying to set up one CentOS guest VM as a router and another VM as a client (end user). I have configured the VM acting as a router to use 2 virtual network adapters - 1 to my home network connected to the internet in bridged mode, and the other in host-only network mode listening for connections. I have installed a DHCP server on the router VM and set it to distribute IP addresses in the range 10.37.129.10 - 10.37.129.254. Now I am trying to get the client VM to use the router VM with no luck. No matter how I configure it, the client VM always gets the IP 10.37.129.5 from my Mac host (I believe) which is outside the range I'm allowing in DHCP. I have tried multiple times to get the client to use the router as a gateway, but there is evidently no connectivity to outside servers.

    Would someone be able to shed some light on this problem? Is it possible at all to use host-only network mode in this way? I have spent hours trying to figure it out to no avail.

    Thanks.
     

Share This Page