Projet PFE - Infrastructure réseau virtualisée
prête pour l'intégration automatique de
nouveaux clients
Objectif Global
Mettre en place une infrastructure réseau virtualisée sur Ubuntu Server, capable de gérer
automatiquement l'intégration de nouveaux postes clients. Le projet inclura les services fondamentaux
(DHCP, DNS, Web, FTP), et prouvera leur fonctionnement lors de l'ajout d'une nouvelle machine cliente.
PHASE 1 : Création de l'environnement de virtualisation
▪ Étape 1 : Installer VirtualBox
• Télécharger depuis https://www.virtualbox.org
• Installer sur le PC hôte
▪ Étape 2 : Créer un réseau interne
• Aller dans "Fichier" > "Hôtes réseau"
• Créer un réseau interne appelé LabNet
▪ Étape 3 : Créer la VM serveur Ubuntu
• OS : Ubuntu Server 22.04 LTS
• RAM : 2048 Mo
• Disque dur : 20 Go dynamiquement alloué
• Carte réseau : mode "Réseau interne" ( LabNet )
• Installer Ubuntu Server avec SSH activé
PHASE 2 : Configuration de la machine serveur (SRV-Linux)
▪ Étape 4 : Configuration IP statique
sudo nano /etc/netplan/00-installer-config.yaml
Contenu :
network:
version: 2
1
ethernets:
enp0s3:
dhcp4: no
addresses: [192.168.100.10/24]
gateway4: 192.168.100.1
nameservers:
addresses: [8.8.8.8]
Puis appliquer :
sudo netplan apply
▪ Étape 5 : Installer et configurer le serveur DHCP
sudo apt install isc-dhcp-server
Fichier à modifier : /etc/dhcp/dhcpd.conf
subnet 192.168.100.0 netmask 255.255.255.0 {
range 192.168.100.20 192.168.100.50;
option routers 192.168.100.1;
option domain-name-servers 192.168.100.10;
option domain-name "lab.local";
}
Puis :
sudo nano /etc/default/isc-dhcp-server
INTERFACESv4="enp0s3"
sudo systemctl restart isc-dhcp-server
▪ Étape 6 : Installer et configurer le serveur DNS
sudo apt install bind9
Modifier /etc/bind/named.conf.local :
zone "lab.local" {
type master;
file "/etc/bind/db.lab.local";
};
Copier et modifier :
2
sudo cp /etc/bind/db.local /etc/bind/db.lab.local
sudo nano /etc/bind/db.lab.local
Contenu exemple :
@ IN SOA ns.lab.local. admin.lab.local. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; TTL
@ IN NS ns.lab.local.
ns IN A 192.168.100.10
www IN A 192.168.100.10
Redémarrer :
sudo systemctl restart bind9
▪ Étape 7 : Installer le serveur Web
sudo apt install apache2
Page Web :
echo "<h1>Bienvenue sur lab.local</h1>" | sudo tee /var/www/html/index.html
Tester avec :
curl http://localhost
PHASE 3 : Intégration d'une nouvelle machine client
▪ Étape 8 : Créer une VM client (Ubuntu Desktop ou Server)
• Nom : Client-Test
• Réseau : LabNet
• Lancer en mode Live ou installation rapide
• Ne pas configurer manuellement l'adresse IP
3
▪ Étape 9 : Tester l'attribution IP
ip a
Attendu : IP dans la plage 192.168.100.20 - 192.168.100.50
▪ Étape 10 : Tester la résolution DNS
nslookup www.lab.local
Attendu : Résolution vers 192.168.100.10
▪ Étape 11 : Tester l'accès Web
curl http://www.lab.local
Attendu : contenu HTML de la page d'accueil
En conclusion
Ce projet met en place un système complet de services réseaux virtualisés, capable de gérer
dynamiquement l'intégration de nouveaux postes. Il démontre la compréhension des interactions entre
les services réseaux fondamentaux (IP, DNS, DHCP, Web).
Souhaites-tu maintenant :
• Un schéma réseau graphique ? oui
• Un PowerPoint ? oui
• Un script Bash pour vérification automatique ? oui