Bug#432977: ipconfig fails to get ip configuration from dhcp-server
On Fri, 13 Jul 2007, Christian Kern wrote: As we are using FAI to install our computers, the ipconfig binary in the klibc-utils package is used to obtain the IP configuration from a DHCP server at boot time, when installing a computer. which dhcp server? It is a dhcp3 with LDAP patches, 3.0.1rc14-1; however, the problem rather seemed to be related to the DHCP relays in between (unpatched dhcp3-relay from etch). [...] hmm i guess you have the corresponding tcpdump logs? [...] As we hadn't kept them I tried to reproduce the whole thing; but at least with the 1.4.34-2 packages I was unable to do this! I thus suggest either tagging this one unreproducible or closing it; if it ever pops up again in our system we'll reopen it. Best, Michael pgp0kVTs4TqMk.pgp Description: PGP signature
Bug#432977: ipconfig fails to get ip configuration from dhcp-server
On Fri, 13 Jul 2007, Christian Kern wrote: As we are using FAI to install our computers, the ipconfig binary in the klibc-utils package is used to obtain the IP configuration from a DHCP server at boot time, when installing a computer. which dhcp server? A normal DHCP process looks like this: DHCPDISCOVER (client-server) DHCPOFFER (server-client) DHCPREQUEST (client-server) DHCPACK (server-client) Using the ipconfig tool in the klibc-utils, the procedure looks like this: DHCPDISCOVER (client-server) DHCPOFFER (server-client) DHCPREQUEST (client-server) The DHCPACK is missing, an there is never an IP configuration obtained. It seems, that not transmitting an bootp gateway in the DHCPREQUEST package solves this Problem. (Patch attached) hmm i guess you have the corresponding tcpdump logs? - bootp.giaddr= dev-bootp.gateway; + bootp.giaddr= INADDR_ANY; according to git aboves line exits since quite some time, i'd say since at least Debian and Ubuntu integration. so i'd need a bit more evidence to merge such a patch. i'll test it next week on my side. thanks for the feedback! -- maks -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#432977: ipconfig fails to get ip configuration from dhcp-server
Package: klibc-utils Version: 1.4.34-1 As we are using FAI to install our computers, the ipconfig binary in the klibc-utils package is used to obtain the IP configuration from a DHCP server at boot time, when installing a computer. A normal DHCP process looks like this: DHCPDISCOVER (client-server) DHCPOFFER (server-client) DHCPREQUEST (client-server) DHCPACK (server-client) Using the ipconfig tool in the klibc-utils, the procedure looks like this: DHCPDISCOVER (client-server) DHCPOFFER (server-client) DHCPREQUEST (client-server) The DHCPACK is missing, an there is never an IP configuration obtained. It seems, that not transmitting an bootp gateway in the DHCPREQUEST package solves this Problem. (Patch attached) diff -urN klibc-orig-1.4.34/usr/kinit/ipconfig/dhcp_proto.c klibc-1.4.34/usr/kinit/ipconfig/dhcp_proto.c --- klibc-orig-1.4.34/usr/kinit/ipconfig/dhcp_proto.c 2007-07-12 17:29:13.0 +0200 +++ klibc-1.4.34/usr/kinit/ipconfig/dhcp_proto.c2007-07-12 17:30:22.0 +0200 @@ -161,7 +161,7 @@ bootp.hlen = dev-hwlen; bootp.xid = dev-bootp.xid; bootp.ciaddr= dev-ip_addr; - bootp.giaddr= dev-bootp.gateway; + bootp.giaddr= INADDR_ANY; bootp.secs = htons(time(NULL) - dev-open_time); memcpy(bootp.chaddr, dev-hwaddr, 16); Best regards, Christian Kern