====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
msdhcp [2009/05/24 14:07] rulerof |
msdhcp [2010/03/15 16:41] (current) sha0 Correct image file locations |
||
---|---|---|---|
Line 35: | Line 35: | ||
{{:reservation-options.png}} | {{:reservation-options.png}} | ||
+ | |||
+ | ==== Setting up a gPXE Encapsulated Options on Windows DHCP ==== | ||
+ | |||
+ | Unfortunately, this is fairly tricky and involves manually editing the array of bytes that will be sent to the gPXE client in DHCP option 175, which is where Etherboot/gPXE encapsulated options go. | ||
+ | |||
+ | Firstly, you need to create the encapsulated options. Right-click on the server, then choose "Set Predefined Options..." | ||
+ | |||
+ | {{msdhcp:win_dhcp_encap1.jpg}} | ||
+ | |||
+ | Click the "Add..." button. | ||
+ | |||
+ | {{msdhcp:win_dhcp_encap2.jpg}} | ||
+ | |||
+ | Use the following options then click the "OK" button: | ||
+ | |||
+ | Name: gPXE_Options | ||
+ | Data type: Encapsulated | ||
+ | Code: 175 | ||
+ | Description: gPXE_Options | ||
+ | |||
+ | {{msdhcp:win_dhcp_encap3.jpg}} | ||
+ | |||
+ | Click the "Edit Array..." button: | ||
+ | |||
+ | {{msdhcp:win_dhcp_encap4.jpg}} | ||
+ | |||
+ | This is where you can manually enter some defaults. We'll use iSCSI username and password as an example. We see from gpxe/src/include/gpxe/dhcp.h that the username option is 0xBE and the password option is 0xBF. So add these along with an end-of-option code and click the "OK" button: | ||
+ | |||
+ | 0xBE 0xBF 0xFF | ||
+ | |||
+ | {{msdhcp:win_dhcp_encap5.jpg}} | ||
+ | |||
+ | Back in the "Predefined Options and Values" window, click the "OK" button: | ||
+ | |||
+ | {{msdhcp:win_dhcp_encap6.jpg}} | ||
+ | |||
+ | Now choose a client who you'd like to configure specific options for in the "Reservations" area. Right-click and choose "Configure Options...": | ||
+ | |||
+ | {{msdhcp:win_dhcp_encap7.jpg}} | ||
+ | |||
+ | Find the gPXE_Options with code 175 that you defined: | ||
+ | |||
+ | {{msdhcp:win_dhcp_encap8.jpg}} | ||
+ | |||
+ | Now you can manually add in a username and a password, following the respective options numbers: | ||
+ | |||
+ | {{msdhcp:win_dhcp_encap9.jpg}} | ||
+ | |||
+ | Now you must insert the length for the username, and the length for the password. In our example, "u s e r n a m e" and "p a s s w o r d" are both 8 characters long, so we use the hexadecimal value for 8. The length field goes right after the option field. Once entered, you may click the "OK" button: | ||
+ | |||
+ | {{msdhcp:win_dhcp_encap10.jpg}} |