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

Diff of /xml/htdocs/doc/en/handbook/hb-net-advanced.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 Revision 1.7
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-advanced.xml,v 1.6 2005/06/14 09:52:01 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-advanced.xml,v 1.7 2005/06/14 10:16:47 swift Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>1.2</version> 11<version>1.2</version>
12<date>2005-06-14</date> 12<date>2005-06-14</date>
68</p> 68</p>
69 69
70<pre caption="Configuration examples"> 70<pre caption="Configuration examples">
71<comment># Adding three IPv4 addresses</comment> 71<comment># Adding three IPv4 addresses</comment>
72config_eth0=( 72config_eth0=(
73 "192.168.0.2/24" 73 "192.168.0.2/24"
74 "192.168.0.3/24" 74 "192.168.0.3/24"
75 "192.168.0.4/24" 75 "192.168.0.4/24"
76) 76)
77 77
78<comment># Adding an IPv4 address and two IPv6 addresses</comment> 78<comment># Adding an IPv4 address and two IPv6 addresses</comment>
79config_eth0=( 79config_eth0=(
80 "192.168.0.2/24" 80 "192.168.0.2/24"
81 "4321:0:1:2:3:4:567:89ab" 81 "4321:0:1:2:3:4:567:89ab"
82 "4321:0:1:2:3:4:567:89ac" 82 "4321:0:1:2:3:4:567:89ac"
83) 83)
84 84
85<comment># Keep our kernel assigned address, unless the interface goes 85<comment># Keep our kernel assigned address, unless the interface goes
86# down so assign another via DHCP. If DHCP fails then add a 86# down so assign another via DHCP. If DHCP fails then add a
87# static address determined by APIPA</comment> 87# static address determined by APIPA</comment>
88config_eth0=( 88config_eth0=(
89 "noop" 89 "noop"
90 "dhcp" 90 "dhcp"
91) 91)
92fallback_eth0=( 92fallback_eth0=(
93 "null" 93 "null"
94 "apipa" 94 "apipa"
95) 95)
96</pre> 96</pre>
97 97
98<note> 98<note>
99When using the ifconfig module and adding more than one address, interface 99When using the ifconfig module and adding more than one address, interface
173</p> 173</p>
174 174
175<pre caption="net.br0 dependency in /etc/conf.d/net"> 175<pre caption="net.br0 dependency in /etc/conf.d/net">
176<comment># You can use any dependency (use, after, before) as found in current scripts</comment> 176<comment># You can use any dependency (use, after, before) as found in current scripts</comment>
177depend_br0() { 177depend_br0() {
178 need net.eth0 net.eth1 178 need net.eth0 net.eth1
179} 179}
180</pre> 180</pre>
181 181
182<p> 182<p>
183For a more detailed discussion about dependency, consult the section 183For a more detailed discussion about dependency, consult the section

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20