From f624eefcda5de5f6b08761a45d60c69e3ae51fd1 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Thu, 1 Oct 2015 19:26:37 +0200 Subject: [PATCH] add blank dhcpd.conf for all configurations --- master/etc/dhcp/dhcpd.conf.12MHzDF | 106 ++++++++++++++ .../{dhcpd.conf.blank => dhcpd.conf.12MHzMDF} | 22 ++- master/etc/dhcp/dhcpd.conf.30MHzMDF | 130 ++++++++++++++++++ ...nf.blank.lite => dhcpd.conf.30MHzMDF.lite} | 0 master/etc/dhcp/dhcpd.conf.30MHzMHF | 90 ++++++++++++ master/etc/dhcp/dhcpd.conf.8MHzMHF | 83 +++++++++++ master/opt/script/change_configuration.sh | 2 +- 7 files changed, 418 insertions(+), 15 deletions(-) create mode 100644 master/etc/dhcp/dhcpd.conf.12MHzDF rename master/etc/dhcp/{dhcpd.conf.blank => dhcpd.conf.12MHzMDF} (89%) create mode 100644 master/etc/dhcp/dhcpd.conf.30MHzMDF rename master/etc/dhcp/{dhcpd.conf.blank.lite => dhcpd.conf.30MHzMDF.lite} (100%) create mode 100644 master/etc/dhcp/dhcpd.conf.30MHzMHF create mode 100644 master/etc/dhcp/dhcpd.conf.8MHzMHF diff --git a/master/etc/dhcp/dhcpd.conf.12MHzDF b/master/etc/dhcp/dhcpd.conf.12MHzDF new file mode 100644 index 0000000..9f0c954 --- /dev/null +++ b/master/etc/dhcp/dhcpd.conf.12MHzDF @@ -0,0 +1,106 @@ +# /etc/dhcp3/dhcpd.conf +# Fichier de configuration du serveur DHCP de l'ISC (package 'dhcp3-server') +# Formation Debian GNU/Linux par Alexis de Lattre +# http://formation-debian.via.ecp.fr/ + +# Consultez "man dhcpd.conf" pour avoir toutes les informations sur les options + + +# ============================================================================ +# V1.5 +# Copyright (C) THALES. All rights reserved +# Author: Jean-Noel Raguenes +# Date : 07/12/2009 +# Modification: +# - V1.1: Herve Petit 10/03/2010 +# Reprise avec ajouts des sub net eth1 +# - V1.2: Herve Petit 24/06/2010 +# Ajout option routers sur sub net eth1 +# - V1.3: Herve Petit 25/08/2010 +# Remplacement lame trc13 par lame trc27 a cause pb d'init_statique +# qui prennait 2 mn sur cette lame +# - V1.4: Herve Petit 18/04/2011 +# Suppression definition de la route par defaut a partir du fichier dhcp +# - V1.5: Laurent Mazet 09/05/2014 +# Netoyage +# ============================================================================ + +# DEBUT des options GLOBALES +# Les options globales s'appliqueront par defaut a tous les sous-reseaux + +# Nom de domaine +ddns-domainname "trc6500.thalesgroup.com"; +option domain-name "trc6500.thalesgroup.com"; + +# Duree du bail en secondes +default-lease-time 6000; +max-lease-time 6000; +server-name "maitre"; + +# FIN des options GLOBALES + +# DEBUT de la declaration des sous-reseaux et des machines + +subnet 10.133.26.0 netmask 255.255.255.0 +{ + next-server 10.133.26.160; + filename "pxelinux.0"; + option domain-name-servers 10.133.26.160; + #option routers 10.133.26.231; + use-host-decl-names on; + authoritative; +} + +# liste des lames a completer dans l'ordre de la baie + +#lame lsu +host trc01-rf { hardware ethernet 00:00:00:00:00:01; fixed-address 10.133.26.161;} + +#lames gonio +host trc02-rf { hardware ethernet 00:00:00:00:00:02; fixed-address 10.133.26.162;} +host trc03-rf { hardware ethernet 00:00:00:00:00:03; fixed-address 10.133.26.163;} +host trc04-rf { hardware ethernet 00:00:00:00:00:04; fixed-address 10.133.26.164;} +host trc05-rf { hardware ethernet 00:00:00:00:00:05; fixed-address 10.133.26.165;} +host trc06-rf { hardware ethernet 00:00:00:00:00:06; fixed-address 10.133.26.166;} +host trc07-rf { hardware ethernet 00:00:00:00:00:07; fixed-address 10.133.26.167;} +host trc08-rf { hardware ethernet 00:00:00:00:00:08; fixed-address 10.133.26.168;} +host trc09-rf { hardware ethernet 00:00:00:00:00:09; fixed-address 10.133.26.169;} +host trc10-rf { hardware ethernet 00:00:00:00:00:0A; fixed-address 10.133.26.170;} +host trc11-rf { hardware ethernet 00:00:00:00:00:0B; fixed-address 10.133.26.171;} +host trc12-rf { hardware ethernet 00:00:00:00:00:0C; fixed-address 10.133.26.172;} +host trc13-rf { hardware ethernet 00:00:00:00:00:0D; fixed-address 10.133.26.173;} +host trc14-rf { hardware ethernet 00:00:00:00:00:0E; fixed-address 10.133.26.174;} +host trc15-rf { hardware ethernet 00:00:00:00:00:0F; fixed-address 10.133.26.175;} +host trc16-rf { hardware ethernet 00:00:00:00:00:10; fixed-address 10.133.26.176;} +host trc17-rf { hardware ethernet 00:00:00:00:00:11; fixed-address 10.133.26.177;} + +subnet 10.133.28.0 netmask 255.255.255.0 +{ + next-server 10.133.28.160; + filename "pxelinux.0"; + option routers 10.133.28.231; + option domain-name-servers 10.133.28.160; + use-host-decl-names on; + authoritative; +} + +#lame lsu +host trc01 { hardware ethernet 00:00:00:00:01:01; fixed-address 10.133.28.161;} + +#lames gonio +host trc02 { hardware ethernet 00:00:00:00:01:02; fixed-address 10.133.28.162;} +host trc03 { hardware ethernet 00:00:00:00:01:03; fixed-address 10.133.28.163;} +host trc04 { hardware ethernet 00:00:00:00:01:04; fixed-address 10.133.28.164;} +host trc05 { hardware ethernet 00:00:00:00:01:05; fixed-address 10.133.28.165;} +host trc06 { hardware ethernet 00:00:00:00:01:06; fixed-address 10.133.28.166;} +host trc07 { hardware ethernet 00:00:00:00:01:07; fixed-address 10.133.28.167;} +host trc08 { hardware ethernet 00:00:00:00:01:08; fixed-address 10.133.28.168;} +host trc09 { hardware ethernet 00:00:00:00:01:09; fixed-address 10.133.28.169;} +host trc10 { hardware ethernet 00:00:00:00:01:0A; fixed-address 10.133.28.170;} +host trc11 { hardware ethernet 00:00:00:00:01:0B; fixed-address 10.133.28.171;} +host trc12 { hardware ethernet 00:00:00:00:01:0C; fixed-address 10.133.28.172;} +host trc13 { hardware ethernet 00:00:00:00:01:0D; fixed-address 10.133.28.173;} +host trc14 { hardware ethernet 00:00:00:00:01:0E; fixed-address 10.133.28.174;} +host trc15 { hardware ethernet 00:00:00:00:01:0F; fixed-address 10.133.28.175;} +host trc16 { hardware ethernet 00:00:00:00:01:10; fixed-address 10.133.28.176;} +host trc17 { hardware ethernet 00:00:00:00:01:11; fixed-address 10.133.28.177;} diff --git a/master/etc/dhcp/dhcpd.conf.blank b/master/etc/dhcp/dhcpd.conf.12MHzMDF similarity index 89% rename from master/etc/dhcp/dhcpd.conf.blank rename to master/etc/dhcp/dhcpd.conf.12MHzMDF index 11892ec..fdfeef2 100644 --- a/master/etc/dhcp/dhcpd.conf.blank +++ b/master/etc/dhcp/dhcpd.conf.12MHzMDF @@ -53,7 +53,7 @@ subnet 10.133.26.0 netmask 255.255.255.0 # liste des lames a completer dans l'ordre de la baie -#lame fusion, pistage, LSU +#lame lsu host trc01-rf { hardware ethernet 00:00:00:00:00:01; fixed-address 10.133.26.161;} #lames gonio @@ -73,6 +73,8 @@ host trc14-rf { hardware ethernet 00:00:00:00:00:0E; fixed-address 10.133.26.174 host trc15-rf { hardware ethernet 00:00:00:00:00:0F; fixed-address 10.133.26.175;} host trc16-rf { hardware ethernet 00:00:00:00:00:10; fixed-address 10.133.26.176;} host trc17-rf { hardware ethernet 00:00:00:00:00:11; fixed-address 10.133.26.177;} + +#lames monitoring host trc18-rf { hardware ethernet 00:00:00:00:00:12; fixed-address 10.133.26.178;} host trc19-rf { hardware ethernet 00:00:00:00:00:13; fixed-address 10.133.26.179;} host trc20-rf { hardware ethernet 00:00:00:00:00:14; fixed-address 10.133.26.180;} @@ -82,15 +84,10 @@ host trc23-rf { hardware ethernet 00:00:00:00:00:17; fixed-address 10.133.26.183 host trc24-rf { hardware ethernet 00:00:00:00:00:18; fixed-address 10.133.26.184;} host trc25-rf { hardware ethernet 00:00:00:00:00:19; fixed-address 10.133.26.185;} -#lames monitoring +#lames spare host trc26-rf { hardware ethernet 00:00:00:00:00:1A; fixed-address 10.133.26.186;} host trc27-rf { hardware ethernet 00:00:00:00:00:1B; fixed-address 10.133.26.187;} -host trc28-rf { hardware ethernet 00:00:00:00:00:1C; fixed-address 10.133.26.188;} -host trc29-rf { hardware ethernet 00:00:00:00:00:1D; fixed-address 10.133.26.189;} -host trc30-rf { hardware ethernet 00:00:00:00:00:1E; fixed-address 10.133.26.190;} -host trc31-rf { hardware ethernet 00:00:00:00:00:1F; fixed-address 10.133.26.191;} - subnet 10.133.28.0 netmask 255.255.255.0 { next-server 10.133.28.160; @@ -101,7 +98,7 @@ subnet 10.133.28.0 netmask 255.255.255.0 authoritative; } -#lame fusion, pistage, LSU +#lame lsu host trc01 { hardware ethernet 00:00:00:00:01:01; fixed-address 10.133.28.161;} #lames gonio @@ -120,6 +117,8 @@ host trc13 { hardware ethernet 00:00:00:00:01:0D; fixed-address 10.133.28.173;} host trc14 { hardware ethernet 00:00:00:00:01:0E; fixed-address 10.133.28.174;} host trc15 { hardware ethernet 00:00:00:00:01:0F; fixed-address 10.133.28.175;} host trc16 { hardware ethernet 00:00:00:00:01:10; fixed-address 10.133.28.176;} + +#lames monitoring host trc17 { hardware ethernet 00:00:00:00:01:11; fixed-address 10.133.28.177;} host trc18 { hardware ethernet 00:00:00:00:01:12; fixed-address 10.133.28.178;} host trc19 { hardware ethernet 00:00:00:00:01:13; fixed-address 10.133.28.179;} @@ -130,11 +129,6 @@ host trc23 { hardware ethernet 00:00:00:00:01:17; fixed-address 10.133.28.183;} host trc24 { hardware ethernet 00:00:00:00:01:18; fixed-address 10.133.28.184;} host trc25 { hardware ethernet 00:00:00:00:01:19; fixed-address 10.133.28.185;} -#lames monitoring +#lames spare host trc26 { hardware ethernet 00:00:00:00:01:1A; fixed-address 10.133.28.186;} host trc27 { hardware ethernet 00:00:00:00:01:1B; fixed-address 10.133.28.187;} - -host trc28 { hardware ethernet 00:00:00:00:01:1C; fixed-address 10.133.26.188;} -host trc29 { hardware ethernet 00:00:00:00:01:1D; fixed-address 10.133.26.189;} -host trc30 { hardware ethernet 00:00:00:00:01:1E; fixed-address 10.133.26.190;} -host trc31 { hardware ethernet 00:00:00:00:01:1F; fixed-address 10.133.28.191;} diff --git a/master/etc/dhcp/dhcpd.conf.30MHzMDF b/master/etc/dhcp/dhcpd.conf.30MHzMDF new file mode 100644 index 0000000..20a6ed1 --- /dev/null +++ b/master/etc/dhcp/dhcpd.conf.30MHzMDF @@ -0,0 +1,130 @@ +# /etc/dhcp3/dhcpd.conf +# Fichier de configuration du serveur DHCP de l'ISC (package 'dhcp3-server') +# Formation Debian GNU/Linux par Alexis de Lattre +# http://formation-debian.via.ecp.fr/ + +# Consultez "man dhcpd.conf" pour avoir toutes les informations sur les options + + +# ============================================================================ +# V1.5 +# Copyright (C) THALES. All rights reserved +# Author: Jean-Noel Raguenes +# Date : 07/12/2009 +# Modification: +# - V1.1: Herve Petit 10/03/2010 +# Reprise avec ajouts des sub net eth1 +# - V1.2: Herve Petit 24/06/2010 +# Ajout option routers sur sub net eth1 +# - V1.3: Herve Petit 25/08/2010 +# Remplacement lame trc13 par lame trc27 a cause pb d'init_statique +# qui prennait 2 mn sur cette lame +# - V1.4: Herve Petit 18/04/2011 +# Suppression definition de la route par defaut a partir du fichier dhcp +# - V1.5: Laurent Mazet 09/05/2014 +# Netoyage +# ============================================================================ + +# DEBUT des options GLOBALES +# Les options globales s'appliqueront par defaut a tous les sous-reseaux + +# Nom de domaine +ddns-domainname "trc6500.thalesgroup.com"; +option domain-name "trc6500.thalesgroup.com"; + +# Duree du bail en secondes +default-lease-time 6000; +max-lease-time 6000; +server-name "maitre"; + +# FIN des options GLOBALES + +# DEBUT de la declaration des sous-reseaux et des machines + +subnet 10.133.26.0 netmask 255.255.255.0 +{ + next-server 10.133.26.160; + filename "pxelinux.0"; + option domain-name-servers 10.133.26.160; + #option routers 10.133.26.231; + use-host-decl-names on; + authoritative; +} + +# liste des lames a completer dans l'ordre de la baie + +#lame lsu +host trc01-rf { hardware ethernet 00:00:00:00:00:01; fixed-address 10.133.26.161;} + +#lames gonio +host trc02-rf { hardware ethernet 00:00:00:00:00:02; fixed-address 10.133.26.162;} +host trc03-rf { hardware ethernet 00:00:00:00:00:03; fixed-address 10.133.26.163;} +host trc04-rf { hardware ethernet 00:00:00:00:00:04; fixed-address 10.133.26.164;} +host trc05-rf { hardware ethernet 00:00:00:00:00:05; fixed-address 10.133.26.165;} +host trc06-rf { hardware ethernet 00:00:00:00:00:06; fixed-address 10.133.26.166;} +host trc07-rf { hardware ethernet 00:00:00:00:00:07; fixed-address 10.133.26.167;} +host trc08-rf { hardware ethernet 00:00:00:00:00:08; fixed-address 10.133.26.168;} +host trc09-rf { hardware ethernet 00:00:00:00:00:09; fixed-address 10.133.26.169;} +host trc10-rf { hardware ethernet 00:00:00:00:00:0A; fixed-address 10.133.26.170;} +host trc11-rf { hardware ethernet 00:00:00:00:00:0B; fixed-address 10.133.26.171;} +host trc12-rf { hardware ethernet 00:00:00:00:00:0C; fixed-address 10.133.26.172;} +host trc13-rf { hardware ethernet 00:00:00:00:00:0D; fixed-address 10.133.26.173;} +host trc14-rf { hardware ethernet 00:00:00:00:00:0E; fixed-address 10.133.26.174;} +host trc15-rf { hardware ethernet 00:00:00:00:00:0F; fixed-address 10.133.26.175;} +host trc16-rf { hardware ethernet 00:00:00:00:00:10; fixed-address 10.133.26.176;} +host trc17-rf { hardware ethernet 00:00:00:00:00:11; fixed-address 10.133.26.177;} +host trc18-rf { hardware ethernet 00:00:00:00:00:12; fixed-address 10.133.26.178;} +host trc19-rf { hardware ethernet 00:00:00:00:00:13; fixed-address 10.133.26.179;} +host trc20-rf { hardware ethernet 00:00:00:00:00:14; fixed-address 10.133.26.180;} +host trc21-rf { hardware ethernet 00:00:00:00:00:15; fixed-address 10.133.26.181;} +host trc22-rf { hardware ethernet 00:00:00:00:00:16; fixed-address 10.133.26.182;} +host trc23-rf { hardware ethernet 00:00:00:00:00:17; fixed-address 10.133.26.183;} +host trc24-rf { hardware ethernet 00:00:00:00:00:18; fixed-address 10.133.26.184;} +host trc25-rf { hardware ethernet 00:00:00:00:00:19; fixed-address 10.133.26.185;} + +#lames monitoring +host trc26-rf { hardware ethernet 00:00:00:00:00:1A; fixed-address 10.133.26.186;} +host trc27-rf { hardware ethernet 00:00:00:00:00:1B; fixed-address 10.133.26.187;} + +subnet 10.133.28.0 netmask 255.255.255.0 +{ + next-server 10.133.28.160; + filename "pxelinux.0"; + option routers 10.133.28.231; + option domain-name-servers 10.133.28.160; + use-host-decl-names on; + authoritative; +} + +#lame lsu +host trc01 { hardware ethernet 00:00:00:00:01:01; fixed-address 10.133.28.161;} + +#lames gonio +host trc02 { hardware ethernet 00:00:00:00:01:02; fixed-address 10.133.28.162;} +host trc03 { hardware ethernet 00:00:00:00:01:03; fixed-address 10.133.28.163;} +host trc04 { hardware ethernet 00:00:00:00:01:04; fixed-address 10.133.28.164;} +host trc05 { hardware ethernet 00:00:00:00:01:05; fixed-address 10.133.28.165;} +host trc06 { hardware ethernet 00:00:00:00:01:06; fixed-address 10.133.28.166;} +host trc07 { hardware ethernet 00:00:00:00:01:07; fixed-address 10.133.28.167;} +host trc08 { hardware ethernet 00:00:00:00:01:08; fixed-address 10.133.28.168;} +host trc09 { hardware ethernet 00:00:00:00:01:09; fixed-address 10.133.28.169;} +host trc10 { hardware ethernet 00:00:00:00:01:0A; fixed-address 10.133.28.170;} +host trc11 { hardware ethernet 00:00:00:00:01:0B; fixed-address 10.133.28.171;} +host trc12 { hardware ethernet 00:00:00:00:01:0C; fixed-address 10.133.28.172;} +host trc13 { hardware ethernet 00:00:00:00:01:0D; fixed-address 10.133.28.173;} +host trc14 { hardware ethernet 00:00:00:00:01:0E; fixed-address 10.133.28.174;} +host trc15 { hardware ethernet 00:00:00:00:01:0F; fixed-address 10.133.28.175;} +host trc16 { hardware ethernet 00:00:00:00:01:10; fixed-address 10.133.28.176;} +host trc17 { hardware ethernet 00:00:00:00:01:11; fixed-address 10.133.28.177;} +host trc18 { hardware ethernet 00:00:00:00:01:12; fixed-address 10.133.28.178;} +host trc19 { hardware ethernet 00:00:00:00:01:13; fixed-address 10.133.28.179;} +host trc20 { hardware ethernet 00:00:00:00:01:14; fixed-address 10.133.28.180;} +host trc21 { hardware ethernet 00:00:00:00:01:15; fixed-address 10.133.28.181;} +host trc22 { hardware ethernet 00:00:00:00:01:16; fixed-address 10.133.28.182;} +host trc23 { hardware ethernet 00:00:00:00:01:17; fixed-address 10.133.28.183;} +host trc24 { hardware ethernet 00:00:00:00:01:18; fixed-address 10.133.28.184;} +host trc25 { hardware ethernet 00:00:00:00:01:19; fixed-address 10.133.28.185;} + +#lames monitoring +host trc26 { hardware ethernet 00:00:00:00:01:1A; fixed-address 10.133.28.186;} +host trc27 { hardware ethernet 00:00:00:00:01:1B; fixed-address 10.133.28.187;} diff --git a/master/etc/dhcp/dhcpd.conf.blank.lite b/master/etc/dhcp/dhcpd.conf.30MHzMDF.lite similarity index 100% rename from master/etc/dhcp/dhcpd.conf.blank.lite rename to master/etc/dhcp/dhcpd.conf.30MHzMDF.lite diff --git a/master/etc/dhcp/dhcpd.conf.30MHzMHF b/master/etc/dhcp/dhcpd.conf.30MHzMHF new file mode 100644 index 0000000..da2d813 --- /dev/null +++ b/master/etc/dhcp/dhcpd.conf.30MHzMHF @@ -0,0 +1,90 @@ +# /etc/dhcp3/dhcpd.conf +# Fichier de configuration du serveur DHCP de l'ISC (package 'dhcp3-server') +# Formation Debian GNU/Linux par Alexis de Lattre +# http://formation-debian.via.ecp.fr/ + +# Consultez "man dhcpd.conf" pour avoir toutes les informations sur les options + + +# ============================================================================ +# V1.5 +# Copyright (C) THALES. All rights reserved +# Author: Jean-Noel Raguenes +# Date : 07/12/2009 +# Modification: +# - V1.1: Herve Petit 10/03/2010 +# Reprise avec ajouts des sub net eth1 +# - V1.2: Herve Petit 24/06/2010 +# Ajout option routers sur sub net eth1 +# - V1.3: Herve Petit 25/08/2010 +# Remplacement lame trc13 par lame trc27 a cause pb d'init_statique +# qui prennait 2 mn sur cette lame +# - V1.4: Herve Petit 18/04/2011 +# Suppression definition de la route par defaut a partir du fichier dhcp +# - V1.5: Laurent Mazet 09/05/2014 +# Netoyage +# ============================================================================ + +# DEBUT des options GLOBALES +# Les options globales s'appliqueront par defaut a tous les sous-reseaux + +# Nom de domaine +ddns-domainname "trc6500.thalesgroup.com"; +option domain-name "trc6500.thalesgroup.com"; + +# Duree du bail en secondes +default-lease-time 6000; +max-lease-time 6000; +server-name "maitre"; + +# FIN des options GLOBALES + +# DEBUT de la declaration des sous-reseaux et des machines + +subnet 10.133.26.0 netmask 255.255.255.0 +{ + next-server 10.133.26.160; + filename "pxelinux.0"; + option domain-name-servers 10.133.26.160; + #option routers 10.133.26.231; + use-host-decl-names on; + authoritative; +} + +# liste des lames a completer dans l'ordre de la baie + +#lame acq +host trc01-rf { hardware ethernet 00:00:00:00:00:01; fixed-address 10.133.26.161;} +host trc02-rf { hardware ethernet 00:00:00:00:00:02; fixed-address 10.133.26.162;} +host trc03-rf { hardware ethernet 00:00:00:00:00:03; fixed-address 10.133.26.163;} +host trc04-rf { hardware ethernet 00:00:00:00:00:04; fixed-address 10.133.26.164;} +host trc05-rf { hardware ethernet 00:00:00:00:00:05; fixed-address 10.133.26.165;} +host trc06-rf { hardware ethernet 00:00:00:00:00:06; fixed-address 10.133.26.166;} +#lame mon +host trc07-rf { hardware ethernet 00:00:00:00:00:07; fixed-address 10.133.26.167;} +host trc08-rf { hardware ethernet 00:00:00:00:00:08; fixed-address 10.133.26.168;} +#lame enr +host trc09-rf { hardware ethernet 00:00:00:00:00:09; fixed-address 10.133.26.169;} + +subnet 10.133.28.0 netmask 255.255.255.0 +{ + next-server 10.133.28.160; + filename "pxelinux.0"; + option routers 10.133.28.231; + option domain-name-servers 10.133.28.160; + use-host-decl-names on; + authoritative; +} + +#lame acq +host trc01 { hardware ethernet 00:00:00:00:01:01; fixed-address 10.133.28.161;} +host trc02 { hardware ethernet 00:00:00:00:01:02; fixed-address 10.133.28.162;} +host trc03 { hardware ethernet 00:00:00:00:01:03; fixed-address 10.133.28.163;} +host trc04 { hardware ethernet 00:00:00:00:01:04; fixed-address 10.133.28.164;} +host trc05 { hardware ethernet 00:00:00:00:01:05; fixed-address 10.133.28.165;} +host trc06 { hardware ethernet 00:00:00:00:01:06; fixed-address 10.133.28.166;} +#lame mon +host trc07 { hardware ethernet 00:00:00:00:01:07; fixed-address 10.133.28.167;} +host trc08 { hardware ethernet 00:00:00:00:01:08; fixed-address 10.133.28.168;} +#lame enr +host trc09 { hardware ethernet 00:00:00:00:01:09; fixed-address 10.133.28.169;} diff --git a/master/etc/dhcp/dhcpd.conf.8MHzMHF b/master/etc/dhcp/dhcpd.conf.8MHzMHF new file mode 100644 index 0000000..06cb0d3 --- /dev/null +++ b/master/etc/dhcp/dhcpd.conf.8MHzMHF @@ -0,0 +1,83 @@ +# /etc/dhcp3/dhcpd.conf +# Fichier de configuration du serveur DHCP de l'ISC (package 'dhcp3-server') +# Formation Debian GNU/Linux par Alexis de Lattre +# http://formation-debian.via.ecp.fr/ + +# Consultez "man dhcpd.conf" pour avoir toutes les informations sur les options + + +# ============================================================================ +# V1.5 +# Copyright (C) THALES. All rights reserved +# Author: Jean-Noel Raguenes +# Date : 07/12/2009 +# Modification: +# - V1.1: Herve Petit 10/03/2010 +# Reprise avec ajouts des sub net eth1 +# - V1.2: Herve Petit 24/06/2010 +# Ajout option routers sur sub net eth1 +# - V1.3: Herve Petit 25/08/2010 +# Remplacement lame trc13 par lame trc27 a cause pb d'init_statique +# qui prennait 2 mn sur cette lame +# - V1.4: Herve Petit 18/04/2011 +# Suppression definition de la route par defaut a partir du fichier dhcp +# - V1.5: Laurent Mazet 09/05/2014 +# Netoyage +# ============================================================================ + +# DEBUT des options GLOBALES +# Les options globales s'appliqueront par defaut a tous les sous-reseaux + +# Nom de domaine +ddns-domainname "trc6500.thalesgroup.com"; +option domain-name "trc6500.thalesgroup.com"; + +# Duree du bail en secondes +default-lease-time 6000; +max-lease-time 6000; +server-name "maitre"; + +# FIN des options GLOBALES + +# DEBUT de la declaration des sous-reseaux et des machines + +subnet 10.133.26.0 netmask 255.255.255.0 +{ + next-server 10.133.26.160; + filename "pxelinux.0"; + option domain-name-servers 10.133.26.160; + #option routers 10.133.26.231; + use-host-decl-names on; + authoritative; +} + +# liste des lames a completer dans l'ordre de la baie + +#lame acq +host trc01-rf { hardware ethernet 00:00:00:00:00:01; fixed-address 10.133.26.161;} +host trc02-rf { hardware ethernet 00:00:00:00:00:02; fixed-address 10.133.26.162;} +#lame mon +host trc03-rf { hardware ethernet 00:00:00:00:00:03; fixed-address 10.133.26.163;} +host trc04-rf { hardware ethernet 00:00:00:00:00:04; fixed-address 10.133.26.164;} +#lame enr +host trc05-rf { hardware ethernet 00:00:00:00:00:05; fixed-address 10.133.26.165;} + +subnet 10.133.28.0 netmask 255.255.255.0 +{ + next-server 10.133.28.160; + filename "pxelinux.0"; + option routers 10.133.28.231; + option domain-name-servers 10.133.28.160; + use-host-decl-names on; + authoritative; +} + +#lame acq +host trc01 { hardware ethernet 00:00:00:00:01:01; fixed-address 10.133.28.161;} +host trc02 { hardware ethernet 00:00:00:00:01:02; fixed-address 10.133.28.162;} +#lame mon +host trc03 { hardware ethernet 00:00:00:00:01:03; fixed-address 10.133.28.163;} +host trc04 { hardware ethernet 00:00:00:00:01:04; fixed-address 10.133.28.164;} +#lame enr +host trc05 { hardware ethernet 00:00:00:00:01:05; fixed-address 10.133.28.165;} + diff --git a/master/opt/script/change_configuration.sh b/master/opt/script/change_configuration.sh index e042b2e..ef715b7 100755 --- a/master/opt/script/change_configuration.sh +++ b/master/opt/script/change_configuration.sh @@ -93,13 +93,13 @@ if [ "$MODE_BW" ]; then 30MHzMDF) ;; 30MHzMDF.lite) for ip in 0A851{A,C}; do check ln -T -f -s lite /opt/tftp/pxelinux.cfg/$ip; done - check cp /etc/dhcp/dhcpd.conf.lite /etc/dhcp/dhcpd.conf ;; 30MHzMHF) for ip in 0A851{A,C}A{1..6}; do check ln -T -f -s acq /opt/tftp/pxelinux.cfg/$ip; done for ip in 0A851{A,C}A9; do check ln -T -f -s rec /opt/tftp/pxelinux.cfg/$ip; done ;; esac + check cp /etc/dhcp/dhcpd.conf.$MODE_BW /etc/dhcp/dhcpd.conf action="done" fi -- 2.30.2