| Summary: | udhcpc failed bind IP address to iface (eth0) in rcS but manually execute can | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | nick <congtao.jiang> |
| Component: | Networking | Assignee: | unassigned |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | blocker | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | 1.16.x | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Host: | Target: | ||
| Build: | |||
|
Description
nick
2010-06-07 06:28:40 UTC
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" Any news? Closing as "works for me", assuming upping the interface helped. |