Jan 11 2024 09:01 PM - edited Jan 11 2024 10:59 PM
it's not possible to directly change the subnet mask of an existing DHCP scope in a running Windows DHCP server.
Here are the steps:
1. Export the Existing Scope Configuration:
Open a command prompt with administrative privileges.
Type the following command to export the scope configuration to a text file:
netsh dhcp server \\<DHCP_Server_Name> scope <Scope_IP_Address> dump > C:\dhcp.txt
2. Modify the Configuration File:
3. Delete the Old Scope:
4. Import the New Scope:
In the command prompt, type the following command to import the modified configuration:
netsh exec c:\dhcp.txt
5. Verify the Changes:
(Major Point - Ensure that your existing network address and subnet network address remain the same after making changes. If they are not the same, you need to modify the entire network address in the text file. For example, if the original subnet is 255.255.255.0 and the network address is 10.1.10.0, and you change it to 255.255.252.0, then the network address should also be updated to 10.1.8.0. Therefore, you must replace all instances of 10.1.10.0 with 10.1.8.0 in the entire text file (using Ctrl+H for the replacement).
Thats it....