/[gentoo]/xml/htdocs/doc/en/handbook/hb-net-management.xml
Gentoo

Contents of /xml/htdocs/doc/en/handbook/hb-net-management.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (hide annotations) (download) (as text)
Sun Oct 30 11:56:08 2011 UTC (2 years, 8 months ago) by swift
Branch: MAIN
Changes since 1.12: +5 -5 lines
File MIME type: application/xml
Fix bug #388953 - Refer to /usr/share/doc/openrc-*/net.example.bz2 instead of /etc/conf.d/net.example

1 swift 1.1 <?xml version="1.0" encoding="UTF-8"?>
2     <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3    
4     <!-- The content of this document is licensed under the CC-BY-SA license -->
5 swift 1.2 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 swift 1.1
7 swift 1.13 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-management.xml,v 1.12 2008/04/17 21:11:30 nightmorph Exp $ -->
8 neysx 1.4
9 swift 1.1 <sections>
10    
11 neysx 1.8 <abstract>
12     For laptop users or people who move their computer around different networks.
13     </abstract>
14    
15 swift 1.13 <version>10</version>
16     <date>2011-10-30</date>
17 swift 1.1
18     <section>
19     <title>Network Management</title>
20     <body>
21    
22     <p>
23     If you and your computer are always on the move, you may not always have an
24 nightmorph 1.9 ethernet cable or plugged in or an access point available. Also, you may want
25 swift 1.1 networking to automatically work when an ethernet cable is plugged in or an
26 swift 1.2 access point is found.
27     </p>
28 swift 1.1
29     <p>
30 nightmorph 1.9 Here you can find some tools that help you manage this.
31 swift 1.1 </p>
32    
33     <note>
34 nightmorph 1.9 This document only talks about <c>ifplugd</c>, but there are alternatives such
35     as <c>netplug</c>. <c>netplug</c> is a lightweight alternative to
36     <c>ifplugd</c>, but it relies on your kernel network drivers working correctly,
37     and many drivers do not.
38 swift 1.1 </note>
39    
40     </body>
41     </section>
42     <section>
43     <title>ifplugd</title>
44     <body>
45    
46     <p>
47     <uri link="http://0pointer.de/lennart/projects/ifplugd/">ifplugd</uri> is a
48     daemon that starts and stops interfaces when an ethernet cable is inserted or
49     removed. It can also manage detecting association to Access Points or when new
50     ones come in range.
51     </p>
52    
53 swift 1.3 <pre caption="Installing ifplugd">
54 swift 1.1 # <i>emerge sys-apps/ifplugd</i>
55     </pre>
56    
57     <p>
58     Configuration for ifplugd is fairly straightforward too. The configuration file
59 nightmorph 1.9 is held in <path>/etc/conf.d/net</path>. Run <c>man ifplugd</c> for details on
60 swift 1.13 the available variables. Also, see
61     <path>/usr/share/doc/openrc-*/net.example.bz2</path> for more examples.
62 swift 1.1 </p>
63    
64 nightmorph 1.9 <pre caption="Sample ifplug configuration">
65     <comment>(Replace eth0 with the interface to be monitored)</comment>
66     ifplugd_eth0="..."
67    
68     <comment>(To monitor a wireless interface)</comment>
69     ifplugd_eth0="--api-mode=wlan"
70 swift 1.1 </pre>
71    
72 nightmorph 1.9 <p>
73     In addition to managing multiple network connections, you may want to add a tool
74     that makes it easy to work with multiple DNS servers and configurations. This is
75     very handy when you receive your IP address via DHCP. Simply emerge
76 nightmorph 1.12 <c>openresolv</c>.
77 nightmorph 1.9 </p>
78    
79 nightmorph 1.12 <pre caption="Installing openresolv">
80     # <i>emerge openresolv</i>
81 nightmorph 1.9 </pre>
82    
83     <p>
84 rane 1.10 See <c>man resolvconf</c> to learn more about its features.
85 nightmorph 1.9 </p>
86    
87 swift 1.1 </body>
88     </section>
89    
90     </sections>

  ViewVC Help
Powered by ViewVC 1.1.20