Udhcpc

From Alpine Linux
Revision as of 13:23, 2 August 2017 by Jlo (talk | contribs) (Created page with "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 c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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/udgcpc.pre-* and /etc/udgcpc.post-* to be run before and after deconfig|renew|bound dhcp events.