dhcpcd is the DHCP client daemon used by IPFire to manage network configuration, particularly for obtaining an IP address from the DHCP server or the provider.

Configuration File

The main configuration file for dhcpcd in IPFire is /var/ipfire/dhcpc/dhcpcd.conf.

The settings in the configuration file are either default ones from the dhcpcd developer or ones modified by the IPFire developers to meet its requirements. These should work for the vast majority of users and their providers.

Main Variables in dhcpcd.conf

  • ipv4only: Only obtain an IPv4 address.
  • hostname: Inform the DHCP server of the hostname for Dynamic DNS.
  • duid: Use the DHCP Unique Identifier for client identification.
  • persistent: Keep the interface configuration when dhcpcd exits.
  • vendorclassid: Vendor class identifier left blank for privacy purposes.
  • option <various>: Specifies DHCP options like DNS servers, MTU, NTP servers, etc.
  • require dhcp_server_identifier: Require DHCP Server Identifier as per RFC2131.
  • slaac hwaddr: Generate IPv6 address using hardware address of the interface.
  • timeout 60: Set timeout to 60 seconds.

Logging and Troubleshooting

Logs and lease information can be found in /var/ipfire/dhcpc/dhcpcd-red0.info.

Rapid_Commit Issues

If you experience connectivity issues related to the rapid_commit option, you may need to disable it by commenting out the option rapid_commit line in the dhcpcd.conf file.