Network management using DHCPCD

Abstract
Gentoo is about choice and also OpenRC can be used with one of several network managers or even with none. This is about using OpenRC with DHCPCD as network manager. It is based on a posting in Gentoo Forums.

Installation
Install dhcpcd, add it to the default runlevel and start it:

All its configuration goes into but for most installations nothing needs to be done there. Though will be helpful in case of advanced configuration demand.

Wireless
Dhcpcd comes with a built-in hook for wpa_supplicant, so it's best choice to install this for wireless. The necessary wireless device drivers in your kernel need to be installed. Also note that the older versions (≤2.0-r2) of wpa_supplicant need "env wpa_supplicant_driver=nl80211" in.

Create the configuration file, put the content shown below, install wpa_supplicant and restart dhcpcd:

For any questions or problems with wpa_supplicant see the references.

Static IP address
In case the network interface card should be configured with a static IP address, add their data to the configuration file as shown for the following example.

Migration from Gentoo net.* scripts
Once the network setup works well you might want to completely remove the old Gentoo net.* scripts setup. So disable the netifrc useflag, re-emerge OpenRC without and unmerge netifrc:

Also the old config files and symlinks can be removed