Mercurial > hg > dhcpcd
changeset 5274:f0c6e0c1d52a draft
dhcpcd.conf: harden default options
Don't send the current hostname.
Don't send the default vendorclassid.
Slight re-org while here.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 27 May 2020 23:34:16 +0100 |
| parents | 3a33b39120eb |
| children | b7d18124ad21 |
| files | src/dhcpcd.conf |
| diffstat | 1 files changed, 17 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcpcd.conf Wed May 27 21:49:05 2020 +0100 +++ b/src/dhcpcd.conf Wed May 27 23:34:16 2020 +0100 @@ -5,7 +5,7 @@ #controlgroup wheel # Inform the DHCP server of our hostname for DDNS. -hostname +#hostname # Use the hardware address of the interface for the Client ID. #clientid @@ -18,20 +18,27 @@ # Persist interface configuration when dhcpcd exits. persistent +# vendorclassid is set to blank to avoid sending the default of +# dhcpcd-<version>:<os>:<machine>:<platform> +vendorclassid + +# A list of options to request from the DHCP server. +option domain_name_servers, domain_name, domain_search +option classless_static_routes +# Respect the network MTU. This is applied to DHCP routes. +option interface_mtu + +# Request a hostname from the network +option host_name + +# Most distributions have NTP support. +#option ntp_servers + # Rapid commit support. # Safe to enable by default because it requires the equivalent option set # on the server to actually work. option rapid_commit -# A list of options to request from the DHCP server. -option domain_name_servers, domain_name, domain_search, host_name -option classless_static_routes -# Respect the network MTU. This is applied to DHCP routes. -option interface_mtu - -# Most distributions have NTP support. -#option ntp_servers - # A ServerID is required by RFC2131. require dhcp_server_identifier
