I have a Linux desktop and I want to run a Windows 7 guest. When I first created the Windows guest, it chose an IP address of 10.0.2.15 which worked for accessing the Internet, but I need to be able to access equipment in another location that is on the 10.0.2.0/24 network. I see no way to change the IP address used for NAT.
I changed it to use the Network Address Translation service (experimental) which allows me to choose the subnet's address (192.168.255.0/24 in my case). When I added a Host-Only network (192.168.254.0/24) so the Host could be a client to the Guest, the NAT stopped working. Removing the Host-Only network did not fix it.
So, I went back to the original NAT, rather than Network Address Translation service and I can access the Internet from the Guest and the Guest from the Host. I just can't choose the address.
Is there a way to get Host-Only and Network Address Translation service networking to work together?
Or is there a way to choose the IP address of the traditional NAT subnet?
Here's the pertinent information about my environment:
Host OS: Fedora release 21 (Twenty One)
VirtualBox (from repos): VirtualBox-5.0.x86_64 5.0.20_106931_fedora18-1
Guest: Windows 7 Enterprise, 64bit (not a domain member)
I would appreciate any help to get all three: NAT, Host-Only and IP choice.
Gary
Choosing IP address on NAT network
Choosing IP address on NAT network
- Attachments
-
- vbox.log.gz
- (14.5 KiB) Downloaded 182 times
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Choosing IP address on NAT network
You might want to read up on the type of network adapters, http://www.virtualbox.org/manual/ch06.html
If you have a router in your LAN I would suggest Bridged.
If you have a router in your LAN I would suggest Bridged.
Re: Choosing IP address on NAT network
I don't want to use bridged because it would consume another IP address on the Host's network. NAT is fine for the small amount of traffic outbound from the Windows client, just so I can ssh into the Windows client's Cygwin environment.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Choosing IP address on NAT network
http://www.virtualbox.org/manual/ch06.html#network_nat
The answer then is still in the link I sent you. Use port forwarding.
The answer then is still in the link I sent you. Use port forwarding.