Information Technology Reference
In-Depth Information
Here is a description of the command-line options:
ScopeNetwork : Optional parameter whose value specifies the network address of the
DHCP range.
ScopeMask : Optional parameter whose value specifies the subnet mask of the DHCP range.
LeaseTime : Optional parameter whose value, specified in minutes, provides the duration
of the DHCP lease.
LogLevel : Optional parameter whose value specifies the level of logging by the DHCP
Allocator. You can configure this value for no logging ( none ), logging for errors only ( error ),
warnings and errors ( warn ), or all events ( info ).
For example, to configure a DHCP range for the 192.168.0.0 network with a subnet mask
of 255.255.255.0 , with addresses having a 60 minute lease time, run the following command:
> netsh routing ip autodhcp set global 192.168.0.0 255.255.255.0 60
To display the DHCP Allocator configuration for a specific interface, use this command:
> netsh routing ip autodhcp show interface [InterfaceName=] <InterfaceName>
To set the DHCP Allocator configuration for a specific interface, use this command:
> netsh routing ip autodhcp set interface
[InterfaceName=] <InterfaceName> [mode=]{enable | disable}
Here is a description of the command-line options:
InterfaceName : Required parameter whose value is the name of the interface to which you
want to bind the DHCP Allocator service. This value must match the name of the interface
as it appears in Network Connections.
Mode : Required parameter whose value either enables or disables the protocol on this interface.
For example, to bind the DHCP Allocator to Server Local Area Connection #2 , run the
following command:
> netsh routing ip autodhcp "Server Local Area Connection #2" enable
To add or remove an exclusion, use this command:
> netsh routing ip autodhcp {add | delete} exclusion <IPAddress>
Here is a description of the command-line options:
Add | Delete : Required parameter whose value specifies whether you want to add or
delete the exclusion.
Exclusion : Required parameter whose value is the IP address of the excluded system.
For example, to add an exclusion for the IP address of 192.168.0.15 , use the following
command:
> netsh routing ip autodhcp add exclusion 192.168.0.15
Search WWH ::




Custom Search