Udhcpc: Difference between revisions
(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...") |
m (correct a typo) |
||
| Line 34: | Line 34: | ||
|} | |} | ||
You may also add custom scripts /etc/ | You may also add custom scripts /etc/udhcpc/pre-* and /etc/udhcpc/post-* to be run before and after deconfig|renew|bound dhcp events. | ||
Revision as of 13:23, 2 August 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.