Passing dhcpd options to kernel command line - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: Passing dhcpd options to kernel command line (/showthread.php?tid=32064) |
Passing dhcpd options to kernel command line - intmail01 - 2020-10-11 18:36 Hi, I want to pass some options of the dhcpd to the kernel command line but some options does not work. The option `next-server` can be passed by using ${next-server} but `host-name` and `ipxe.username` are ignored and are blank. I set these options like this: Code: option space ipxe; How to use these options because I need some informations from the server. Thank you RE: Passing dhcpd options to kernel command line - intmail01 - 2020-10-12 16:20 This is the command to print kernel command line: Code: cat /proc/cmdline RE: Passing dhcpd options to kernel command line - simon - 2020-10-13 14:04 You can address options by their numeric value, i.e. ${190} or ${netX/190} RE: Passing dhcpd options to kernel command line - intmail01 - 2020-11-10 12:53 Quote:You can address options by their numeric value, i.e. ${190} or ${netX/190} This does not work. I found another solution, the best way to get information from the server is to use dhcp client with the `-c` option. RE: Passing dhcpd options to kernel command line - MultimediaMan - 2020-11-10 14:01 iPXE DHCP variables: next-server = DHCP Option 66 = iPXE variable ${66} host-name = DHCP Option 12 = iPXE variable ${12} ipxe.username = DHCP Option 190 = iPXE variable ${190} Note: These variables tend to be GLOBAL and are overwritten each time a DHCP request is sent from the iPXE DHCP client. I've been using these variables for over a decade: they work. |