Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
msdhcp [2009/05/24 13:56]
rulerof
msdhcp [2010/03/15 16:34]
sha0 gPXE Encapsulated Options Description
Line 17: Line 17:
  
  
-     * First, open the DHCP console, and connect it to your DHCP Server. ​ You can do this by right clicking "​DHCP"​ at the top of the console, then click "Add Server." ​ Type in the server name in the "This server:"​ edit box, or select it from the list of authorized DHCP Servers on the bottom. 
  
-     * Once you've done that, expand the server'​s name, then, if necessary, expand the protocol you're using (here we use IPv4) and expand the scope that corresponds to your network. ​ Finally, right click "Reservations" ​in that scope, and click "New Reservation." ​+     * First, open the DHCP console, and connect it to your DHCP Server. ​ You can do this by right clicking **DHCP** at the top of the console, then click **Add Server.** ​ Type in the server name in the **This server:** edit box, or select it from the list of authorized DHCP Servers on the bottom. 
 + 
 +     * Once you've done that, expand the server'​s name, then, if necessary, expand the protocol you're using (here we use IPv4) and expand the scope that corresponds to your network. ​ Finally, right click **Reservations** in that scope, and click **New Reservation.** 
  
 {{:​create-reservation.png}} {{:​create-reservation.png}}
  
-     * In the "New Reservation" ​dialog box, give the client a friendly name, assign an IP address, then enter the MAC address of the NIC you'll be using for your PXE boot.  When you're done, click "Add" ​down at the bottom of the dialog. ​ If you have more than one client to add, you can do so in the same fashion, otherwise, click "Close."+     * In the **New Reservation** dialog box, give the client a friendly name, assign an IP address, then enter the MAC address of the NIC you'll be using for your PXE boot.  When you're done, click **Add** down at the bottom of the dialog. ​ If you have more than one client to add, you can do so in the same fashion, otherwise, click **Close.**
  
 {{:​set-reservation-info.png}} {{:​set-reservation-info.png}}
  
 +     * Now, you can expand **Reservations** on the left side.  Right click your client and click **Configure Options**.
 +
 +{{:​configure-options.png}}
 +
 +     * These options are what we'll modify to make use of gPXE's various network boot capabilities.
 +
 +{{:​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..."​
 +
 +{{:​win_dhcp_encap1.jpg}}
 +
 +Click the "​Add..."​ button.
 +
 +{{:​win_dhcp_encap2.jpg}}
 +
 +Use the following options then click the "​OK"​ button:
 +
 +  Name: gPXE_Options
 +  Data type: Encapsulated
 +  Code: 175
 +  Description:​ gPXE_Options
 +
 +{{:​win_dhcp_encap3.jpg}}
 +
 +Click the "Edit Array..."​ button:
 +
 +{{:​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
 +
 +{{:​win_dhcp_encap5.jpg}}
 +
 +Back in the "​Predefined Options and Values"​ window, click the "​OK"​ button:
 +
 +{{:​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...":​
 +
 +{{:​win_dhcp_encap7.jpg}}
 +
 +Find the gPXE_Options with code 175 that you defined:
 +
 +{{:​win_dhcp_encap8.jpg}}
 +
 +Now you can manually add in a username and a password, following the respective options numbers:
 +
 +{{:​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:
  
 +{{:​win_dhcp_encap10.jpg}}

QR Code
QR Code msdhcp (generated for current page)