diff --git a/procedure-dhcp.md b/procedure-dhcp.md new file mode 100644 index 0000000000000000000000000000000000000000..a757be67895cd0faf71355d73498ce62e121bb01 --- /dev/null +++ b/procedure-dhcp.md @@ -0,0 +1,84 @@ +# DHCP + +## Installation dhcp + + apt-get instal 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; + 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"; + } + +#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; + } + +-------- + + key "dhcp-update-key" { + algorithm hmac-md5; + secret "7R1U767pLKhR+O/0hF11TfeNmoVpVU+lfLnL3GhvWpI="; + } + + zone networkandco.org { + primary 192.168.40.151; + key "dhcp-update-key"; + } + + zone 40.168.192.in-addr-arpa { + primary 192.168.40.151; + key "rndc-key"; + } + +### TIPS ! + + Ne pas oublier chmod sur les fichiers config dhcp/dns \ No newline at end of file diff --git a/procedure.md b/procedure.md index 9231e426cf6c00c6dc727119afd5a62a6fcb86cc..fbd7f627b02ef83614c21eb838f319da86530b03 100644 --- a/procedure.md +++ b/procedure.md @@ -10,7 +10,7 @@ Switch 2 ( interface GE 0/0 ) à Routeur 2 ( interface GE 0/0 ) -## Switch +## Switch : @@ -18,7 +18,12 @@ Switching (Version : Switch 2960) : Nommer switch - hostname S1 + hostname S1Adressage VLAN: //à faire pour chaque VLAN(exemple VLAN 3 ci-dessous) : + + conf t + (config)interface vlan 3 + (conf-if)ip address 192.168.50.3 255.255.255.0 + exit Sécurisé avec mot de passe sur switch : @@ -31,7 +36,12 @@ Création VLAN 2: (config)vlan 2 (config-vlan)name Admin exit +Adressage VLAN: //à faire pour chaque VLAN(exemple VLAN 3 ci-dessous) : + conf t + (config)interface vlan 3 + (conf-if)ip address 192.168.50.3 255.255.255.0 + exit Création VLAN 3: (config) vlan 3 @@ -60,7 +70,7 @@ Organisation interface vlan 3 : (config-vlan)interface range fa 0/1 - 12 (config-if-range)switchport acces vlan 3 exit -conf t + Organisation interface vlan 4 : conf t @@ -74,10 +84,10 @@ Configuration trunk inter-vlan : conf t (config)interface fa 0/48 1 (Interface GE 0/0) à Routeur (config-if) switchport mode trunk - (config-if)no shutdownconf t + (config-if)no shutdown exit - hostname R1 +## Routeur : Creation sous-interface VLAN 2 (ROUTEUR) @@ -111,12 +121,6 @@ Creation sous-interface VLAN 4 (ROUTEUR) (config-if)no shutdown exit -Adressage VLAN: //à faire pour chaque VLAN(exemple VLAN 3 ci-dessous) : - - conf t - (config)interface vlan 3 - (conf-if)ip address 192.168.50.3 255.255.255.0 - exit Activation interface