Configuring DHCP for IPv4 in Windows
You can configure the DHCP server for HPDU devices using IPv4
addresses. This procedure is based on Microsoft Windows Server
2012.
-
Add a new vendor class for the HPDU under IPv4.
-
Right-click the IPv4 node in DHCP to select Define Vendor
Classes.
-
Click Add to add a new vendor class.
-
In the New Class dialog box, type a unique name for this
vendor class and the binary codes of the HPDU.
-
Define one DHCP standard option, Vendor Class
Identifier.
-
Right-click the IPv4 node in DHCP and select Set
Predefined Options.
-
Select DHCP Standard Options in the Option class
field, and Vendor Class Identifier in the Option
name field. Leave the String field blank.
-
Add three options to the new vendor class for the
HPDU.
-
Select the HPDU in the Option class field.
-
Click Add to add the first option. Type
pdu-tftp-server in the Name
field, select IP Address as the data type, and type
1 in the Code field.
-
Click Add to add the second option. Type
pdu-update-control-file in
the Name field, select String as the data type, and
type 2 in the Code field.
-
Click Add to add the third one. Type
pdu-update-magic in the
Name field, select String as the data type, and type
3 in the Code field.
-
Create a new policy associated with the vendor class.
-
Right-click the Policies node under IPv4 and select New
Policy.
-
Specify a policy name, and click Next.
-
Click Add to add a new condition.
-
Select the vendor class for the HPDU in the Value field,
click Add, and click OK.
-
Click Next.
-
Select DHCP Standard Options in the Vendor class field, select 060
Vendor Class Identifier from the Available Options list, and type
the HPDU name in the String value field.
-
Select the HPDU name in the Vendor class field, select 001
pdu-tftp-server from the Available Options list, and type the TFTP
server IPv4 address in the IP address field.
-
Select 002 pdu-update-control-file from the Available Options
list, and type the file name fwupdate.cfg in
the String value field.
-
Select 003 pdu-update-magic from the Available Options list, and
type any string in the String value field.
The third option/code is the magic cookie to prevent the
fwupdate.cfg commands from being executed
repeatedly. It does not matter whether the IPv4 magic cookie is
identical to or different from the IPv6 magic cookie.
The magic cookie is a string comprising numerical and/or
alphabetical digits in any format. For example, you can use a
combination of a date and a serial number.
Note -
The magic cookie is transmitted to and stored in HPDU at the
time of executing the fwupdate.cfg
commands. The DHCP/TFTP operation is triggered only when there
is a mismatch between the magic cookie in DHCP and the one
stored in the HPDU. Modify the magic cookie value in DHCP when
intending to execute the fwupdate.cfg
commands the next time.