client identifier - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: client identifier (/showthread.php?tid=1705) |
client identifier - mafalb - 2012-01-26 17:11 Hi, I try to install CentOS ipxe is getting a lease: Code: lease 10.10.11.215 { I boot the kernel and after that the network interface is reset by the installation routine, it gets a new lease Code: lease 10.10.11.213 { You see what happens? Another IP! I believe it is because iPXE is setting a Client Identifier (the uid "YYY") and Linux Installation does not. One Problem with that is that some post installation Tasks are not acting as expected because they are IP based. Is it possible to disable the Client Identifier like "set client-identifier nil" or something or a compile time option to disable it? RE: client identifier - robinsmidsrod - 2012-01-26 21:20 A simple recursive search identified the two files containing the string DHCP_CLIENT_ID: Code: src/net/udp/dhcp.c If you have a look and try to disable some code in one of those you might get lucky. Line 1024 of dhcp.c seems quite interesting. Unfortunately there is no simple config flag to disable. RE: client identifier - tekgnosis - 2012-03-20 19:39 I've encountered this in a different context. One easy way to stop iPXE from doing UID-present DHCP call is to 'skip' it entirely. Use undionly.kkpxe, and use the use-cache 1 flag in your .ipxe script to keep the IP info from the PXE stack DHCP response packet instead of making a new request. PXE doesn't support UID, so will have the MAC-only lease assigned to it, which the linux install will then re-use. More linux distros are including UID now, so if this matters in a lab with many reboots it can be helpful to know that you can disable UID (Client Identifier) support in all the common dhcpc implementations. E.g. udhcpc has ' -C ' to disable client identifier. |