DHCP message configuration
|
2013-05-17, 05:28
(This post was last modified: 2013-05-17 07:42 by Rickert.)
Post: #10
|
|||
|
|||
RE: DHCP message configuration
(2013-05-16 19:36)robinsmidsrod Wrote: Rickert: Those two options you mentioned there are available, how else would iPXE be able to resolve DNS names? They are available as ${net0/domain} and ${net0/dns} for adapter net0 or just ${dns} if you're just reading it out from the active adapter. Use the config command from the iPXE shell to see all the variables available by default.Sorry those two options I gave are bad examples. What I want is for iPXE to request custom options like this: Code: ption vlan-id code 100 = unsigned integer 16; These options will be used in a custom network script (one in /etc/init.d/boot.d ), after Linux finished loading vmlinuz and initrd. Before the network script can use such information, it must be retrieved by iPXE or PXE ROM (unfortunately, PXE ROM is unable to perform such request), so my only hope is iPXE. There are more options to be added later. Edit: Ok I found out the code to add more request options in src/net/udp/dhcp.c line 76. Just added the options I wanted and it works: iPXE finally sends out messages with such options. Thanks for your help everyone. I will still try to understand and study the iPXE source code though. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
DHCP message configuration - Rickert - 2013-05-15, 03:48
RE: DHCP message configuration - mcb30 - 2013-05-15, 23:47
RE: DHCP message configuration - Rickert - 2013-05-16, 07:37
RE: DHCP message configuration - mcb30 - 2013-05-16, 09:57
RE: DHCP message configuration - Rickert - 2013-05-16, 10:07
RE: DHCP message configuration - Rickert - 2013-05-16, 12:10
RE: DHCP message configuration - mcb30 - 2013-05-16, 12:40
RE: DHCP message configuration - Rickert - 2013-05-16, 13:30
RE: DHCP message configuration - robinsmidsrod - 2013-05-16, 19:36
RE: DHCP message configuration - Rickert - 2013-05-17 05:28
RE: DHCP message configuration - mcb30 - 2013-05-17, 16:06
|
User(s) browsing this thread: 3 Guest(s)