From ff2308408e39439949ff4eba59c5039186220041 Mon Sep 17 00:00:00 2001 From: Pierre_Herzog Date: Fri, 19 Dec 2025 09:25:38 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9but=20R=C3=A9seau?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2025-12-18.md | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 2025-12-18.md diff --git a/2025-12-18.md b/2025-12-18.md new file mode 100644 index 0000000..3eebecc --- /dev/null +++ b/2025-12-18.md @@ -0,0 +1,76 @@ +2025-12-18 +#pas oublier multiprise !!!!!!!!!!!!!!!!! + +DHCP / Application Web + +Protocole TCP / IPV4 / IPV6 +(adresse locale en IPV4 ex 192.168.0.0 puis 1,2 etc) +ip a + +- lo : réseau interne à la machine +- w (wlp0s20f3): wifi +- e (ens0s31f6) : ethernet +-brd : broadcast +docker - virtualisation (en machine virtuelle) +serveur DHCP (Dynamic Host Configuration Protocol) -> distribue les adresses + +ps -ax |grep ping (ps trouver la référence de la commande) +kill -9 (9 fait fermer le programme de force) + +/22 après ip mask de sous réseau + +serveur externe -> routeur -> (DHCP organise les ip interne) IP locale + +exo + +10.0.0.0 +(network,brd,mask 255.255.255.0 -> /24) + +Routeur : 10.0.0.2 +DHCP : 192.168.1.254 [Récupérer Multiprise] +Web : 10.0.0.255 +AppServer : 10.0.0.1 +Reverse-proxy : 192.168.1.25 +Clients x3000 : + 0.0.0.0 +calcul de réseau 255.255.255/24= 5000-4= 4096 slots de connections +10.0.15.255 + +255.255.255.0 = 8 8 8 0 + + + >10.0.15.254>[Routeur 1]>10.0.16.1 - 31.254 > -> (4096) + | + | +[Main/Routeur]---| + 10.0.0.0/20 | + | + >10.0.15.253>[Routeur 2]>10.0.32.1 - 47.254 > -> (9056) +/etc/hostname +Groupe (7 pers) + +- Partage Connection +- Serveur DNS (DNSMASQ) +- Serveur WEB (nginx) +- Serveur APP (grabber) +- Serveur BDD (Maria-DB) +- Serveur RP (NGINX) (reverse proxy) - moi - +- Client 1 +- Client 2 + +définir ip statique -> DNS +IP STATIC -> /etc/network/interfaces (sudo nano) (pas oublier de faire une copie) +sudo cp interfaces /etc/network/backup +dnsmasq -> /etc/dnsmaq.conf + +# Primary Network Interface (Exo) +allow-hotplug wlanà +iface eth0 inet static +adress 10.42.0.5/24 +gateway 10.42.0.1 +dns-nameservers 10.42.0.2 +dns-domain dns.lan +# Autoconfig IPV6 interface +iface wlan0 inet6 auto + +