| … | |
… | |
| 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.17 2011/08/17 08:05:11 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-advanced.xml,v 1.18 2011/08/19 16:07:30 swift Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <abstract> |
11 | <abstract> |
| 12 | Here we learn about how the configuration works - you need to know this |
12 | Here we learn about how the configuration works - you need to know this |
| 13 | before we learn about modular networking. |
13 | before we learn about modular networking. |
| 14 | </abstract> |
14 | </abstract> |
| 15 | |
15 | |
| 16 | <version>10</version> |
16 | <version>11</version> |
| 17 | <date>2011-08-17</date> |
17 | <date>2011-08-19</date> |
| 18 | |
18 | |
| 19 | <section> |
19 | <section> |
| 20 | <title>Advanced Configuration</title> |
20 | <title>Advanced Configuration</title> |
| 21 | <body> |
21 | <body> |
| 22 | |
22 | |
| … | |
… | |
| 81 | |
81 | |
| 82 | <comment># Adding an IPv4 address and two IPv6 addresses</comment> |
82 | <comment># Adding an IPv4 address and two IPv6 addresses</comment> |
| 83 | config_eth0="192.168.0.2/24 |
83 | config_eth0="192.168.0.2/24 |
| 84 | 4321:0:1:2:3:4:567:89ab |
84 | 4321:0:1:2:3:4:567:89ab |
| 85 | 4321:0:1:2:3:4:567:89ac" |
85 | 4321:0:1:2:3:4:567:89ac" |
| 86 | ) |
|
|
| 87 | |
86 | |
| 88 | <comment># Keep our kernel assigned address, unless the interface goes |
87 | <comment># Keep our kernel assigned address, unless the interface goes |
| 89 | # down so assign another via DHCP. If DHCP fails then add a |
88 | # down so assign another via DHCP. If DHCP fails then add a |
| 90 | # static address determined by APIPA</comment> |
89 | # static address determined by APIPA</comment> |
| 91 | config_eth0="noop |
90 | config_eth0="noop |
| 92 | dhcp" |
91 | dhcp" |
| 93 | fallback_eth0="null |
92 | fallback_eth0="null |
| 94 | apipa" |
93 | apipa" |
| 95 | ) |
|
|
| 96 | </pre> |
94 | </pre> |
| 97 | |
95 | |
| 98 | <note> |
96 | <note> |
| 99 | When using the <c>ifconfig</c> module and adding more than one address, |
97 | When using the <c>ifconfig</c> module and adding more than one address, |
| 100 | interface aliases are created for each extra address. So with the above two |
98 | interface aliases are created for each extra address. So with the above two |