Changing the DHCP User Class

iPXE uses a DHCP User Class (option 77) value of “iPXE” to identify itself to the DHCP server as an iPXE client. This allows the DHCP server to customise its response for iPXE clients. For example, a DHCP server could instruct all iPXE clients to boot from a SAN.

One important practical application of the DHCP User Class is to break the infinite loop when using PXE chainloading. In this use case, the DHCP server is set to hand out the iPXE binary undionly.kpxe as the default boot filename for legacy PXE clients, with the “real” boot parameters being handed out only for requests from iPXE clients.

For more complex configurations, you may wish to customise the DHCP User Class sent by iPXE. You can do this by changing the user-class setting. For example, an embedded script might contain:

  set user-class ThinClient

This script would cause the DHCP requests sent by iPXE to specify a User Class of “ThinClient” rather than the default “iPXE”.

appnote/userclass.txt · Last modified: 2011/03/24 11:32 by mcb30
Recent changes RSS feed CC Attribution-Share Alike 4.0 International Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL
References to "iPXE" may not be altered or removed.