Creating and managing DHCP scopes using Netsh

| | No TrackBacks

DHCP server offers flexible means top control the way it provides IP addresses and other information. All the major options may be changed on the fly using tools such as netsh utility.

DHCP scope is a pool (set) of IP addresses that a DHCP server may lease when requested. Those can be created from command-line, thus offering an automated means of manipulation scope

For example, the following command

netsh dhcp server add scope 10.50.12.0 255.255.0.0 "Building One"

will create a scope with network ID 10.50.12.0 and IP mask 255.255.0.0.

The subsequent command

netsh dhcp server scope 10.50.212.0 add iprange 10.50.12.50 10.50.12.100

wil create a range of dynamic IP addresses from the specified scope.

To exclude certain address from that dynamic pool, use command like

netsh dhcp server scope 10.50.12.0 add excluderange 10.50.12.75 10.50.12.80

the above command will excldue the six addresses from dynamical assignement.

You can create static address assignment for a specific MAC address using command like

netsh dhcp server scope 10.50.12.0 add reservedip 10.50.12.99 6E7A55109F0B

Similarly, the above records may be deleted with 'del' subcommand.

No TrackBacks

TrackBack URL: /blog/mt-tb.cgi/6

blog comments powered by Disqus

About this Entry

This page contains a single entry by Konstantin Boyandin published on December 1, 2009 5:36 PM.

Authorizing a DHCP server using Netsh was the previous entry in this blog.

Authorizing a DHCP server using Netsh is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.