interfaces-dhcp(5)

πŸ“¦ version 0.13.0, in alpine 3.24

🌸 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:

  1. dhcpcd
  2. dhclient
  3. udhcpc

No explicit module configuration is required, but several options are available: 🫢

  • dhcp-hostname name β€” sets a hostname to be sent as part of DHCP queries. If you don't provide it, ifupdown guesses the value. This option is not supported for dhclient.
  • dhcp-vendor vendor_class β€” sets a vendor class to be sent as part of DHCP queries. This option is not supported for dhclient.
  • dhcp-client_id client_id β€” sets a client ID to be sent as part of DHCP queries. This option is not supported for dhclient.
  • dhcp-leasetime seconds β€” requests a specific lease interval from the DHCP server. This option is not supported for dhclient.
  • 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 for udhcpc.
  • 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, udhcpc also accepts this option when named udhcpc-opts.
  • dhcp-program str β€” the name of the DHCP client program to be used, which can be dhcpcd, dhclient, or udhcpc. πŸ‘‘

πŸŽ€ 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