Questions tagged [udhcpc]

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
154 views

How to keep IP given from DHCP server when changing DHCP client from udhcpc to systemd-networkd

I have a device I want to upgrade its filesystem and packages. What's installed now is some kind of buildroot with busybox. Its DHCP client is udhcpc and I run it like this /sbin/udhcpc -R -b -p /var/...
0
votes
0answers
34 views

udhcpd stops working on virtual interface when wpa_supplicant is called

I am working on a board equipped with a Wifi module that supports access point mode. I can create an access point using the following script: #!/bin/bash modprobe brcmfmac iw dev wlan0 interface add ...
0
votes
1answer
49 views

how to make wpa_supplicant exit when the desired SSID is not found?

I have a device (e.g. raspberry) running a minimal version of linux built with YOCTO and with not network manager available. At a given time a network configuration may be present in the file /home/...
1
vote
0answers
86 views

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 ...
1
vote
1answer
482 views

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 ...
1
vote
1answer
455 views

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.) ...
1
vote
0answers
115 views

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 ...
2
votes
1answer
572 views

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 (...
2
votes
1answer
4k views

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 ...
4
votes
1answer
5k views

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 ...
5
votes
3answers
17k views

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 -...
0
votes
0answers
19 views

reset of a ubiquiti networks power ap - no love

Had to reset our ubnt power ap. It's on fiber, and should pull ip via dhcp. no pppoe weirdness here. even so, it cannot grab an ip. all cables are connected. tried mtu 1500 and 1492. I have ssh access ...
1
vote
1answer
595 views

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-...
4
votes
3answers
6k views

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 ...
42
votes
9answers
166k views

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, ...
2
votes
0answers
861 views

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 ...
2
votes
1answer
1k views

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?
2
votes
1answer
2k views

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 ...
4
votes
2answers
5k views

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 ...