udhcpc does not set address [solved]

Questions related to network booting via PXE
eworm
Posts: 27
Joined: 29 Jan 2008, 08:21
Location: Oberhausen
Contact:

udhcpc does not set address [solved]

Postby eworm » 26 Jul 2011, 13:42

Ok, I'm trying to update the nbd-client inside initram disk.
This is the way to go:
  • uncompress und extract initrd to tmeporary directory
  • cp new nbd-client to temporary directory
  • patch /init to call nbd-client with -name
  • archive and compress initram disk

Looks ok so far, except one thing: udhcpc does not set the address an the interface. The output is as usual:

Code: Select all

Lease of 172.16.0.16 obtained, lease time 21600

Running "ifconfig" or "ip addr show" proves that the interface does not have an address. Any ideas?

eworm
Posts: 27
Joined: 29 Jan 2008, 08:21
Location: Oberhausen
Contact:

Re: udhcpc does not set address

Postby eworm » 27 Jul 2011, 07:52

I investigated a bit further... The dhcp ethernet packets are identical (except the transaction ID). So it's not caused by any differences on the server side.

What I just noticed: If udhcpc does not set the address (although stated so) it does not print a line about setting the default route.
Mysterious...

eworm
Posts: 27
Joined: 29 Jan 2008, 08:21
Location: Oberhausen
Contact:

Re: udhcpc does not set address

Postby eworm » 27 Jul 2011, 08:02

Uah!

OK, I think I solved it...
I removed /usr before recompressing... udhcpc does not complain but silently fails if it misses anything.


Return to “Network Boot via PXE”

Who is online

Users browsing this forum: No registered users and 4 guests