Updates:

Many new features now available including 2-Factor authentication

Setting static IP address to UDHCP client

Started by ENzero, December 31, 2018, 01:14:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ENzero

I am using udhcp client for an embedded device. I am trying to add a feature to set a static IP, Netmask, DNS, and gateway address.

I am trying to set it through the "-r" argument (request):

/sbin/udhcpc -A 3 -f -s /tmp/udhcpc_wlan0_sh -i wlan0 -r 172.16.0.2

It does not seem to work. I try to connect my device to an access point and it still used the dhcp deamon provide address.

I was wondering if there are any additional things that I need to do to enable static address.