手册:PPC/网络/动态管理
PPC 手册 |
---|
安装 |
关于安装 |
选择安装媒介 |
配置网络 |
准备磁盘 |
安装 Stage3 |
安装基本系统 |
配置内核 |
配置系统 |
安装系统工具 |
配置引导程序 |
安装收尾 |
使用Gentoo |
Portage 介绍 |
USE 标记 |
Portage 功能特性 |
Initscript 系统 |
环境变量 |
使用Portage |
文件和目录 |
变量 |
混合使用不同的软件分支 |
额外的工具 |
自定义软件包仓库 |
高级特性 |
网络配置 |
介绍 |
高级配置 |
模块化网络 |
无线 |
添加功能 |
动态管理 |
网络管理
With laptops, systems can be always on the move. As a result, the system may not always have an Ethernet cable or plugged in or an access point available. Also, the user may want networking to automatically work when an Ethernet cable is plugged in or an access point is found.
在本章中,我们将介绍如何做到这一点。
This document only talks about ifplugd, but there are alternatives such as netplug. netplug is a lightweight alternative to ifplugd, but it relies on the kernel network drivers working correctly, and many drivers do not.
ifplugd
ifplugd is a daemon that starts and stops interfaces when an Ethernet cable is inserted or removed. It can also manage detecting association to Access Points or when new ones come in range.
root #
emerge --ask sys-apps/ifplugd
Configuration for ifplugd is fairly straightforward too. The configuration is held in /etc/conf.d/net. Run man ifplugd for details on the available variables. Also, see /usr/share/doc/netifrc-*/net.example.bz2 for more examples.
/etc/conf.d/net
Sample ifplug configuration# Replace eth0 with the interface to be monitored ifplugd_eth0="..." # To monitor a wireless interface ifplugd_eth0="--api-mode=wlan"
In addition to managing multiple network connections, users may want to add a tool that makes it easy to work with multiple DNS servers and configurations. This is very handy when the system receives its IP address via DHCP.
root #
emerge --ask net-dns/openresolv
参考 man resolvconf 以了解更多关于它的功能。