Udhcpc

From Alpine Linux
Revision as of 04:04, 21 September 2017 by John3-16 (talk | contribs) (Categorized: Networking, Embedded Systems)
Jump to: navigation, search

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.