You can’t change the subnet mask of the DHCP scope directly without deleting the scope, need to delete the DHCP scope first then recreate the scope with new subnet, but this will lead to largeamount of manual work
To avoid the manual work use the below netsh command toChange the subnet mask in existing DHCP scope with the simple steps
Use the below command to export the scope configuration
Syntex:
C:\>netsh dhcp server \\”Server name” scope “scope subnet” dump>c:\dhcp.txt
Example:
C:\>netsh dhcp server \\Test01 scope 192.168.1.0 dump>c:\dhcp.txt
To change the subnet mask of the scope
Open the dhcp.txt file and change the subnet mask, dhcp.txt fileresemble the following
Changed the current scope context to 192.168.1.0 scope.
Dhcp Server 192.168.1.24 add scope 192.168.1.0 255.255.255.0 "Vlan-1" "Vlan-1"
Dhcp Server 192.168.1.24 Scope 192.168.1.0 set state 1
Edit the file and save
After this, delete the scope and run the below command to create the scope from the txt file
C:\>netsh exec c:\dhcp.txt
This will automatically create the DHCP scope with the new subnet mask
This way you can change other configuration details along with subnet mask change, like IP range and Excluderanges
Subscribe to:
Post Comments (Atom)
How to use Telus Actionec T3200M as a wireless Access point
when you install Telus Internet, they will offer you a modem + router + wireless device Actionec T3200M, a lot of users still want to use th...
-
when you updated your firmware of fortigate or setup new sslvpn, if you are using certificate other than factory default you might have is...
-
Installing or Upgrading HostScan Use this procedure to upload, or upgrade, and enable a new HostScan image on the ASA. Use the image to ...
-
Reboot the switch. You will see a prompt during boot right after the cisco logo made out of #s that says "Autoboot in 2 seconds - p...
No comments:
Post a Comment