Difference between revisions of "Dhcpcd"

From ArchWiki
Jump to: navigation, search
m (categorize, add related articles)
(Configuration: merged from Network configuration#Dynamic IP address)
Line 12: Line 12:
  
 
You might be interested in {{AUR|dhcpcd-ui}}, which is a GTK+ frontend for the ''dhcpcd'' daemon (and optionally [[wpa_supplicant]]). It features a configuration dialogue and the ability to enter a pass phrase for wireless networks.
 
You might be interested in {{AUR|dhcpcd-ui}}, which is a GTK+ frontend for the ''dhcpcd'' daemon (and optionally [[wpa_supplicant]]). It features a configuration dialogue and the ability to enter a pass phrase for wireless networks.
 +
 +
== Running ==
 +
 +
''dhcpcd'' is usually controlled via the provided service file {{ic|dhcpcd@.service}}, which takes the interface name as an argument (see [[systemd#Using units]] for details):
 +
 +
# systemctl start dhcpcd@''interface''.service
 +
# systemctl enable dhcpcd@''interface''.service
 +
 +
To start ''dhcpcd'' manually, simply run the following command:
 +
 +
{{hc|# dhcpcd eth0|
 +
dhcpcd: version 5.1.1 starting
 +
dhcpcd: eth0: broadcasting for a lease
 +
...
 +
dhcpcd: eth0: leased 192.168.1.70 for 86400 seconds
 +
}}
  
 
== Configuration ==
 
== Configuration ==
 +
 +
The main configuration is done in {{ic|/etc/dhcpcd.conf}}, see {{ic|dhcpcd.conf(5)}} for details. Some of the frequently used options are highlighted below.
  
 
{{Expansion}}
 
{{Expansion}}

Revision as of 20:27, 17 February 2014

dhcpcd is a DHCP and DHCPv6 client. It is currently the most feature-rich open source DHCP client, see the home page for the full list of features.

Installation

The dhcpcd package is available in the official repositories. It is part of the base group, so it is likely already installed on your system.

You might be interested in dhcpcd-uiAUR, which is a GTK+ frontend for the dhcpcd daemon (and optionally wpa_supplicant). It features a configuration dialogue and the ability to enter a pass phrase for wireless networks.

Running

dhcpcd is usually controlled via the provided service file dhcpcd@.service, which takes the interface name as an argument (see systemd#Using units for details):

# systemctl start dhcpcd@interface.service
# systemctl enable dhcpcd@interface.service

To start dhcpcd manually, simply run the following command:

# dhcpcd eth0
dhcpcd: version 5.1.1 starting
dhcpcd: eth0: broadcasting for a lease
...
dhcpcd: eth0: leased 192.168.1.70 for 86400 seconds

Configuration

The main configuration is done in /etc/dhcpcd.conf, see dhcpcd.conf(5) for details. Some of the frequently used options are highlighted below.

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Dhcpcd#)