Page 1 of 1
Static IP not working
Posted: 11. Oct 2012, 04:28
by BigDriver
I've got a winXP host machine and win7 installed on VirtualBox. When the virtual machine has the internet setting set to "obtain... automatically" everything works fine and the vm can connect to the internet. But when I set the IP manually (to the same thing listed when the 'ipconfig' command is run - 10.0.2.15), the internet connection goes down. VirtualBox Network setting has Adapter 1 'attached to' NAT. Both the Default Gateway and Preferred DNS Server options are set to 10.0.2.2. What am I missing?
Re: Static IP not working
Posted: 11. Oct 2012, 16:02
by martyscholes
Do you have the correct subnet mask?
Re: Static IP not working
Posted: 11. Oct 2012, 16:13
by BigDriver
martyscholes wrote:Do you have the correct subnet mask?
255.255.255.0
Re: Static IP not working
Posted: 12. Oct 2012, 02:30
by BillG
Why do you want to change the IP? NAT has a built-in DHCP server which gives you the required network config to work through NAT.
If you want the vm to use a static IP you will need to change the networking type to bridged. It will still get its config automatically if you have a DHCP server on the physical network but you can set it to a static IP if you so desire.
Re: Static IP not working
Posted: 12. Oct 2012, 18:29
by BigDriver
Changed to Bridged, and still no connection... ??
Re: Static IP not working
Posted: 13. Oct 2012, 03:12
by BillG
What did you bridge it to? What does the network look like? There just isn't enough info to comment.