Skip to content
Snippets Groups Projects
Commit 7f0f0fa8 authored by Al Massati Bilal's avatar Al Massati Bilal
Browse files

V3 01/12

parent 525e30a1
Branches
No related tags found
No related merge requests found
...@@ -3,7 +3,12 @@ ...@@ -3,7 +3,12 @@
## Installation dhcp ## Installation dhcp
apt-get instal isc-dhcp-server apt-get instal isc-dhcp-server
## commande dhcp
systemctl start isc-dhcp-server
systemctl stop isc-dhcp-server
systemctl restart isc-dhcp-server
--------- ---------
### Configuration dhcpd.conf ### Configuration dhcpd.conf
...@@ -50,8 +55,9 @@ ...@@ -50,8 +55,9 @@
option routers 192.168.50.254; option routers 192.168.50.254;
option subnet-mask 255.255.255.0; option subnet-mask 255.255.255.0;
option domain-name "networkandco.org"; option domain-name "networkandco.org";
} 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 {
...@@ -69,16 +75,65 @@ ...@@ -69,16 +75,65 @@
secret "7R1U767pLKhR+O/0hF11TfeNmoVpVU+lfLnL3GhvWpI="; secret "7R1U767pLKhR+O/0hF11TfeNmoVpVU+lfLnL3GhvWpI=";
} }
zone networkandco.org { zone networkandco.org {#VLAN 4
primary 192.168.40.151;
key "dhcp-update-key";
}
zone 40.168.192.in-addr-arpa { auto enp0s3
primary 192.168.40.151; iface Production inet static
key "rndc-key"; address 192.168.60.3
} netmask 255.255.255.0
gateway 192.168.60.254
vlan-raw-device enp0s3
### Configuration dhcp inter-vlan:
#### Installation package inter-vlan :
sudo apt-get update
sudo apt-get install vlan
#### configuration fichier /etc/network/interfaces
nano /etc/nework/interfaces :
# The primary network interface
allow-hotplug enp0s3
iface enp0s3 inet static
address 192.168.40.150
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 ! ### TIPS !
Ne pas oublier chmod sur les fichiers config dhcp/dns Ne pas oublier chmod sur les fichiers config dhcp/dns
\ No newline at end of file actvier les interfaces
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment