Page 1 of 1
NAT adapters - Gateway and IP
Posted: 28. Jan 2013, 07:30
by mirk
How can I control what gateway IP and IP that the vm gets? When I use NAT, it makes the gateway 10.0.2.2 with an IP of 10.0.2.15 by default.
Where can I configure those settings in virtualbox so that it is a different network such as 10.0.0.1/255.255.255.0?
Re: NAT adapters - Gateway and IP
Posted: 28. Jan 2013, 08:26
by BillG
What exactly are you trying to achieve? Are you trying to link the vm to a physical network which uses 10.0.0.1/24? If so you don't use NAT. You change the network type to bridged, and use the physical NIC in the host which is in that network. If the network has a DHCP server, the vm will get its config from there (as the host does).
If you use NAT the IP address and the gateway are supplied by NAT and must be in the same IP subnet as the NAT device in the host.
Re: NAT adapters - Gateway and IP
Posted: 28. Jan 2013, 21:57
by mirk
No. I am on a 192.168.1.1 network physically but when I use NAT, the virtual machine's gateway is 10.0.2.2 and I want to make it be 10.0.0.1. How can I make the gateway for NAT be 10.0.0.1 on the virtual machines using NAT?
Does that make sense?
Re: NAT adapters - Gateway and IP
Posted: 28. Jan 2013, 22:16
by Perryg
See chapter 9.12 Fine-tuning the VirtualBox NAT engine in your VirtualBox users guide.
Re: NAT adapters - Gateway and IP
Posted: 29. Jan 2013, 02:10
by mirk
Crud
I'm trying to study for 70-640 and it gives me example IPs to use for server core and a domain to connect to. By default, I am using:
Domain Controller's IP=10.0.2.15/255.255.255.0 and Gateway=10.0.2.2
Server Core's IP=10.0.2.12/255.255.255.0 and Gateway=10.0.2.2
They are both NAT. They don't see each other in ARP and cannot ping. Forget modifying. Why would they not be able to see each other if they are on the same network with the same gateway and both using NAT?
Re: NAT adapters - Gateway and IP
Posted: 29. Jan 2013, 02:17
by Perryg
Would have been nice to know that you were trying to work on networking/domain. You can't really use VBox NAT for this. Use Internal.
The easiest and for most the best way to use and test Windows domains in VirtualBox
Setup Windows Domain in VirtualBox
Re: NAT adapters - Gateway and IP
Posted: 29. Jan 2013, 03:13
by mirk
Thanks. This is looking to work. I have them both on an internal network, but not ICS because I'm not concerned about internet access right now. They both show up in each other's arp table now too.