commit | author | age
|
e08297
|
1 |
# This file describes the network interfaces available on your system |
T |
2 |
# and how to activate them. For more information, see interfaces(5). |
|
3 |
|
|
4 |
# The loopback network interface |
|
5 |
auto lo |
|
6 |
iface lo inet loopback |
|
7 |
|
|
8 |
# The primary network interface |
|
9 |
auto eth0 |
|
10 |
iface eth0 inet static |
|
11 |
address <tmpl_var name="ip_address"> |
|
12 |
netmask <tmpl_var name="netmask"> |
|
13 |
network <tmpl_var name="network"> |
|
14 |
broadcast <tmpl_var name="broadcast"> |
|
15 |
gateway <tmpl_var name="gateway"> |
|
16 |
|
|
17 |
<tmpl_if name="additionl_ip_records"> |
|
18 |
<tmpl_loop name="interfaces"> |
|
19 |
auto eth0:<tmpl_var name="id"> |
|
20 |
iface eth0:<tmpl_var name="id"> inet static |
|
21 |
address <tmpl_var name="ip_address"> |
|
22 |
netmask <tmpl_var name="netmask"> |
|
23 |
network <tmpl_var name="network"> |
|
24 |
broadcast <tmpl_var name="broadcast"> |
|
25 |
gateway <tmpl_var name="gateway"> |
|
26 |
</tmpl_loop> |
|
27 |
</tmpl_if> |