Networking & Wireless forum


Setting up virtual network with Virtual box

by shitelsz / December 18, 2016 4:03 PM 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:
• DNS: (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 (server IP address)
• However, the client PC still picking up the IP address from my local network (Gateway
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
You are posting a reply to: Setting up virtual network with Virtual box
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Setting up virtual network with Virtual box
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Clarification Request
That Server IP.
by R. Proffitt Forum moderator / December 18, 2016 4:11 PM 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 ...
by shitelsz / December 18, 2016 4:40 PM PST
In reply to: That Server IP.

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
by R. Proffitt Forum moderator / December 19, 2016 8:42 AM 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.

All Answers

Collapse -
I'm not surprised
by James Denison / December 18, 2016 4:28 PM 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
by shitelsz / December 18, 2016 4:43 PM PST
In reply to: I'm not surprised

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
by James Denison / December 18, 2016 6:18 PM 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
by James Denison / December 18, 2016 6:20 PM 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..
by shitelsz / December 18, 2016 7:18 PM 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?
by James Denison / December 18, 2016 7:38 PM PST
In reply to: Whole story is..
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
by James Denison / December 18, 2016 7:40 PM PST
In reply to: Whole story is..

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.

Popular Forums
Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?