Gentoo网络管理方法总结
文章目录
OpenRC/netifrc
Netifrc is a collection of modules created to configure and manage network interfaces via individual, per-interface scripts located in the /etc/init.d/ directory. Enable Gentoo’s network stack (net.* scripts).
检测网卡名字
|
|
添加网卡
通过net.lo
链接
|
|
配置网络IP
编辑/etc/conf.d/net
文件
|
|
添加DNS
编辑`/etc/resolv.conf文件
|
|
Newnet
enable the new network stack (experimental)
DHCPCD
Dynamic Host Configuration Protocol Client Daemon (DHCPCD) is a popular DHCP client for Gentoo Linux users.
使用dhcpcd自动获取IP,需要将net.*scripts标本停用,并设置/etc/conf.d/net
中config_ifname="dhcp"
或留空。
dhcpcd-ui
https://wiki.gentoo.org/wiki/Dhcpcd-ui#Usage
- dhcpcd-gtk
NetworkManager
NetworkManager is a network management software for Ethernet, Wifi, DSL, dialup, VPN, WiMAX and mobile broadband network connections. It’s a good idea to use dhclient from net-misc/dhcp instead of net-misc/dhcpcd.
NetworkManager GUI
- GTK: gnome-extra/nm-applet
- KDE Frontend: kde-misc/plasma-nm kde-misc/networkmanagement
参考: Network management Network_management_using_DHCPCD/OpenRC_message Netifrc Network management using DHCPCD NetworkManager
文章作者 孤逐王
上次更新 2015-06-15