Skip to main content

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
1 vote
0 answers
14 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 ...
NickG's user avatar
  • 131
1 vote
1 answer
42 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 ...
qwerty_in_me's user avatar
0 votes
1 answer
377 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 ...
Ashoka's user avatar
  • 111
0 votes
2 answers
175 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 ...
Maestro's user avatar
  • 191
0 votes
1 answer
1k 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/...
hudac's user avatar
  • 779
0 votes
1 answer
615 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/...
firion's user avatar
  • 149
1 vote
0 answers
326 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 ...
Aashik Aswin's user avatar
2 votes
1 answer
2k 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 ...
Michal Artazov's user avatar
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.) ...
Daniel's user avatar
  • 339
1 vote
0 answers
774 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 ...
user489481's user avatar
2 votes
1 answer
1k 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 (...
DrP3pp3r's user avatar
  • 165
2 votes
1 answer
8k 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 ...
stefff's user avatar
  • 21
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 ...
SeanLabs's user avatar
  • 701
7 votes
3 answers
29k 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 -...
some user's user avatar
  • 249
0 votes
0 answers
21 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 ...
user400344's user avatar
1 vote
1 answer
719 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-...
Lucas Thomas's user avatar
4 votes
3 answers
8k 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 ...
Matt Minga's user avatar
59 votes
9 answers
256k 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, ...
Minix's user avatar
  • 5,925
2 votes
0 answers
963 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 ...
Jamiro14's user avatar
  • 131
2 votes
1 answer
2k 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?
user avatar
2 votes
1 answer
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 ...
michelemarcon's user avatar
6 votes
2 answers
6k 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 ...
xenoterracide's user avatar