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 can disable it in the setup
program. This procedure will briefly interrupt your internet connection.
- Open a secure shell to your IPFire system
- Run
setup
- In the Menu, press the down arrow to choose "Networking"
- Use the right arrow (or tab) to select "OK" and press enter
- Choose "Address settings" then tab to OK and enter
- Choose "RED" and then tab to OK and press enter
- In the DHCP configuration, de-select Rapid Commit and then press tab and OK
- Select "Done" and press enter
- Select "Done" and press enter
- Select "Done" again and press enter. This will trigger a restart of the RED network
- When the restart has completed, select "Quit" and press enter