/[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.5 Revision 1.6
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.5 2005/06/14 09:47:20 swift Exp $ --> 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 $ -->
8 8
9<sections> 9<sections>
10 10
11<version>1.1</version> 11<version>1.2</version>
12<date>2005-06-09</date> 12<date>2005-06-14</date>
13 13
14<section> 14<section>
15<title>Advanced Configuration</title> 15<title>Advanced Configuration</title>
16<body> 16<body>
17 17
65 65
66<p> 66<p>
67You can chain these commands together. Here are some real world examples. 67You can chain these commands together. Here are some real world examples.
68</p> 68</p>
69 69
70<pre caption="config 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"
113<uri link="?part=4&amp;chap=3#dhcp">DHCP</uri> are discussed later. 113<uri link="?part=4&amp;chap=3#dhcp">DHCP</uri> are discussed later.
114</note> 114</note>
115 115
116</body> 116</body>
117</section> 117</section>
118
119<section> 118<section>
120<title>Network Dependencies</title> 119<title>Network Dependencies</title>
121<body> 120<body>
122 121
123<p> 122<p>
180} 179}
181</pre> 180</pre>
182 181
183<p> 182<p>
184For a more detailed discussion about dependency, consult the section 183For a more detailed discussion about dependency, consult the section
185<uri link="/doc/en/handbook/handbook-x86.xml?part=2&amp;chap=4#doc_chap4"> 184<uri link="/doc/en/handbook/handbook-x86.xml?part=2&amp;chap=4#doc_chap4">Writing
186 "Writing Init Scripts"</uri> in the Gentoo Handbook. 185Init Scripts</uri> in the Gentoo Handbook.
187</p> 186</p>
188 187
189</body> 188</body>
190</section> 189</section>
191 190
218</p> 217</p>
219 218
220<p> 219<p>
221Another downside of bash is the content of variables - some characters need to 220Another downside of bash is the content of variables - some characters need to
222be escaped. This can be achived by placing the \ character in front of the 221be escaped. This can be achived by placing the \ character in front of the
223character that needs to be escaped. Below is a list of characters that need 222character that needs to be escaped. The following list of characters needs
224to be escaped in this way. 223to be escaped in this way: <c>"</c>, <c>'</c> and <c>\</c>.
225</p>
226
227<p>
228<c>" ' \</c>
229</p> 224</p>
230 225
231<p> 226<p>
232In this example we use wireless ESSID as they can contain the widest scope 227In this example we use wireless ESSID as they can contain the widest scope
233of characters. We shall use the ESSID as it appears below. 228of characters. We shall use the ESSID <c>My "\ NET</c>:
234</p>
235
236<p>
237<c>My "\ NET</c>
238</p> 229</p>
239 230
240<pre caption="variable name example"> 231<pre caption="variable name example">
241<comment># This does work, but the domain is invalid</comment> 232<comment># This does work, but the domain is invalid</comment>
242dns_domain_My____NET="My \"\\ NET" 233dns_domain_My____NET="My \"\\ NET"
245# connects to an AP whose ESSID is My "\ NET</comment> 236# connects to an AP whose ESSID is My "\ NET</comment>
246</pre> 237</pre>
247 238
248</body> 239</body>
249</section> 240</section>
250
251</sections> 241</sections>

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

  ViewVC Help
Powered by ViewVC 1.1.20