Bug 8701

Summary: udhcpc: network setting not applied after receiving a lease
Product: Busybox Reporter: felix.wiedenroth
Component: NetworkingAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.24.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description felix.wiedenroth 2016-02-16 09:58:35 UTC
Hello, 

I experience a bug, when I try to use latest Busybox-Version on Linux.

The Linux-Distribution is Slackware, Version 13.37 64-Bit.

When I call ./busybox-x86_64 udhcpc the IP obtained from the dhcp-Server is not set - Broadcast, DNS, Netmask is of course also not set. Program goes to background and does nothing.

Screen output is as follows:

bash-4.1# ./busybox-x86_64 udhcpc   
udhcpc (v1.24.0.git) started
Sending discover...
Sending select for 149.172.109.174...
Lease of 149.172.109.174 obtained, lease time 2375
bash-4.1# 

Is that a known issue? Or is this specific to my Linux-Distribution?

Regards,

Felix
Comment 1 Mike Frysinger 2016-02-18 07:06:34 UTC
please post the .config file you're using

be aware that udhcp runs a script when it gets a response and that script is the one responsible for actually configuring interfaces.  from the help:
config UDHCPC_DEFAULT_SCRIPT
    string "Absolute path to config script"
    default "/usr/share/udhcpc/default.script"
    depends on UDHCPC
    help
      This script is called after udhcpc receives an answer. See
      examples/udhcp for a working example. Normally it is safe
      to leave this untouched.

so you need to make sure you've installed a script at that location.