I&#39;m not able to give an ip address to bnep0 interface.<br>If I use a static configuration in /etc/network/interfaces that&#39;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 &quot;iface \+$INTERFACE&quot; /etc/network/interfaces; then<br>  case $ACTION in<br>    add)<br>        if [ $INTERFACE = &#39;bnep0&#39; ]<br>
        then<br>                ifconfig bnep0 down<br>        fi<br>            ifconfig | grep -q &quot;^$INTERFACE&quot; || 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, &quot;No lease, failing\n&quot;, 18)     = 18    <br>unlink(&quot;/var/run/udhcpc.bnep0.pid&quot;)     = 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>