# version du 24/03/11 # Cellule réseau des établissements - reseauetab@ac-amiens.fr # Rectorat de l'académie d'Amiens %if %%nombre_interfaces >= "2" and %%activation_dhcp_eth1 == "oui" # Nombre Interfaces >= 2 et activation dhcp eth1 est "oui" subnet %%adresse_network_eth1 netmask %%adresse_netmask_eth1 { # Passerelle par défaut option routers %%adresse_ip_eth1; option subnet-mask %%adresse_netmask_eth1; option domain-name "%%nom_domaine_local"; option domain-name-servers %%adresse_ip_eth1; %if %%netbios_name_servers_eth1 != "" option netbios-name-servers %%netbios_name_servers_eth1; %end if range %%adresse_ip_range_deb_adm %%adresse_ip_range_fin_adm; default-lease-time 86400; max-lease-time 604800; %if %%hotes_fixes_eth1 != "" # Adresse(s) IP fixe(s) %for %%nom_hote_ip_fixe_eth1 in %%hotes_fixes_eth1 host %%nom_hote_ip_fixe_eth1 { hardware ethernet %%nom_hote_ip_fixe_eth1.adresse_mac_ip_fixe_eth1; fixed-address %%nom_hote_ip_fixe_eth1.adresse_ip_fixe_eth1; } %end for %else # Aucune adresse IP fixe défini côté eth1 %end if } %end if %if %%nombre_interfaces >= "3" and %%activation_dhcp_eth2 == "oui" # Nombre Interfaces >= 3 et activation dhcp eth2 est "oui" subnet %%adresse_network_eth2 netmask %%adresse_netmask_eth2 { # Passerelle par défaut option routers %%adresse_ip_eth2; option subnet-mask %%adresse_netmask_eth2; option domain-name "%%nom_domaine_local"; option domain-name-servers %%adresse_ip_eth2; %if %%netbios_name_servers_eth2 != "" option netbios-name-servers %%netbios_name_servers_eth2; %end if range %%adresse_ip_range_deb_pedago %%adresse_ip_range_fin_pedago; default-lease-time 86400; max-lease-time 604800; %if %%hotes_fixes_eth2 != "" # Adresse(s) IP fixe(s) %for %%nom_hote_ip_fixe_eth2 in %%hotes_fixes_eth2 host %%nom_hote_ip_fixe_eth2 { hardware ethernet %%nom_hote_ip_fixe_eth2.adresse_mac_ip_fixe_eth2; fixed-address %%nom_hote_ip_fixe_eth2.adresse_ip_fixe_eth2; } %end for %else # Aucune adresse IP fixe défini côté eth2 %end if } %end if %if %%nombre_interfaces >= "4" and %%activation_dhcp_eth3 == "oui" # Nombre Interfaces >= 4 et activation dhcp eth3 est "oui" subnet %%adresse_network_eth3 netmask %%adresse_netmask_eth3 { # Passerelle par défaut option routers %%adresse_ip_eth3; option subnet-mask %%adresse_netmask_eth3; option domain-name "%%nom_domaine_local"; option domain-name-servers %%adresse_ip_eth3; %if %%netbios_name_servers_eth3 != "" option netbios-name-servers %%netbios_name_servers_eth3; %end if range %%adresse_ip_range_deb_DMZ %%adresse_ip_range_fin_DMZ; default-lease-time 86400; max-lease-time 604800; %if %%hotes_fixes_eth3 != "" # Adresse(s) IP fixe(s) %for %%nom_hote_ip_fixe_eth3 in %%hotes_fixes_eth3 host %%nom_hote_ip_fixe_eth3 { hardware ethernet %%nom_hote_ip_fixe_eth3.adresse_mac_ip_fixe_eth3; fixed-address %%nom_hote_ip_fixe_eth3.adresse_ip_fixe_eth3; } %end for %else # Aucune adresse IP fixe défini côté eth3 %end if } %end if