Skip to content
Snippets Groups Projects
Commit a3fa805e authored by Antonin Renier's avatar Antonin Renier
Browse files

Replace procedure-dhcp.md

parent d5228d80
No related branches found
No related tags found
No related merge requests found
# DHCP # DHCP
## Installation dhcp ## Installation du package du service DHCP
apt-get install isc-dhcp-server apt-get install isc-dhcp-server
## commande dhcp ## Activation du service DHCP
systemctl start isc-dhcp-server systemctl start isc-dhcp-server
systemctl stop isc-dhcp-server systemctl stop isc-dhcp-server
systemctl restart isc-dhcp-server systemctl restart isc-dhcp-server
--------- ---------
### Configuration dhcpd.conf ## Configuration dhcpd.conf
#### atteindre fichier de configuration : ### Atteindre fichier de configuration :
cd /etc/dhcp cd /etc/dhcp
nano dhcpd.conf nano dhcpd.conf
#### dhcpd.conf : ## Modifier le fichier dhcpd.conf :
# dhcpd.conf ### dhcpd.conf
option domain-name "networkandco.org"; option domain-name "networkandco.org";
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
ddns-update-style interim; ddns-update-style interim;
#VLAN 2 ### VLAN 2
subnet 192.168.40.0 netmask 255.255.255.0 { subnet 192.168.40.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.40.20 192.168.40.100; range dynamic-bootp 192.168.40.20 192.168.40.100;
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
option domain-name-servers 192.168.40.151; option domain-name-servers 192.168.40.151;
} }
#VLAN 3 ### VLAN 3
subnet 192.168.50.0 netmask 255.255.255.0 { subnet 192.168.50.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.50.20 192.168.50.100; range dynamic-bootp 192.168.50.20 192.168.50.100;
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
option domain-name-servers 192.168.40.151; option domain-name-servers 192.168.40.151;
} }
#VLAN 4 ### VLAN 4
subnet 192.168.60.0 netmask 255.255.255.0 { subnet 192.168.60.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.60.20 192.168.60.100; range dynamic-bootp 192.168.60.20 192.168.60.100;
...@@ -101,18 +101,14 @@ ...@@ -101,18 +101,14 @@
ddns-rev-domainname "in-addr.arpa."; ddns-rev-domainname "in-addr.arpa.";
## Configuration DHCP inter-VLAN :
#### Installation du package inter-VLAN :
### Configuration dhcp inter-vlan:
#### Installation package inter-vlan :
sudo apt-get update sudo apt-get update
sudo apt-get install vlan sudo apt-get install vlan
#### configuration fichier /etc/network/interfaces #### Configuration fichier /etc/network/interfaces
nano /etc/network/interfaces : nano /etc/network/interfaces :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment