interfaces.patch
modif/interfaces 2009-02-13 17:20:05.000000000 +0100 | ||
---|---|---|
6 | 6 |
iface lo inet loopback |
7 | 7 | |
8 | 8 |
# The primary network interface |
9 |
%if %%eth0_method == 'dhcp' |
|
9 |
%if %%orl_bonding_actif == 'non' |
|
10 |
%if %%eth0_method == 'dhcp' |
|
10 | 11 |
auto eth0 |
11 | 12 |
iface eth0 inet dhcp |
12 |
%else |
|
13 |
%else
|
|
13 | 14 |
auto eth0 |
14 | 15 |
iface eth0 inet static |
15 | 16 |
address %%adresse_ip_eth0 |
16 | 17 |
netmask %%adresse_netmask_eth0 |
17 | 18 |
gateway %%adresse_ip_gw |
19 |
%end if |
|
20 |
%else |
|
21 |
%if %%eth0_method == 'dhcp' |
|
22 |
auto bond0 |
|
23 |
iface bond0 inet dhcp |
|
24 |
%else |
|
25 |
auto bond0 |
|
26 |
iface bond0 inet static |
|
27 |
address %%adresse_ip_eth0 |
|
28 |
netmask %%adresse_netmask_eth0 |
|
29 |
gateway %%adresse_ip_gw |
|
30 |
up /sbin/ifenslave bond0 eth0 eth1 |
|
31 |
down /sbin/ifenslave -d bond0 eth0 eth1 |
|
32 |
%end if |
|
18 | 33 |
%end if |