user-class
Type | String |
---|---|
DHCP option number | 77 |
ISC dhcpd syntax | option user-class |
iPXE> set user-class thinclient
# in /etc/dhcpd.conf if exists user-class and option user-class = "thinclient" { filename "thinclient.ipxe"; }
# in /etc/dhcpd.conf if exists user-class and option user-class = "iPXE" { filename "http://my.web.server/real_boot_script.php"; } else { filename "undionly.kpxe"; }
Specifies the user class sent by iPXE in DHCP requests. If no user class has been explicitly specified, iPXE will send the user class “iPXE
”.
The DHCP user class can be used to identify groups of related clients to the DHCP server.
The DHCP user class can be used to avoid the problem of an infinite loop when chainloading iPXE from an existing PXE ROM.
RFC 3004 defines the DHCP user class as a set of length-value tuples, but iPXE treats it as a string.1) You can choose to manually construct a value which conforms to RFC 3004 using the set
command. For example:
# Length 4, value 'i' (0x69), 'P' (0x50), 'X' (0x48), 'E' (0x45) set user-class:hex 04:69:50:48:45