interfaces-dhcp(5)
πΈ NAME πΈ
interfaces-dhcp β the DHCP extensions for the interfaces(5) file format. Bestie, this is where your interfaces file gets its DHCP glow-up. π
β¨ DESCRIPTION β¨
DHCP config is handled by one of these clients, in this order of preference:
dhcpcddhclientudhcpc
No explicit module configuration is required, but several options are available: π«Ά
π DHCP-RELATED OPTIONS π
dhcp-hostname nameβ sets a hostname to be sent as part of DHCP queries. If you don't provide it,ifupdownguesses the value. This option is not supported fordhclient.dhcp-vendor vendor_classβ sets a vendor class to be sent as part of DHCP queries. This option is not supported fordhclient.dhcp-client_id client_idβ sets a client ID to be sent as part of DHCP queries. This option is not supported fordhclient.dhcp-leasetime secondsβ requests a specific lease interval from the DHCP server. This option is not supported fordhclient.dhcp-config pathβ provides the specified config file to the DHCP client. You can use this to provide additional client configuration that isn't available via these parameters. This option is not supported forudhcpc.dhcp-script pathβ specifies the script file called after DHCP events. πdhcp-opts strβ extra arguments passed unmodified to the DHCP client. Use this to pass additional options otherwise not supported by this executor. For compatibility,udhcpcalso accepts this option when namedudhcpc-opts.dhcp-program strβ the name of the DHCP client program to be used, which can bedhcpcd,dhclient, orudhcpc. π
π EXAMPLES π
π± Typical (minimal) configuration
auto foo
iface foo
use dhcp
π All available options for a host using dhcpcd
auto foo
iface foo
use dhcp
dhcp-program dhcpcd
dhcp-hostname bar
dhcp-vendor MyVendor
dhcp-client_id 0100BEEFC0FFEE
dhcp-leasetime 86400
dhcp-script /usr/lib/dhcpcd/dhcpcd-run-hooks
dhcp-config /etc/dhcpcd-$IFACE.conf
dhcp-opts --nogateway
That's the whole page, bestie! π This cutie is the interfaces-dhcp(5) page from the File Formats Manual, dated 2026-05-10. slay, configure responsibly β¨
π¦ where this page comes from
- alpine 3.24: ifupdown-ng-doc 0.13.0-r0 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms