Network management using DHCPCD/ru

Эта статья основана на теме из Gentoo Forums и повествует о том, как использовать dhcpcd в качестве менеджера сети.

Настройка
Убедитесь, что dhcpcd установлен. Затем добавьте его на уровень запуска default и запустите сервис:

Эта инструкция по настройке сети отличается от инструкций в Gentoo Handbook. Достоинство этого метода состоит в том, что он автоматически переключается между проводным и беспроводным сетевым интерфейсом.

Беспроводная сеть
For wireless use. Either
 * copy the 10-wpa_supplicant hook into the directory and restart dhcpcd, or
 * have wpa_supplicant configured with the CONFIG_MATCH_IFACE option and run it as a service

To install the hook:

To use the approach, see the wpa_supplicant's Gentoo wiki page.

Тестирование
Stop and, then start  with debugging enabled and in the foreground to see  starting the connection.

Статический IP-адрес
In case the network interface card should be configured with a static IP address, type it into the graphical user interface. Without the graphical user interface, entries can also be manually added to as described in Dhcpcd.

Migration from Gentoo net.* scripts
When migrating from Gentoo's net.* scripts it is essential to remove the scripts from the runlevels.

Any match starting with  must not have a runlevel assigned. In the above example, needs to be removed.

Once the network setup works well, it is possible to completely remove the old Gentoo scripts. To do so, disable the  useflag, re-emerge OpenRC and finally unmerge :

Also the old configuration files and symlinks can be removed:

Network dependent services
Manipulating network dependent services by is no longer supported since openrc-0.16.4.

Graphical User interface
A dhcpcd graphical user interface is provided by.

Смотрите также

 * Dhcpcd
 * dhcpcd-ui

Внешние ресурсы

 * Post 93 of Gentoo Forums :: View topic - TIP: Complete network stack without net.* scripts