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.
22 questions
2
votes
0
answers
278
views
SLAAC and SLAAC+DHCPv6 configuration using udhcp6
I am working on an embedded system and it uses udhcpc6 as its DHCPv6 client.
If I set an interface to 'dhcp' in the /etc/network/interfaces file, udhcp and udhcp6 automatically start.
I then connect ...
1
vote
1
answer
211
views
What is a sane config for P2P DHCP using busybox udhcpd?
I have two computers connected directly via ethernet with one serving as a dhcp server and the other as a client
my config:
interface eth0
lease_file /var/lib/udhcpd/udhcpd.leases
remaining no
...
0
votes
1
answer
3k
views
ARP table shows incomplete entry and connectivity lost
I have Linux device running 4.14.7 kernel. My device-A is directly connected to third-party device(Device-B) over 1Gig port. A UDHCPD server runs on dev-A which always assigns single IP address as per ...
0
votes
2
answers
234
views
How to "predict" a DHCP IP address?
Before launching a VM from my script, I need to figure out which IP address it will get.
So I did:
dhclient <interface>
And this works, because dhclient uses the MAC address from the macvtap ...
0
votes
1
answer
2k
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
1
answer
723
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
0
answers
417
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 ...
2
votes
1
answer
3k
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 ...
2
votes
1
answer
3k
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
0
answers
1k
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
1
answer
2k
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
1
answer
9k
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
1
answer
7k
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 ...
7
votes
3
answers
35k
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
0
answers
32
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 ...