From 332497aa732a1eeb4bca8fc30a1624e5cf77171f Mon Sep 17 00:00:00 2001 From: Bilal Al massati <bilal.almassati.etu@univ-lille.fr> Date: Fri, 6 Jan 2023 10:52:24 +0100 Subject: [PATCH] Delete procedure-dhcp.md --- docs/procedure-dhcp.md | 169 ----------------------------------------- 1 file changed, 169 deletions(-) delete mode 100644 docs/procedure-dhcp.md diff --git a/docs/procedure-dhcp.md b/docs/procedure-dhcp.md deleted file mode 100644 index e22de87..0000000 --- a/docs/procedure-dhcp.md +++ /dev/null @@ -1,169 +0,0 @@ -# DHCP - -## Installation dhcp - - apt-get install isc-dhcp-server - -## commande dhcp - - systemctl start isc-dhcp-server - systemctl stop isc-dhcp-server - systemctl restart isc-dhcp-server ---------- - -### Configuration dhcpd.conf - -#### atteindre fichier de configuration : - - cd /etc/dhcp - nano dhcpd.conf - -#### dhcpd.conf : - -# dhcpd.conf - - option domain-name "networkandco.org"; - - default-lease-time 600; - max-lease-time 7200; - allow booting; - allow bootp; - - - ddns-update-style none; - - - server-identifier 192.168.40.150; - authoritative; - ddns-update-style interim; - - -#VLAN 2 - - subnet 192.168.40.0 netmask 255.255.255.0 { - range dynamic-bootp 192.168.40.20 192.168.40.100; - option routers 192.168.40.254;https://gitlab.univ-lille.fr/hugo.lacherez.etu/networkandco.git - option subnet-mask 255.255.255.0; - option domain-name "networkandco.org"; - option domain-name-servers 192.168.40.151; - } - -#VLAN 3 - - subnet 192.168.50.0 netmask 255.255.255.0 { - range dynamic-bootp 192.168.50.20 192.168.50.100; - option routers 192.168.50.254; - option subnet-mask 255.255.255.0; - option domain-name "networkandco.org"; - option domain-name-servers 192.168.40.151; - } - -#VLAN 4 - - subnet 192.168.60.0 netmask 255.255.255.0 { - range dynamic-bootp 192.168.60.20 192.168.60.100; - option routers 192.168.60.254; - option subnet-mask 255.255.255.0; - option domain-name "networkandco.org"; - option domain-name-servers 192.168.40.151; - } ------ - host dns { - hardware ethernet "MAC ADRESSE SERVEUR DNS" - fixed-adress "IP DNS" - } - - //PARTIE DNS DYNAMIQUE - - host dhcp { - hardware ethernet "MAC ADRESSE SERVEUR dhcp" - fixed-adress "IP dhcp" - } --------- - - key "dhcp-update-key" { - algorithm hmac-md5; - secret "7R1U767pLKhR+O/0hF11TfeNmoVpVU+lfLnL3GhvWpI="; - } - - zone networkandco.org { - primary 192.168.40.151; - key "rndc-key"; - } - - zone 40.168.192.in-addr-arpa - { - primary 192.168.40.151; - key "rndc-key"; - } - - ddns-domainname "networkandco.org."; - ddns-rev-domainname "in-addr.arpa."; - - - - - - -### Configuration dhcp inter-vlan: - -#### Installation package inter-vlan : - - sudo apt-get update - sudo apt-get install vlan - -#### configuration fichier /etc/network/interfaces - - - nano /etc/network/interfaces : - - # The primary network interface - allow-hotplug enp0s3 - iface enp0s3 inet static - address 192.168.40.150 //adresse ip static du serveur dhcp - gateway 192.168.40.254 - - - #INTER VLAN - - #VLAN 2 - - auto enp0s3 - iface Admin inet static - address 192.168.40.3 - netmask 255.255.255.0 - gateway 192.168.40.254 - vlan-raw-device enp0s3 - - #VLAN 3 - - auto enp0s3 - iface Comptabilite inet static - address 192.168.50.3 - netmask 255.255.255.0 - gateway 192.168.50.254 - vlan-raw-device enp0s3 - - #VLAN 4 - - auto enp0s3 - iface Production inet static - address 192.168.60.3 - netmask 255.255.255.0 - gateway 192.168.60.254 - vlan-raw-device enp0s3 - -### TIPS ! - - -Ne pas oublier chmod sur les fichiers config dhcp/dns - activer les interfaces - - -Pour les machines en STATIC ne pas oublier de précisier le DNS dans le fichier /etc/network/interfaces: - - allow-hotplug "interface" - iface "interface" inet static - address "adresse ip static" - gateway "adresse passerel" - dns-search "DNS" - dns-namesservers "IP DNS" - -- GitLab