Changing NAT service address does not change DHCP server

This is for discussing general topics about how to use VirtualBox.
Locked
RossB
Posts: 15
Joined: 21. Feb 2015, 05:27

Changing NAT service address does not change DHCP server

Post by RossB »

I created a NAT Network using the GUI (VirtualBox Manager | File | Preferences | network | NAT Networks) and then later decided I wanted to change the IP range. I don't have the exact record, but I think it was from 10. to 192.168. This network was acting as a DHCP server. After the change I noticed my VM (Debian Linux 64 bit) was still being assigned an IP in the old range, and VBoxManage list dhcpservers showed a server with the old IPs associated with the new network.

As a result of this, the VM had no useable network connectivity.

I think I tried modifying the DHCP server with the command line VBoxManage tool, but the VM still started with the old IP. Eventually I deleted the NAT network, created a new one, and associated it with the VM. That worked.

It seems to me that the DHCP server should change so that it is always consistent with its associated network.

VirtualBox 4.3.22 on 64 bit Win 7; linux 64 bit VM.
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Changing NAT service address does not change DHCP server

Post by noteirak »

Do not duplicate posts please. This is the same issue as your next post which has more details. Let's keep the discussion there.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Locked