Passing dhcpd options to kernel command line
|
2020-10-11, 18:36
Post: #1
|
|||
|
|||
Passing dhcpd options to kernel command line
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 |
|||
2020-10-12, 16:20
Post: #2
|
|||
|
|||
RE: Passing dhcpd options to kernel command line
This is the command to print kernel command line:
Code: cat /proc/cmdline |
|||
2020-10-13, 14:04
Post: #3
|
|||
|
|||
RE: Passing dhcpd options to kernel command line
You can address options by their numeric value, i.e. ${190} or ${netX/190}
|
|||
2020-11-10, 12:53
Post: #4
|
|||
|
|||
RE: Passing dhcpd options to kernel command line
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. |
|||
2020-11-10, 14:01
Post: #5
|
|||
|
|||
RE: Passing dhcpd options to kernel command line
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. "Thus far, you have been adrift within the sheltered harbor of my patience..." |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)