Environment: PXE server:with tftpd-hpa + dhcp3-server PXE client: kernel 2.6.32.11 built from ubuntu 10 lts + self made initrd using busybox 1.61 Symptom: 1.Edit /etc/init.d/rcS to include the below ifup -a udhcpc -s /usr/share/udhcpc/default.script (copied from busybox source's example/dhcpc/simple.script) 2.boot a client using pxe server 3.success boot client 4.type ifconfig, showed no inet address is allocated, except inet6 address Please help! I cannot move forward for deployment for work. More foundings: 1.if you type udhcpc can # prompt, still not able to get IP address it only shows #udhcpc udhcpc (v1.16.1) started Sending discover... Sending select for 192.168.40.136 Lease of 192.168.40.136 obtained, lease time 1800 # 2. If you type udhcpc -s /usr/share/udhcpc/default.script, eth0 will succeed at get and bind IP v4 adress. 3. If you type udhcpc, IPv4 cannot bind to eth0. Very confused - What is the difference between run "udhcpc -s /usr/share/udhcpc/default.script" in rcS and run in interactive shell by hand?? Help! Help! Thank, Nick
1.Edit /etc/init.d/rcS to include the below ifup -a udhcpc -s /usr/share/udhcpc/default.script (copied from busybox source's example/dhcpc/simple.script) ifup -a will run various things depending on its configuration. Are you sure it doesn't mess up eth0 configuration? Try removing this command. Can you run udhcpc with -f option so that it prints some information to the screen?
Any news?
Closing as "works for me", assuming reporter had ifup/udhcpc conflict
I verified on machine it doesn't work, if commented out "ifup -a" it will throw the below information while booting ===Info start=== Create kernkel devices... udhcpc(v1.16.1) started Sending discover... udhcpc: sendto: Network is donw Read error: Network is down, reopening socket Sending discover... ...(omitted)... No lease, failing # ====Info end=== I'm not sure what configuration need to change to make it work? could paste you eth0 configuration here, especially the content under /etc/network ? (that may be root cause) Thanks, Nick
(In reply to comment #4) > I verified on machine it doesn't work, if commented out "ifup -a" > > it will throw the below information while booting > ===Info start=== > Create kernkel devices... > udhcpc(v1.16.1) started > Sending discover... > udhcpc: sendto: Network is donw > Read error: Network is down, reopening socket > Sending discover... > ...(omitted)... > No lease, failing > # > ====Info end=== > > I'm not sure what configuration need to change to make it work? You need to "up"the device. Try "ip l set dev eth0 up"
Closing as "works for me", assuming upping the interface helped.