DHCP Options in VMware
-
Edit vmnetdhcp.conf at %ProgramData%\VMware\vmnetdhcp.conf
The following is a sample which was reconfigured the DHCP subnet from
192.168.227.0/24
to192.168.91.0/24
.# # Configuration file for VMware port of ISC 2.0 release running on # Windows. # # This file is generated by the VMware installation procedure; it # is edited each time you add or delete a VMware host-only network # adapter. # # We set domain-name-servers to make some clients happy # (dhclient as configued in SuSE, TurboLinux, etc.). # We also supply a domain name to make pump (Red Hat 6.x) happy. # allow unknown-clients; default-lease-time 1800; # default is 30 minutes max-lease-time 7200; # default is 2 hours # Virtual ethernet segment 1 # Added at 03/06/23 10:26:32 subnet 192.168.211.0 netmask 255.255.255.0 { range 192.168.211.128 192.168.211.254; # default allows up to 125 VM's option broadcast-address 192.168.211.255; option domain-name-servers 192.168.211.1; option domain-name "localdomain"; default-lease-time 1800; max-lease-time 7200; } host VMnet1 { hardware ethernet 00:50:56:C0:00:01; fixed-address 192.168.211.1; option domain-name-servers 0.0.0.0; option domain-name ""; } # End # Virtual ethernet segment 8 # Added at 03/06/23 10:26:32 subnet 192.168.91.0 netmask 255.255.255.0 { range 192.168.91.128 192.168.91.254; # default allows up to 125 VM's option broadcast-address 192.168.91.255; option domain-name-servers 192.168.91.2; option domain-name "localdomain"; option netbios-name-servers 192.168.91.2; option routers 192.168.91.2; default-lease-time 1800; max-lease-time 7200; } host VMnet8 { hardware ethernet 00:50:56:C0:00:08; fixed-address 192.168.91.1; option domain-name-servers 0.0.0.0; option domain-name ""; option routers 0.0.0.0; } # End
-
Edit vmnetnat.conf at %ProgramData%\VMware\vmnetnat.conf
# Windows NAT configuration file [host] # NAT gateway address ip = 192.168.91.2/24 hostMAC = 00:50:56:C0:00:08 # enable configuration; disabled by default for security reasons #configport = 33445 # VMnet device if not specified on command line device = vmnet8 ...
-
Edit startup parametes of VMware DHCP Service at HKLM\System\CurrentControlSet\services\VMnetDHCP\Parameters\VirtualEthernetSegments\8\HostIpAddress.
Please note that address has reverse HEX notation. e.g. [1]
192.168.1.1 is reversed to 1.1.168.192 and key value is 0101A8C0
According to the above sample, we should update this value to
15ba8c0
, which is192.168.91.1
. -
Now, we need to restart the both the VMware DHCP Service and VMware NAT Service using Windows Services Manager.