mirror of
https://github.com/netbootxyz/netboot.xyz-docs.git
synced 2026-04-25 23:15:56 +03:00
[GH-ISSUE #113] Suggestion: Add ProxyDHCP support #20
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/netboot.xyz-docs#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lars18th on GitHub (Jul 31, 2024).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz-docs/issues/113
Hi,
The use case is very easy (and common): you can't replace the current DHCP server on your network and you can't edit the configuration to add the
next-serveroption to it.In this case the only option is to use the ProxyDHCP way. How it works? It uses a non-standard booting method where your booting client receives two DHCP OFFER packets. One is from the stock DHCP server with the IP address and all other information. And another one from your booting server with the PXE data. You can read more from here https://github.com/pypxe/PyPXE/blob/master/DOCUMENTATION.md#proxydhcp
So because this project https://github.com/pypxe/PyPXE includes support for this extension, the idea is to include it. I've done some tests with it
sudo python -m pypxe.server --dhcp-proxy --tftpand it works with success.The suggestion is then to add this package to this container and use it to enable this mode.
I hope you want to explore it.
Regards.
@antonym commented on GitHub (Aug 1, 2024):
ProxyDHCP is already supported, if you drop a local-vars.ipxe in your local tftp root and set:
set use_proxydhcp_settings trueThat will enable the proxydhcp code path:
https://github.com/netbootxyz/netboot.xyz/blob/development/roles/netbootxyz/templates/disks/netboot.xyz.j2#L31
@lars18th commented on GitHub (Aug 1, 2024):
Wow, that's great! I'll try it.
However, perhaps it has sense to add this description in the main README.md because this information has no visibility. And also I suggest to include a toggle in the UI to enable it, instead of a manual setting. Do you agree with that?
@antonym commented on GitHub (Aug 4, 2024):
Moving to docs project to make a note to write some.