Page 1 of 1

Can't assign static address using vboxnet interface

Posted: 22. Sep 2012, 20:26
by redlouse
Hi all

I've been trying to make some scenario using Windows 2008 server and vboxnet interfaces connected to the gns3, but I've got some issues. When I assigned the static ip address to the Windows interface which is tied to the vboxnet2 interface in my Virtualbox, the new address doesn't appear. It mean it does but it looks like that Windows interface is still in autoconfiguration mode and when I type ipconfig command to the console I get the link local address with default gateway assigned manually :). I know it sound crazy. Vboxnet2 interface is connected to the gns3 and then to the router which has to act as Windows server default gateway. Here is the picture of that:
Picture 1
Picture 1
first.jpg (103.3 KiB) Viewed 1492 times
and the second one here:
Picture 2
Picture 2
second.jpg (110.29 KiB) Viewed 1492 times
. This problem is not appear when I try to manually assign the ip address to the linux client instead of Windows server. If anyone has an idea why vboxnet2 does't act as supoose to I will appreciate for any sugestion.

Thanks
Adam

and here is ipconfig /all output
Picture 3
Picture 3
3vbox.jpg (47.43 KiB) Viewed 1482 times
but how to turn off that autoconfiguration mode? .

Re: Can't assign static address using vboxnet interface

Posted: 22. Sep 2012, 22:45
by redlouse
OK I found the solution how to disable that autoconfiguration mode.
First we have to type netsh interface ipv4 show inter
Picture
Picture
4vboxnet.jpg (42.51 KiB) Viewed 1481 times
Then we have to figure out which interface it is. 13 in my example. We have to keep in mind the number
And type this command to the console: netsh interface ipv4 set interface 13 dadtransmits=0 store=persistent

After that we need to go to the services.msc and disable DHCP client service. Finally restart the server and it works now

Re: Can't assign static address using vboxnet interface

Posted: 23. Sep 2012, 11:12
by mpack
Cute, but I'm not sure why you are posting that in a VirtualBox forum? It has nothing to do with virtualization.

Re: Can't assign static address using vboxnet interface

Posted: 23. Sep 2012, 14:32
by redlouse
mpack wrote:Cute, but I'm not sure why you are posting that in a VirtualBox forum? It has nothing to do with virtualization.
I thought it is when i was looking how to resolve it. That's why I posted it. But when I found the answer I saw it's not so, but I published the answer too. You can always dump it out if you think it's not a place for it

good luck
Adam