NAT Network

This is for discussing general topics about how to use VirtualBox.
Post Reply
dukenukem
Posts: 5
Joined: 15. Apr 2017, 07:06

NAT Network

Post by dukenukem »

Hi newbie here,

I was just wondering how to do something regarding NAT Network. I am running Windows 7 service pack 1 Virtualbox 4.3.38.

I have created network adapter for my Windows Server 2012 R2 in preferences for NAT Network and I've called it Windows_Intranet and I disabled DHCP. How do I change the network address and subnet mask of this adapter?
BillG
Volunteer
Posts: 5105
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: NAT Network

Post by BillG »

It might be better if you told us exactly what you want to do with this vm. There is not much point in setting up a NAT network without DHCP unless you are doing something unusual.
Bill
dukenukem
Posts: 5
Joined: 15. Apr 2017, 07:06

Re: NAT Network

Post by dukenukem »

BillG wrote:It might be better if you told us exactly what you want to do with this vm. There is not much point in setting up a NAT network without DHCP unless you are doing something unusual.
I'm doing an assignment so that's what it says to do. Then later I configure the network adapter inside the VM with an IP of 172.16.60.25, subnet mask of 255.255.255.0, default gateway of 172.16.60.1, preferred DNS: 8.8.8.8, alternate DNS 8.8.4.4 which I can do with no problem. It's just the first part I am having trouble with: setting a network address and subnet mask for the network adapter in Virtualbox.
BillG
Volunteer
Posts: 5105
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: NAT Network

Post by BillG »

You set it just as you would in a physical machine. There is no step in between. Just configure it from within the vm with the values you have been given.
Bill
dukenukem
Posts: 5
Joined: 15. Apr 2017, 07:06

Re: NAT Network

Post by dukenukem »

I already did that part. Please have a look at the original question. Here's the instructions straight from the assignment:
Configure a network adapter for Windows Server 2012.

Configure the network adapter to use NAT Network. The network adapter must be called Windows_Intranet. The network adapter must have the network address of 172.16.60.0 and subnet mask of 255.255.255.0. The DHCP must be disabled for the network adapter.
Last edited by socratis on 15. Apr 2017, 09:36, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: NAT Network

Post by socratis »

dukenukem wrote:I already did that part.
Adding a NATNetwork is done through the VirtualBox preferences. In that step you can configure the NATNetwokr's name, CIDR address/range, and its DHCP options. What's the question? Where is your problem? Maybe the use of the word "adapter"? If you delete the word "adapter" from the description, it make it clearer.
dukenukem wrote:
Configure a network adapter for Windows Server 2012.

Configure the network adapter to use NAT Network. The network adapter must be called Windows_Intranet. The network adapter must have the network address of 172.16.60.0 and subnet mask of 255.255.255.0. The DHCP must be disabled for the network adapter.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
dukenukem
Posts: 5
Joined: 15. Apr 2017, 07:06

Re: NAT Network

Post by dukenukem »

In that step, how do I make the NAT Network have an IP of 172.16.60.0 and subnet mask of 255.255.255.0?
Last edited by socratis on 15. Apr 2017, 10:01, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: NAT Network

Post by socratis »

  1. There is no adapter address that ends in .0, by definition.
  2. What the assignment is trying to tell you (perhaps incorrectly), is to set the IP range of your NATNetwork.
  3. The preferences dialog accepts the range in a CIDR format. Please read the related article in Wikipedia: Classless Inter-Domain Routing, mainly the "CIDR notation" part.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
BillG
Volunteer
Posts: 5105
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: NAT Network

Post by BillG »

How much have you covered in this course on IP networking? Have you got to the bit where you learn about netmasks? Do you know how many bits a 255.255.255.0 netmask represents? You might need to know that to set the mask.

Once you work that out you should able to go back to where you created the network, select "Edit" and insert the network details into the box. You can then go to the vm and configure the adapter with its IP address, netmask and default gateway. And please ask you instructor to alter the assignment as socratis suggested. It is very misleading to confuse networks and adapters.
Bill
dukenukem
Posts: 5
Joined: 15. Apr 2017, 07:06

Re: NAT Network

Post by dukenukem »

Yeah I'll ask my instructor do that. I'm pretty far into it I was just a little confused. Thanks for the help everyone. This topic's solved.
Post Reply