I'm not able to give an ip address to bnep0 interface.<br>If I use a static configuration in /etc/network/interfaces that's is simply ignored.<br>I fixed this by changing /etc/udev/scripts/network.sh in the following mode:<br>
[...]<br># if this interface has an entry in /etc/network/interfaces, let ifupdown<br># handle it<br>if grep -q "iface \+$INTERFACE" /etc/network/interfaces; then<br> case $ACTION in<br> add)<br> if [ $INTERFACE = 'bnep0' ]<br>
then<br> ifconfig bnep0 down<br> fi<br> ifconfig | grep -q "^$INTERFACE" || ifup $INTERFACE<br> ;;<br> remove)<br> ifdown $INTERFACE<br> ;;<br>
esac<br><br> exit 0<br>fi<br>It seems that when the script is called bnep0 is already up (without an ip) and so ifup is not called.<br>However the above all did not fixed the problem when trying to use a dynamic ip.<br>
udhcpc is started, but terminates with no lease, as you may see from the strace output:<br><br>Process 4176 attached - interrupt to quit <br>wait4(4190, NULL, 0, NULL) = 4190 <br>--- SIGCHLD (Child exited) @ 0 (0) --- <br>
write(1, "No lease, failing\n", 18) = 18 <br>unlink("/var/run/udhcpc.bnep0.pid") = 0 <br>exit_group(1) = ? <br>Process 4176 detached<br><br>I get only bnep0:ava with a fake address.<br>
The nice thing is that if I run udhcpc -R -n -i bnep0 manually it get the ip immediately!<br><br>Did someone experienced such problems?<br>Regards<br><br> Nicola<br><br><br><br>