In this tutorial, we will see how to modify the subnet mask of a DHCP scope on Windows Server.
If we look in the properties of the scope, we realize that it is not possible to modify the subnet mask.
The “modification” of the DHCP scope is done in several stages:
Exporting the DHCP scope configuration
Modification of the configuration with the new subnet mask
Deleting the DHCP scope
Importing the configuration
Preparation
Before modifying the scope and the subnet mask, the change must be prepared.
The first step is to validate the new scope and make sure that the change of subnet mask will not collide with an existing scope.
If we take the example of the range 172.16.123.0/24, which limits the number of addresses available to 254 and we want to double the number of addresses available, we will therefore switch to a mask in / 23 which will give the range 172.16.122.0 – 172.16.123.255 and not the range 172.16.123.0 – 172.16.124.255.
To guide you in calculating the IP range, several calculators are available on the Internet:
List the equipment with fixed IP addresses to change the subnet mask.
Check the routing equipment (Routers / Switchs / Firewall ….).
Reduce the duration of DHCP leases on the beach.
Schedule the change at a time when the load is light.
Modify the subnet mask
Manipulations are to be done from the Powershell command prompt in administrator, you can either use Powershell cmdlets or the netsh utility.
If Windows is in a language with accented characters, it is imperative to use a PowerShell command prompt even for netsh commands, the export of the configuration contains accented characters which are not supported by a command prompt classic.
Manipulations are to be done on the DHCP server.
Export the scope configuration
Netsh :
netsh dhcp server \\NAME-SERVER-DHCP scope 172.16.X.X dump > C:\dhcp.txt
In this tutorial, we will see how to modify the subnet mask of a DHCP scope on Windows Server.
If we look in the properties of the scope, we realize that it is not possible to modify the subnet mask.
The “modification” of the DHCP scope is done in several stages:
Exporting the DHCP scope configuration
Modification of the configuration with the new subnet mask
Deleting the DHCP scope
Importing the configuration
Preparation
Before modifying the scope and the subnet mask, the change must be prepared.
The first step is to validate the new scope and make sure that the change of subnet mask will not collide with an existing scope.
If we take the example of the range 172.16.123.0/24, which limits the number of addresses available to 254 and we want to double the number of addresses available, we will therefore switch to a mask in / 23 which will give the range 172.16.122.0 – 172.16.123.255 and not the range 172.16.123.0 – 172.16.124.255.
To guide you in calculating the IP range, several calculators are available on the Internet:
List the equipment with fixed IP addresses to change the subnet mask.
Check the routing equipment (Routers / Switchs / Firewall ….).
Reduce the duration of DHCP leases on the beach.
Schedule the change at a time when the load is light.
Modify the subnet mask
Manipulations are to be done from the Powershell command prompt in administrator, you can either use Powershell cmdlets or the netsh utility.
If Windows is in a language with accented characters, it is imperative to use a PowerShell command prompt even for netsh commands, the export of the configuration contains accented characters which are not supported by a command prompt classic.
Manipulations are to be done on the DHCP server.
Export the scope configuration
Netsh :
netsh dhcp server \\NAME-SERVER-DHCP scope 172.16.X.X dump > C:\dhcp.txt
Check in the properties that the new mask is properly applied.
Conclusion
If you are using a DHCP failover configuration, you must reconfigure the scope failover.
All you have to do is modify the equipment with a fixed configuration.
x
Cookie-Zustimmung verwalten
Unser Webseiten Template mit den darin inkludierten Plugins verwendet Cookies. Sie stimmen der Nutzung von Cookies und unseren Datenschutzbestimmungen zu.
Funktional
Immer aktiv
Die technische Speicherung oder der Zugang ist unbedingt erforderlich für den rechtmäßigen Zweck, die Nutzung eines bestimmten Dienstes zu ermöglichen, der vom Teilnehmer oder Nutzer ausdrücklich gewünscht wird, oder für den alleinigen Zweck, die Übertragung einer Nachricht über ein elektronisches Kommunikationsnetz durchzuführen.
Vorlieben
Die technische Speicherung oder der Zugriff ist für den rechtmäßigen Zweck der Speicherung von Präferenzen erforderlich, die nicht vom Abonnenten oder Benutzer angefordert wurden.
Statistiken
Die technische Speicherung oder der Zugriff, der ausschließlich zu statistischen Zwecken erfolgt.Die technische Speicherung oder der Zugriff, der ausschließlich zu anonymen statistischen Zwecken verwendet wird. Ohne eine Vorladung, die freiwillige Zustimmung deines Internetdienstanbieters oder zusätzliche Aufzeichnungen von Dritten können die zu diesem Zweck gespeicherten oder abgerufenen Informationen allein in der Regel nicht dazu verwendet werden, dich zu identifizieren.
Marketing
Die technische Speicherung oder der Zugriff ist erforderlich, um Nutzerprofile zu erstellen, um Werbung zu versenden oder um den Nutzer auf einer Website oder über mehrere Websites hinweg zu ähnlichen Marketingzwecken zu verfolgen.