I want to run udhcpd on an aliased interface eth0:0 I modified /etc/udhcpd.conf interface config line like this: interface eth0:0 #default: eth0 But when I run udhcpd it fails aright away: [root@ST600 /]# ifconfig eth0:0 eth0:0 Link encap:Ethernet HWaddr 24:DB:AD:00:12:4B inet addr:10.0.54.51 Bcast:10.0.54.63 Mask:255.255.255.192 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 [root@ST600 /]# udhcpd -f /etc/udhcpd.conf udhcpd: can't bind to interface eth0:0: No such device [root@ST600 /]#
Here's output when running with -vv: [root@ST600 /]# udhcpd -vvf /etc/udhcpd.conf Attaching option 03 to list Attaching option 33 to list Read 0 leases IP 10.0.54.51 Adapter index 3 MAC 24:db:ad:00:12:4b Opening listen socket on *:67 eth0:0 udhcpd: can't bind to interface eth0:0: No such device [root@ST600 /]#
This is running on embedded Linux 2.6.31.12 on a powerpc arch (MPC8xx). Also it looks related to bug https://bugs.busybox.net/show_bug.cgi?id=5432 because in both issues the failure seems to be in "setsockopt_bindtodevice()".
Should be fixed by http://git.busybox.net/busybox/commit/?id=6567edd10b0ebd3333f4283decd90e1d57a42885 Please reopen if it is not.
The patch worked, thanks.