Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

Setting up virtual network with Virtual box

Dec 18, 2016 4:03PM PST

Hi Friends,

I was wonder if you can tell me how i can setup an internal network via Virtual box.

Current setup
1x VM - server 2008 R2 (AD, DNS and DHCP installed)
• PC name: Server
• Domain name: Shitel
• Server IP: 195.165.100.1
• DNS: 127.0.0.1 (Loop back IP address)
1x VM – Win 7
• I need to join this client to domain (Shitel) and get automatic IP address from DHCP.
• In Network adapter DNS properties I have entered 195.165.100.1 (server IP address)
• However, the client PC still picking up the IP address from my local network (Gateway 192.168.14.1)
Steps taken:
• changed the Network setting of server and client to “NAT” : issue persist
• changed the Network setting of server and client to “Bridge” : issue persist
Any recommendation please.

Discussion is locked

- Collapse -
Clarification Request
That Server IP.
Dec 18, 2016 4:11PM PST

It doesn't appear to be on your LAN. So why should that work?

- Collapse -
I thought it is going to force the client to get IP ...
Dec 18, 2016 4:40PM PST

I thought it is going to force the client PC to get IP address from DHCP due to i have entered the IP address of the server in DNS properties in that client. So do you mean i need to change the IP address of the server ? It is in the range of Class C IP address..

- Collapse -
In the Class
Dec 19, 2016 8:42AM PST

But not on the LAN as I see it.

Go take some refresher course online about basic IP networking. Focus on what a LAN is and how the NETMASK plays here.

- Collapse -
Answer
I'm not surprised
Dec 18, 2016 4:28PM PST

A virtual system, the guest on a host computer, will connect to the same router as the host. Why would you expect it to do anything different? It won't see the ISP provided IP address since that's on the other side of the router. What are you trying to do?

- Collapse -
Joining client PC to Domain in virtual Box
Dec 18, 2016 4:43PM PST

I need to join The client PC to "shitel" domain and ensure the client PC can get a IP address from DHCP, just as usual as local network setup.

- Collapse -
then do a local network setup
Dec 18, 2016 6:18PM PST

Then the router will give it an internal IP address through DHCP.

What is this domain? One you own? If so, is your router set up to use Dynamic DNS in order to direct traffic from the internet to your router?

If you just want to contact this domain, then open a browser and see if you can, but sounds ot me like you just want internet address from the router through DHCP so you can access the internet from it. You need to do that FIRST.

- Collapse -
are you under the impression
Dec 18, 2016 6:20PM PST

That the physical computer can only have a single internal IP address from your router? If so, then that is not correct. You can have an separate internal IP address for the host system and for each virtual guest system on the same computer.

- Collapse -
Whole story is..
Dec 18, 2016 7:18PM PST

Hi James,

Sorry about confusion James.

Hope i can clear that out for you. The whole scenario is:

A) i am working in a company and physical PC is connected to Internal company network.

B) on my Physical computer, I have installed Virtual box. in this virtual box, i have created 2 virtual machines. one of them is Server 2008 R2 and other one is Win 7. The only thing i need to do is to create virtual network (inside that Virtual box) to connect the Win 7 PC to Win server by joining this PC to DHCP to get Automatic IP address from the server. I have DC in this server DHCP and DNS service are running as well.

Hope this is clear or please correct me if i got your wrongly.

- Collapse -
Have you first set up Networking in VBox?
Dec 18, 2016 7:38PM PST
Like on this page?

Remember, the ONLY connection your physical computer has is the ONLY one the virtual machines have too. Each of them MUST first connect to the same router the host computer is connected to, unless you have more than one networking (LAN) card installed. Or, could have a LAN and Wifi and set each up separately.
- Collapse -
AFTER you get the VBox networking setup
Dec 18, 2016 7:40PM PST

Is when you can then work on setting up the networking within the guest system itself. Reason is because you are sharing the network device by the host to the guest system. Until that's done, all efforts within the guest system will fail to set up networking, fail to get assigned an IP from the DHCP, etc.