Page 1 of 1

vm needs to obtain corp network IP

Posted: 23. Oct 2020, 00:53
by Jack Z
Hi there,
windows 10 pro + latest virtualbox

My laptop is connected to our corp network through VPN. After I successfully create a linux vm (CentOS 8), I need it have corp network IP so other people in my team can have access (ssh, etc) to it.
How can I achieve it?

Now I have tried NAT and bridged network, and vm IP address is always something like 192.168.xxx.xxx, which is not what we need.

thanks a lot!

Re: vm needs to obtain corp network IP

Posted: 23. Oct 2020, 05:23
by BillG
Does your laptop get a corp IP when it connects through VPN? If it does, then the best way would be to run the vm in bridged mode and then make its own VPN connection to your workplace.

Re: vm needs to obtain corp network IP

Posted: 23. Oct 2020, 15:26
by Jack Z
BillG wrote:Does your laptop get a corp IP when it connects through VPN? If it does, then the best way would be to run the vm in bridged mode and then make its own VPN connection to your workplace.
yes, it does.

Do you mean I choose 'attach to Bridged Adapter' in Network setting? I tried, doesn't work.
thanks!

Re: vm needs to obtain corp network IP

Posted: 24. Oct 2020, 03:44
by BillG
Is you laptop a standalone PC? You need to be on a LAN to use bridged mode. Bridged mode gives the vm access to the LAN by sharing the host's network connection.

Since you were talked about getting a 192.168.x.x address I assumed you had bridged mode working and that you were getting your config from a LAN router. NAT gives you 10.x.x.x IPs.