Gentoo Archives: gentoo-doc-cvs

From: "Sven Vermeulen (swift)" <swift@g.o>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-net-advanced.xml
Date: Wed, 17 Aug 2011 08:05:23
Message-Id: 20110817080511.DE6E72004C@flycatcher.gentoo.org
1 swift 11/08/17 08:05:11
2
3 Modified: hb-net-advanced.xml
4 Log:
5 Part of bug #337140 - Tell users that "provide net" needs to be influenced when you are dealing with stuff like bridges. Also fixes another OpenRC issue
6
7 Revision Changes Path
8 1.17 xml/htdocs/doc/en/handbook/hb-net-advanced.xml
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-net-advanced.xml?rev=1.17&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-net-advanced.xml?rev=1.17&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-net-advanced.xml?r1=1.16&r2=1.17
13
14 Index: hb-net-advanced.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-advanced.xml,v
17 retrieving revision 1.16
18 retrieving revision 1.17
19 diff -u -r1.16 -r1.17
20 --- hb-net-advanced.xml 14 Aug 2011 16:12:13 -0000 1.16
21 +++ hb-net-advanced.xml 17 Aug 2011 08:05:11 -0000 1.17
22 @@ -4,7 +4,7 @@
23 <!-- The content of this document is licensed under the CC-BY-SA license -->
24 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
25
26 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-advanced.xml,v 1.16 2011/08/14 16:12:13 swift Exp $ -->
27 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-advanced.xml,v 1.17 2011/08/17 08:05:11 swift Exp $ -->
28
29 <sections>
30
31 @@ -13,8 +13,8 @@
32 before we learn about modular networking.
33 </abstract>
34
35 -<version>9</version>
36 -<date>2011-08-13</date>
37 +<version>10</version>
38 +<date>2011-08-17</date>
39
40 <section>
41 <title>Advanced Configuration</title>
42 @@ -75,29 +75,23 @@
43
44 <pre caption="Configuration examples">
45 <comment># Adding three IPv4 addresses</comment>
46 -config_eth0=(
47 - "192.168.0.2/24"
48 - "192.168.0.3/24"
49 - "192.168.0.4/24"
50 -)
51 +config_eth0="192.168.0.2/24
52 +192.168.0.3/24
53 +192.168.0.4/24"
54
55 <comment># Adding an IPv4 address and two IPv6 addresses</comment>
56 -config_eth0=(
57 - "192.168.0.2/24"
58 - "4321:0:1:2:3:4:567:89ab"
59 - "4321:0:1:2:3:4:567:89ac"
60 +config_eth0="192.168.0.2/24
61 +4321:0:1:2:3:4:567:89ab
62 +4321:0:1:2:3:4:567:89ac"
63 )
64
65 <comment># Keep our kernel assigned address, unless the interface goes
66 # down so assign another via DHCP. If DHCP fails then add a
67 # static address determined by APIPA</comment>
68 -config_eth0=(
69 - "noop"
70 - "dhcp"
71 -)
72 -fallback_eth0=(
73 - "null"
74 - "apipa"
75 +config_eth0="noop
76 +dhcp"
77 +fallback_eth0="null
78 +apipa"
79 )
80 </pre>
81
82 @@ -164,6 +158,20 @@
83 </pre>
84
85 <p>
86 +That alone, however, is not sufficient. Gentoo's networking init scripts use a
87 +virtual dependency called <e>net</e> to inform the system when networking is
88 +available. Clearly, in the above case, networking should only be marked as
89 +available when <path>net.br0</path> is up, not when the others are. So we need
90 +to tell that in <path>/etc/conf.d/net</path> as well:
91 +</p>
92 +
93 +<pre caption="Updating virtual dependencies and provisions for networking">
94 +rc_net_lo_provide="!net"
95 +rc_net_eth0_provide="!net"
96 +rc_net_eth1_provide="!net"
97 +</pre>
98 +
99 +<p>
100 For a more detailed discussion about dependency, consult the section <uri
101 link="?part=2&amp;chap=4#doc_chap4">Writing Init Scripts</uri> in the Gentoo
102 Handbook. More information about <path>/etc/rc.conf</path> is available as