Difference between revisions of "Udhcpc"

From Alpine Linux
Jump to: navigation, search
m (correct a typo)
m (Categorized: Networking, Embedded Systems)
Line 35: Line 35:
  
 
You may also add custom scripts /etc/udhcpc/pre-* and /etc/udhcpc/post-* to be run before and after deconfig|renew|bound dhcp events.
 
You may also add custom scripts /etc/udhcpc/pre-* and /etc/udhcpc/post-* to be run before and after deconfig|renew|bound dhcp events.
 +
 +
[[Category:Networking]]
 +
[[Category:Embedded Systems]]

Revision as of 04:04, 21 September 2017

You may want to customize behavior of default dhcp client (udhcpc from busybox).

The default behavior is drived by the script /usr/share/udhcpc/default.script

It's default configuration may be overwritten by a /etc/udhcpc/udhcpc.conf file.

Authorized key:value pair are available:

key default value possible values
NO_GATEWAY - <list of iface names>
IF_METRIC - <metric value>
IF_PEER_DNS yes <anything but yes>
RESOLV_CONF /etc/resolv.conf no ; NO ; -
NO_DNS - <list of iface names>

You may also add custom scripts /etc/udhcpc/pre-* and /etc/udhcpc/post-* to be run before and after deconfig|renew|bound dhcp events.