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 man 5 dhcpcd.conf will be helpful in case of advanced configuration demand.

Wireless
When you need wireless support also install wpa_supplicant,

Note that for wireless the older versions (≤6.4.3) of dhcpcd and (≤2.0-r2) of wpa_supplicant need wireless extensions compatibility in the kernel.

For its detailed configuration and usage refer to wpa_supplicant.

Don't forget to set up and test the necessary wireless device drivers in your kernel.

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