Re: DHCP reservations

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Eng (eugeniotalarico_at__REMOVE_THIS_vodafone.it)
Date: 02/24/05


Date: Thu, 24 Feb 2005 00:29:02 -0800

Hi look here:
http://cwashington.netreach.net/depo/view.asp?Index=983&ScriptType=command

see the below:

Author: Eugenio Talarico
mailto:eugeniotalarico@REMOVE_MEvodafone.it

Description:
Insert a list of reservation in a DHCP scope from an input file.

Script:

With this you can insert a list of a reservation in a dhcp scope.
The information are taken from the input.txt

for /f "tokens=1-4 delims=;" %%a in (input.txt) do (
netsh dhcp server DHCPSERVERIP scope SCOPEIP add reservedip %%a %%b %%c %%d
dhcp)

The scructure of the input.txt is:

IPADDRESS;MACADDRESS;MACHINENAME;DESCRIPTION

EXAMPLE:

172.17.169.100;018017462DD0;MYPCNAME;MYPCNAME



Relevant Pages

  • Re: Two DHCP Servers One Wire?
    ... Class C 172.16.3.x has a DHCP scope with 0 available IPs, ... What I would expect to happen here is that any machine with a reservation on ... machine with no reservation on either network would grab an available IP ...
    (microsoft.public.windows.server.networking)
  • DHCP (BAD_ADDRESS)
    ... We're using a DHCP scope and inputting client ... A few machines we're missed in the ... reservation process and started picking up random IP ...
    (microsoft.public.win2000.dns)
  • Re: How to Script DHCP Server
    ... Author: Eugenio Talarico ... mailto: eugeniotalarico@xxxxxxxxxxxxxxxxxxxx ... With this you can insert a list of a reservation in a dhcp scope. ...
    (microsoft.public.windows.server.scripting)
  • How to assign DHCP reservation to MAC Address of host
    ... I'm trying to assign an IP reservation from a DHCP scope to a specific MAC ... does anyone have a command or reference ...
    (comp.dcom.sys.cisco)
  • Re: Script DHCP Lease period
    ... > I need a script to change the lease period for a DHCP scope on a windows ... > server. ...
    (microsoft.public.win2000.networking)