network:homelab_architecture
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| network:homelab_architecture [2026/05/27 16:36] – reaton | network:homelab_architecture [2026/09/07 20:47] (current) – reaton | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ===== Diagramme Réseau ===== | ===== Diagramme Réseau ===== | ||
| - | {{:network:home_network_diagram.excalidraw.png?nolink&600|}} | + | |
| + | {{network:schema_reseau_crs310_v3.png?600}} | ||
| ===== Plan d' | ===== Plan d' | ||
| + | |||
| ^ VLAN ID ^ Nom du réseau ^ Sous-réseau (CIDR) ^ Passerelle (OPNsense) ^ Remarques ^ | ^ VLAN ID ^ Nom du réseau ^ Sous-réseau (CIDR) ^ Passerelle (OPNsense) ^ Remarques ^ | ||
| - | | VLAN 10 | Trusted | 192.168.10.0/ | + | | VLAN 10 | Trusted |
| - | | VLAN 20 | Guests | 192.168.20.0/ | + | | VLAN 20 | Guests |
| - | | VLAN 30 | IoT_Gaming | 192.168.30.0/ | + | | VLAN 30 | IoT_Gaming |
| + | | VLAN 40 | Homelab | ||
| - | ^ Équipement ^ IP Fixe ^ Remarques ^ | + | ^ Équipement |
| - | | OPNsense (LAN) | 192.168.10.1 | Interface igc1 | | + | | OPNsense (LAN) | 192.168.10.1 |
| - | | OPNsense (WAN) | DHCP (Publique) | Interface igc0 (Liée au port 4 Freebox) | | + | | OPNsense (WAN) | DHCP (Publique) | Interface igc0 (Liée au port 4 Freebox), lien 2.5GbE |
| - | | Cisco 2960 | 192.168.10.2 | Interface | + | | MikroTik CRS310-8G+2S+IN |
| - | | TP-Link EAP225 | 192.168.10.5 | Géré en Trunk | | + | | TP-Link EAP225 |
| + | | Proxmox | ||
| + | |||
| + | ===== Switch MikroTik CRS310-8G+2S+IN ===== | ||
| + | |||
| + | Remplace le Cisco Catalyst 2960 (décommissionné). RouterOS 7.24.2. Modèle de VLAN basé sur un bridge unique avec table VLAN centralisée (voir note ci-dessous sur la différence avec Cisco IOS). | ||
| + | |||
| + | ^ Port ^ Rôle ^ Mode ^ PVID ^ VLANs taguées ^ VLAN untagged ^ | ||
| + | | ether1 | ||
| + | | ether2 | ||
| + | | ether3 | ||
| + | | ether4 | ||
| + | | ether5–8, sfp-sfpplus1–2 | Libres | — | 1 | aucune | aucune | | ||
| + | |||
| + | **Note technique — modèle RouterOS vs Cisco IOS :** RouterOS ne fonctionne pas port par port comme l'IOS ('' | ||
| + | |||
| + | Configuration de référence (état de production) : | ||
| + | |||
| + | < | ||
| + | /interface bridge | ||
| + | add admin-mac=38: | ||
| + | |||
| + | /interface vlan | ||
| + | add interface=bridge name=vlan10-mgmt vlan-id=10 | ||
| + | |||
| + | /interface bridge port | ||
| + | add bridge=bridge comment=Link-To-Wifi interface=ether1 pvid=10 | ||
| + | add bridge=bridge comment=PROXMOX interface=ether2 pvid=40 | ||
| + | add bridge=bridge comment=Poste-utilisateur interface=ether3 pvid=10 | ||
| + | add bridge=bridge comment=Uplink-OPNsense interface=ether4 | ||
| + | |||
| + | /interface bridge vlan | ||
| + | add bridge=bridge comment=VLAN-TRUSTED tagged=ether4 untagged=ether3, | ||
| + | add bridge=bridge comment=VLAN-GUEST tagged=ether1, | ||
| + | add bridge=bridge comment=VLAN-IOT tagged=ether1, | ||
| + | add bridge=bridge comment=VLAN-HOMELAB tagged=ether4 untagged=ether2 vlan-ids=40 | ||
| + | |||
| + | /ip address | ||
| + | add address=192.168.10.2/ | ||
| + | |||
| + | /ip route | ||
| + | add dst-address=0.0.0.0/ | ||
| + | |||
| + | /ip dns | ||
| + | set servers=192.168.10.1 | ||
| + | </ | ||
| ===== Troubleshooting & Procédures ===== | ===== Troubleshooting & Procédures ===== | ||
| + | |||
| ==== Perte de connectivité WAN sur OPNsense ==== | ==== Perte de connectivité WAN sur OPNsense ==== | ||
| + | |||
| **Symptôme :** Après le passage de la Freebox en mode " | **Symptôme :** Après le passage de la Freebox en mode " | ||
| Line 25: | Line 75: | ||
| **Résolution :** | **Résolution :** | ||
| + | |||
| - Côté physique : Le câble réseau reliant l' | - Côté physique : Le câble réseau reliant l' | ||
| - | {{ :adminsys: | + | |
| + | {{adminsys: | ||
| - Redémarrer l' | - Redémarrer l' | ||
| ==== Impossible de joindre un SSID spécifique (ex: Trusted) ==== | ==== Impossible de joindre un SSID spécifique (ex: Trusted) ==== | ||
| - | **Symptôme :** Les appareils se connectent au SSID " | ||
| - | **Explication | + | **Symptôme |
| + | |||
| + | **Explication :** L' | ||
| + | |||
| + | **Résolution (MikroTik CRS310) :** | ||
| + | |||
| + | - Déclarer le VLAN 10 comme untagged **en plus** de son statut tagué existant sur le port trunk (ether1), en une seule commande pour éviter le conflit '' | ||
| + | |||
| + | < | ||
| + | /interface bridge vlan set [find vlan-ids=10] tagged=ether4 untagged=ether3, | ||
| + | /interface bridge port set [find interface=ether1] pvid=10 | ||
| + | </ | ||
| + | |||
| + | **Résolution (ancien Cisco 2960, conservé pour référence) :** | ||
| + | |||
| + | - Déclarer le VLAN Trusted (VLAN 10) comme **VLAN natif** (Native VLAN) sur le port Trunk du switch Cisco. | ||
| - | **Résolution :** | ||
| - | - Il faut déclarer le VLAN Trusted (VLAN 10) comme étant le **VLAN natif** (Native VLAN) sur le port Trunk du switch Cisco. | ||
| - //Exemple de configuration Cisco :// | - //Exemple de configuration Cisco :// | ||
| + | |||
| < | < | ||
| Switch> enable | Switch> enable | ||
| Line 46: | Line 112: | ||
| Switch# copy running-config startup-config | Switch# copy running-config startup-config | ||
| </ | </ | ||
| + | |||
| + | ==== PVID appliqué par erreur sur un port trunk déjà taggé (MikroTik) ==== | ||
| + | |||
| + | **Symptôme :** Perte de connectivité sur un port trunk après ajout d'un PVID, alors que le port fonctionnait avant. | ||
| + | |||
| + | **Explication :** Ajouter un PVID correspondant à une VLAN sur un port déjà listé en '' | ||
| + | |||
| + | **Règle à retenir :** un port trunk pur (tagged sur toutes ses VLANs) n'a besoin d' | ||
| + | |||
| + | **Résolution :** rebrancher temporairement sur un port access fonctionnel (ex: ether3) pour reprendre la main via l'IP de management, puis corriger : | ||
| + | |||
| + | < | ||
| + | /interface bridge port set [find interface=< | ||
| + | </ | ||
| + | |||
| + | ==== Lien 2.5GbE négocié en 1Gbps (OPNsense ↔ CRS310) ==== | ||
| + | |||
| + | **Symptôme :** ''/ | ||
| + | |||
| + | **Explication :** Le port switch annonçait correctement '' | ||
| + | |||
| + | **Résolution :** | ||
| + | |||
| + | - Dans OPNsense : **Interfaces → [interface concernée] → Media**, repasser en '' | ||
| + | - Vérifier après application : '' | ||
| + | - Cause fréquente sur ce type de souci : mauvais port physique assigné à l' | ||
network/homelab_architecture.txt · Last modified: by reaton
