Author Topic: Setting static IP address to UDHCP client  (Read 699 times)

0 Members and 1 Guest are viewing this topic.

Offline ENzero

  • Jr. Member
  • **
  • Posts: 1
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
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 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.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal