Dhcpcd/zh-cn

Dynamic Host Configuration Protocol Client Daemon 是一个受欢迎的DHCP客户端. 它能够处理IPv4和IPv6配置.

Emerge
使用以下命令安装dhcpcd：

文件
All configuration can be set in the  file, but for most installations  will work out of the box presuming most computers nowadays are behind a router or access point running a DHCP server. Though will be helpful in case advanced configuration is required.

静态IP地址
In case the network interface card should be configured with a static IP address, add their data to. The following is an example of manually adding a static address, routes, and DNS by editing DHCPCD's configuration file using a text editor of choice:

作为一个服务运行
参考 Network management using DHCPCD.

One-time DHCP
To configure a network interface for one-time DHCP use issue the following command:

Be sure to replace  in the command above with the appropriate network interface name.

Troubleshooting

 * dhcpcd not working for IPv6 (#CONFIG_PACKET is not set)

参考

 * Gentoo Handbook - Network configuration - The Handbook's recommendations on handling network interfaces.
 * Netifrc - Gentoo's own network configuration scripts, split from OpenRC
 * Complete Handbook/Configuring the system
 * Complete Handbook/Configuring the system

外部资源

 * Dhcpcd on the Arch Wiki
 * Forums post: No Internet access when update to dhcpcd 6.10.0
 * DHCP on Wikipedia
 * RFC 2131