1
|
# version du 24/03/11
|
2
|
# Cellule réseau des établissements - reseauetab@ac-amiens.fr
|
3
|
# Rectorat de l'académie d'Amiens
|
4
|
|
5
|
%if %%nombre_interfaces >= "2" and %%activation_dhcp_eth1 == "oui"
|
6
|
# Nombre Interfaces >= 2 et activation dhcp eth1 est "oui"
|
7
|
subnet %%adresse_network_eth1 netmask %%adresse_netmask_eth1 {
|
8
|
# Passerelle par défaut
|
9
|
option routers %%adresse_ip_eth1;
|
10
|
option subnet-mask %%adresse_netmask_eth1;
|
11
|
|
12
|
option domain-name "%%nom_domaine_local";
|
13
|
option domain-name-servers %%adresse_ip_eth1;
|
14
|
|
15
|
%if %%netbios_name_servers_eth1 != ""
|
16
|
option netbios-name-servers %%netbios_name_servers_eth1;
|
17
|
%end if
|
18
|
|
19
|
range %%adresse_ip_range_deb_adm %%adresse_ip_range_fin_adm;
|
20
|
default-lease-time 86400;
|
21
|
max-lease-time 604800;
|
22
|
|
23
|
|
24
|
%if %%hotes_fixes_eth1 != ""
|
25
|
# Adresse(s) IP fixe(s)
|
26
|
%for %%nom_hote_ip_fixe_eth1 in %%hotes_fixes_eth1
|
27
|
host %%nom_hote_ip_fixe_eth1 {
|
28
|
hardware ethernet %%nom_hote_ip_fixe_eth1.adresse_mac_ip_fixe_eth1;
|
29
|
fixed-address %%nom_hote_ip_fixe_eth1.adresse_ip_fixe_eth1;
|
30
|
}
|
31
|
%end for
|
32
|
%else
|
33
|
# Aucune adresse IP fixe défini côté eth1
|
34
|
%end if
|
35
|
}
|
36
|
%end if
|
37
|
|
38
|
%if %%nombre_interfaces >= "3" and %%activation_dhcp_eth2 == "oui"
|
39
|
# Nombre Interfaces >= 3 et activation dhcp eth2 est "oui"
|
40
|
subnet %%adresse_network_eth2 netmask %%adresse_netmask_eth2 {
|
41
|
# Passerelle par défaut
|
42
|
option routers %%adresse_ip_eth2;
|
43
|
option subnet-mask %%adresse_netmask_eth2;
|
44
|
|
45
|
option domain-name "%%nom_domaine_local";
|
46
|
option domain-name-servers %%adresse_ip_eth2;
|
47
|
|
48
|
%if %%netbios_name_servers_eth2 != ""
|
49
|
option netbios-name-servers %%netbios_name_servers_eth2;
|
50
|
%end if
|
51
|
|
52
|
range %%adresse_ip_range_deb_pedago %%adresse_ip_range_fin_pedago;
|
53
|
default-lease-time 86400;
|
54
|
max-lease-time 604800;
|
55
|
|
56
|
%if %%hotes_fixes_eth2 != ""
|
57
|
# Adresse(s) IP fixe(s)
|
58
|
%for %%nom_hote_ip_fixe_eth2 in %%hotes_fixes_eth2
|
59
|
host %%nom_hote_ip_fixe_eth2 {
|
60
|
hardware ethernet %%nom_hote_ip_fixe_eth2.adresse_mac_ip_fixe_eth2;
|
61
|
fixed-address %%nom_hote_ip_fixe_eth2.adresse_ip_fixe_eth2;
|
62
|
}
|
63
|
%end for
|
64
|
%else
|
65
|
# Aucune adresse IP fixe défini côté eth2
|
66
|
%end if
|
67
|
}
|
68
|
%end if
|
69
|
|
70
|
%if %%nombre_interfaces >= "4" and %%activation_dhcp_eth3 == "oui"
|
71
|
# Nombre Interfaces >= 4 et activation dhcp eth3 est "oui"
|
72
|
subnet %%adresse_network_eth3 netmask %%adresse_netmask_eth3 {
|
73
|
# Passerelle par défaut
|
74
|
option routers %%adresse_ip_eth3;
|
75
|
option subnet-mask %%adresse_netmask_eth3;
|
76
|
|
77
|
option domain-name "%%nom_domaine_local";
|
78
|
option domain-name-servers %%adresse_ip_eth3;
|
79
|
|
80
|
%if %%netbios_name_servers_eth3 != ""
|
81
|
option netbios-name-servers %%netbios_name_servers_eth3;
|
82
|
%end if
|
83
|
|
84
|
range %%adresse_ip_range_deb_DMZ %%adresse_ip_range_fin_DMZ;
|
85
|
default-lease-time 86400;
|
86
|
max-lease-time 604800;
|
87
|
|
88
|
%if %%hotes_fixes_eth3 != ""
|
89
|
# Adresse(s) IP fixe(s)
|
90
|
%for %%nom_hote_ip_fixe_eth3 in %%hotes_fixes_eth3
|
91
|
host %%nom_hote_ip_fixe_eth3 {
|
92
|
hardware ethernet %%nom_hote_ip_fixe_eth3.adresse_mac_ip_fixe_eth3;
|
93
|
fixed-address %%nom_hote_ip_fixe_eth3.adresse_ip_fixe_eth3;
|
94
|
}
|
95
|
%end for
|
96
|
%else
|
97
|
# Aucune adresse IP fixe défini côté eth3
|
98
|
%end if
|
99
|
}
|
100
|
%end if
|
101
|
|