Disclaimer :
This handbook has been replaced by a newer version and is not maintained anymore.
|
[ << ]
[ < ]
[ Home ]
[ > ]
[ >> ]
6. Network Management
Content:
6.a. Network Management
If you and your computer are always on the move, you may not always have an
ethernet cable or plugged in or an access point available. Also, you may want
networking to automatically work when an ethernet cable is plugged in or an
access point is found.
Here you can find some tools that help you manage this.
Note:
This document only talks about ifplugd, but there are alternatives such
as netplug. netplug is a lightweight alternative to
ifplugd, but it relies on your kernel network drivers working correctly,
and many drivers do not.
|
6.b. 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.
Code ListingĀ 2.1: Installing ifplugd |
# emerge sys-apps/ifplugd
|
Configuration for ifplugd is fairly straightforward too. The configuration file
is held in /etc/conf.d/net. Run man ifplugd for details on
the available variables. Also, see
/usr/share/doc/openrc-*/net.example.bz2 for more examples.
Code ListingĀ 2.2: Sample ifplug configuration |
ifplugd_eth0="..."
ifplugd_eth0="--api-mode=wlan"
|
In addition to managing multiple network connections, you may want to add a tool
that makes it easy to work with multiple DNS servers and configurations. This is
very handy when you receive your IP address via DHCP. Simply emerge
openresolv.
Code ListingĀ 2.3: Installing openresolv |
# emerge openresolv
|
See man resolvconf to learn more about its features.
[ << ]
[ < ]
[ Home ]
[ > ]
[ >> ]
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-2.5 license. The Gentoo Name and Logo Usage Guidelines apply.
|