Page 1 of 1

Reset DHCP IPs assigned by VirtualBox

Posted: 14. Feb 2013, 12:33
by Guillermos
I have several groups of VMs that work with each other and with the host through the IPs assigned by VirtualBox DHCP server.

Depending on the order in which these VMs are started they are assigned the IP adresses like this:

192.168.56.101
192.168.56.102
192.168.56.103

That's ok because I know in which order I have to start the VMs so they are assigned the right IP.

When I want to work with a different group of VMs I close the machines of the first group and start the machines of the second group and the IPs assigned are the following:

192.168.56.104
192.168.56.105
192.168.56.106

Is there a way to reset the VirtualBox DHCP server so the IPs assigned start again like this:

192.168.56.101
192.168.56.102
192.168.56.103

I know a solution would be to assign a fixed IP address for each machine, but wouldn't it be possible to do this reset?

Currently what I do is to restart the host or logoff/logon.

Re: Reset DHCP IPs assigned by VirtualBox

Posted: 14. Feb 2013, 15:30
by Perryg
You would need to restart the dhcp server to reset the ttl.
Closing all guests and stopping the VirtualBox manager for at least 20 seconds should do it, but a more permanent solution would be to use static addresses if you do this several times a day.

Re: Reset DHCP IPs assigned by VirtualBox

Posted: 15. Feb 2013, 14:04
by Guillermos
Thank you for your answer.

I prefer to restart the VBox Manager, I don't switch the machines groups more than 1 or 2 times per day.