Need help

This is for discussing general topics about how to use VirtualBox.
Post Reply
Firedragon
Posts: 7
Joined: 12. Jul 2016, 00:37

Need help

Post by Firedragon »

My problem is, that I cant a of assign a static IP to a virtual machine.

I am trying to test a trial version of windows 2016, but to do so i need a static ip, but it does not work on a VM. so that I can switch between them in the router .

Is there anyway to do that, so that I can be certain that everything works before I roll out the final wim file?

Any help would be appreciated ;-)
BillG
Volunteer
Posts: 5104
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: Need help

Post by BillG »

That does not make any sense. Whether it is a virtual machine or not does not change how networking is configured. I have virtual Windows 2016 servers running with static IPs.

What exactly are you trying to do?
Bill
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: Need help

Post by socratis »

You have to set the static IP from within the guest, not from VirtualBox.
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.
Firedragon
Posts: 7
Joined: 12. Jul 2016, 00:37

Re: Need help

Post by Firedragon »

I have tried to set a static IP and rebooting, when I do that, internet stop working completely and i cant see or address it from the host.

I set have set it to bridged in network settings and I get this result when I set it to dynamic when I check it:

Code: Select all

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : lan
   Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter
   Physical Address. . . . . . . . . : 08-00-27-DF-98-04
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::70d6:cd41:7cbb:141b%3(Preferred)
   IPv4 Address. . . . . . . . . . . : [b]10.0.0.82(Preferred)[/b]
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : 11. januar 2017 20:50:27
   Lease Expires . . . . . . . . . . : 12. januar 2017 20:50:26
   Default Gateway . . . . . . . . . : 10.0.0.1
   DHCP Server . . . . . . . . . . . : 10.0.0.1
   DHCPv6 IAID . . . . . . . . . . . : 50855975
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1F-AD-89-EF-08-00-27-DF-98-04

   DNS Servers . . . . . . . . . . . : fe80::9e97:26ff:fea1:6610%3
                                       10.0.0.1
                                       212.242.40.3
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter Teredo Tunneling Pseudo-Interface:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:0:2854:18dd:281f:1f7a:f5ff:ffad(Pref
erred)
   Link-local IPv6 Address . . . . . : fe80::281f:1f7a:f5ff:ffad%5(Preferred)
   Default Gateway . . . . . . . . . : ::
   DHCPv6 IAID . . . . . . . . . . . : 134217728
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1F-AD-89-EF-08-00-27-DF-98-04

   NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter isatap.lan:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : lan
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
Note: I have used a win8.1 VM to test network settings

It does pull an IP from the router dynamical. But to configure the server I need it to be static, so that I can set the ports right in the router. It is almost impossible to set up a multi-site web server in the blind, getting ISS. PHP and MySQL working together. And it would be nice to have it seeing the physical computers as well, I figured that part out. I just made a link on the IP address alone and that works in both direction.
Last edited by socratis on 12. Jan 2017, 14:45, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
towo2099
Volunteer
Posts: 362
Joined: 18. Aug 2014, 21:53
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Android, Linux

Re: Need help

Post by towo2099 »

That looks like NAT instead of bridged network, which is, what you need for static ip in the VM.
Firedragon
Posts: 7
Joined: 12. Jul 2016, 00:37

Re: Need help

Post by Firedragon »

In that case VB is really f''''' up, because it says, that it is bridged ;-)
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Need help

Post by scottgus1 »

towo2099 wrote:That looks like NAT
Actuallt it doesn't. If the IP address were 10.0.2.15 and gateways was 10.0.2.2 then the connection would look like NAT. The guest's posted info shows IP of 10.0.0.82 and gateway of 10.0.0.1

I suspect Firedragon's physical network is a 10.0.0.# network, not common but perfectly acceptable.

@Firedragon, As to why setting static IP causes host internet to disappear, please state what static IP address you're attempting to set, along with subnet mask and gateway.
Firedragon
Posts: 7
Joined: 12. Jul 2016, 00:37

Re: Need help

Post by Firedragon »

scottgus1 wrote: I suspect Firedragon's physical network is a 10.0.0.# network, not common but perfectly acceptable.
You are perfectly right, there are only on reserved address on the router 10.0.0.1 which works as gateway and DHCP server ;-)
scottgus1 wrote: @Firedragon, As to why setting static IP causes host internet to disappear, please state what static IP address you're attempting to set, along with subnet mask and gateway.
I have tried several combinations but none of them works

This is my ISP recommended settings:
IP: 10.xxx.xxx.xxx
Subnet mask; 255.0.0.0
Standard gateway: 10.0.0.1
DHCP: 10.0.0.1
DNS primary: 212.242.40.3
DNS secondary: 212.242.40.51

I have only static IP on one physical computer that i have set to 10.0.0.100 and I have tried to set the WM server to 10.0.0.200.

I think I have found the solution while writing. Somehow it had changed the settings under advanced to use the gateway address in both VM's instead of the primary DNS. I have no clue how or why, but i change it back and both VM's accepted the new address. I have never seen that error before, since I never have use advanced settings for anything. I only checked the advanced settings, because I was desperate in finding an answer ;-) I better have to write my self a note to check for that in the future ;-)

I did use this on both VM's: netsh int ip reset c:\reset.txt that might have caused it :-(
Post Reply