Udhcpc is a very small DHCP client program geared towards embedded systems. The letters are an abbreviation for Micro - DHCP - Client. The program tries to be fully functional and RFC 2131 compliant.
Questions tagged [udhcpc]
19 questions
56
votes
9 answers
What overwrites /etc/resolv.conf on every boot?
I was given the files for a mini linux, that boots directly into firefox. It works for all it should be doing, only that I do not get an internet connection.
We have 3 DNS servers in the network, which all work. I can ping them, too. But when trying…
Minix
- 5,735
- 8
- 28
- 45
6
votes
2 answers
How do I use dhcpcd in openwrt instead of udhcpc?
I'm trying to determine the reason my router is not syncing up to my ISP, I do suspect snafu on their end so I'm trying to replicate my desktops setup which includes using dhcpcd.
Problem is I don't know how to tell OpenWRT to use that after I've…
xenoterracide
- 57,918
- 74
- 184
- 250
6
votes
3 answers
How is udhcpc executed and how to change it?
I am working on an embedded system and it uses udhcpc as its DHCP client. It seems to be running with the following parameters:
/usr/share/udhcpc # ps | grep dhcp
5366 root 2432 S udhcpc -R -b -p /var/run/udhcpc.eth0.pid -i eth0
I want to…
some user
- 219
- 1
- 2
- 7
4
votes
1 answer
How to get BusyBox udhcpc to run in background forever?
I would like to configure eth0 on my BusyBox based Linux system to try and get a DHCP lease for 5 times, then run in the background forever if it doesn't get an IP after those 5 tries (i.e. does not inhibit the rest of the applications starting…
SeanLabs
- 701
- 2
- 10
- 21
4
votes
3 answers
Overriding udchcp flags used by ifup in BusyBox
I am working on a system that I did not create the BusyBox build for. I do not want to recompile BusyBox for fear that my configuration will not completely match the original and besides this the system is functioning well enough on this build. I…
Matt Minga
- 73
- 1
- 8
2
votes
1 answer
How to deconfigure/reconfigure eth interface when cable is connected/disconnected with Busybox
I'm running Alpine Linux, which is based on Busybox and musl, on Raspberry Pi.
When I run ifup eth0, it also starts udhcpc in the background for that interface. That means that if the ethernet cable is connected when I run ifup, it immediatelly…
Michal Artazov
- 123
- 5
2
votes
1 answer
udhcpc: DHCP option 66 variable tftp contains "bad" if DHCP server provides IP address instead of hostname
I am working on an embedded Linux which uses BusyBox and udhcpc (part of BusyBox) as its DHCP client.
If I configure the DHCP server to deliver an FTP server in the DHCP option 66 everything is fine (i.e. the tftp variable in the /etc/udhcpc.script…
DrP3pp3r
- 165
- 7
2
votes
1 answer
udhcpc: no lease, failing WHEN booting on embedded linux created by Buildroot
The responsiveness of the Linux service udhcpc (native DHCP relative to /etc/init.d/S40network service which invokes ip up and udhcpc) differs before and after logging at the prompt.
When invoked via /etc/init.d/rcS (boot sequence), udhcpc does not…
stefff
- 21
- 1
- 4
2
votes
1 answer
How to execute udhcpc as non-root
On a Linux machine, I am trying to run the udhcpc command as non-root. I am getting the error udhcpc: socket: Operation not permitted. Is there any way to execute udhcpc as a simple user in Linux?
user736403
2
votes
0 answers
udhcpc starting before PHY is up
I'm having a issue with my Ethernet PHY not being up before eth0 tries to get an IP address
This is my etc/network/interfaces
# Configure Loopback
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
post-up…
Jamiro14
- 131
- 4
2
votes
1 answer
How to configure DHCP so that boot is completed even without a DHCP server?
I have configured /etc/network/interface like this:
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
But when a lease cannot be obtained, the booting is not completed. Is it possible to leave DHCP enabled but, in case a DHCP lease is not…
michelemarcon
- 3,357
- 10
- 32
- 37
1
vote
0 answers
DHCLIENT not getting the intended static IP configured in DHCP Server
We have a Linux client that is running a Yocto Thud image. I have set my dhcp to reserve a static address for this client alone.
However, the client still continues to get a dynamic IP from the DHCP Server instead of the intended static IP.
We did…
Aashik Aswin
- 21
- 2
1
vote
1 answer
Update hostname with udhcpc
I have a small Debian-based Linux device which set's its hostname by calling udhcpc:
udhcpc -i $interface -S -x hostname:mydevice
(Of course $interface is defined earlier in the script calls udhcpc.)
This works as intended, on my router I can see…
Daniel
- 319
- 1
- 10
1
vote
0 answers
busybox initramfs environment cannot connect to wifi
I am trying to create a minimal Linux initramfs environment with busybox that connects to my wifi network. wpa_supplicant successfully initializes, but neither udhcpc nor setting up a static IP address works. These are the commands used:
$ # Mount…
user489481
- 111
- 1
1
vote
1 answer
How to broadcast two access points?
How do I broadcast two access points with two WiFi cards with hostapd? Most tutorials don't work since udhcpd doesn't work with two access points.
Example tutorial: http://elinux.org/RPI-Wireless-Hotspot
Lucas Thomas
- 11
- 2