Show Posts

You can view here all posts made by this member. Note that you can only see posts made in areas to which you currently have access.

Messages - ENzero

Pages: [1]
Programming / Setting static IP address to UDHCP client
« on: December 31, 2018, 01:14:53 pm »
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):

Code: [Select]
/sbin/udhcpc -A 3 -f -s /tmp/udhcpc_wlan0_sh -i wlan0 -r

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.

Pages: [1]

SimplePortal 2.3.3 © 2008-2010, SimplePortal