{"app":"simulateur-reseau","v":1,"opts":{"strictCables":false,"stpFast":true},"devices":[{"id":"D1","type":"switch","model":"sw-2960","name":"SW-A","x":260,"y":120,"powered":true,"cli":"!\nhostname SW-A\n!\nspanning-tree mode pvst\nline con 0\n logging synchronous\nline vty 0 4\n!","label":""},{"id":"D2","type":"switch","model":"sw-2960","name":"SW-B","x":600,"y":120,"powered":true,"cli":"!\nhostname SW-B\n!\nspanning-tree mode pvst\nline con 0\n logging synchronous\nline vty 0 4\n!","label":""},{"id":"D3","type":"pc","model":"pc-win","name":"PC-Dir-A","x":100,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.10.11","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.10.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-Dir-A</title></head><body><h1>Bienvenue sur PC-Dir-A</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""},{"id":"D4","type":"pc","model":"pc-win","name":"PC-Dir-B","x":500,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.10.21","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.10.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-Dir-B</title></head><body><h1>Bienvenue sur PC-Dir-B</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""},{"id":"D5","type":"pc","model":"pc-win","name":"PC-Com-A","x":220,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.20.11","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.20.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-Com-A</title></head><body><h1>Bienvenue sur PC-Com-A</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""},{"id":"D6","type":"pc","model":"pc-win","name":"PC-Com-B","x":620,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.20.21","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.20.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-Com-B</title></head><body><h1>Bienvenue sur PC-Com-B</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""},{"id":"D7","type":"pc","model":"pc-win","name":"PC-Info-A","x":340,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.30.11","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.30.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-Info-A</title></head><body><h1>Bienvenue sur PC-Info-A</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""},{"id":"D8","type":"pc","model":"pc-win","name":"PC-Info-B","x":740,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.30.21","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.30.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-Info-B</title></head><body><h1>Bienvenue sur PC-Info-B</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""}],"links":[{"a":["D3","Ethernet0"],"b":["D1","FastEthernet0/1"],"type":"straight"},{"a":["D4","Ethernet0"],"b":["D2","FastEthernet0/1"],"type":"straight"},{"a":["D5","Ethernet0"],"b":["D1","FastEthernet0/2"],"type":"straight"},{"a":["D6","Ethernet0"],"b":["D2","FastEthernet0/2"],"type":"straight"},{"a":["D7","Ethernet0"],"b":["D1","FastEthernet0/3"],"type":"straight"},{"a":["D8","Ethernet0"],"b":["D2","FastEthernet0/3"],"type":"straight"},{"a":["D1","FastEthernet0/24"],"b":["D2","FastEthernet0/24"],"type":"cross"}],"notes":"","tpfile":{"v":1,"id":"cours-s06-vlan-trunk","type":"decouverte","diff":2,"cat":"Cours BTS SIO — S06","level":"BTS SIO SISR 1re année — Bloc 2 — S06","duration":"1 h","title":"S06 — VLAN et trunk entre deux commutateurs","desc":"Trois services (direction, commercial, informatique) répartis sur deux commutateurs : créer les VLAN, affecter les ports et configurer le trunk.","objectives":["Créer 3 VLAN et affecter les ports en mode access","Configurer un trunk entre deux commutateurs","Démontrer l'isolation entre VLAN et la communication dans un même VLAN à travers le trunk"],"steps":["Le plan est câblé et les PC sont adressés (VLAN 10 : <code>192.168.10.0/24</code>, VLAN 20 : <code>192.168.20.0/24</code>, VLAN 30 : <code>192.168.30.0/24</code>). Avant toute configuration, anticipez par écrit : <code>PC-Dir-A</code> joint-il <code>PC-Dir-B</code> ?","Sur <b>SW-A</b> : créez les VLAN 10 <code>DIRECTION</code>, 20 <code>COMMERCIAL</code>, 30 <code>INFORMATIQUE</code>, puis placez <code>fa0/1</code>, <code>fa0/2</code>, <code>fa0/3</code> en mode access dans les VLAN 10, 20 et 30.","Sur <b>SW-A</b> : <code>fa0/24</code> en <code>switchport mode trunk</code> et <code>switchport trunk allowed vlan 10,20,30</code>. Contrôlez avec <code>show vlan brief</code> et <code>show interfaces trunk</code>.","Reproduisez la même configuration sur <b>SW-B</b> (VLAN, ports, trunk).","Testez : même VLAN sur deux commutateurs (succès attendu), VLAN différents (échec attendu). Cliquez sur « Vérifier mon travail ».","Analyseur sur la liaison SW-A – SW-B : filtre <code>vlan.id == 10</code> pour voir l'étiquette 802.1Q."],"checks":[{"t":"cli","label":"SW-A : VLAN 10 DIRECTION, 20 COMMERCIAL et 30 INFORMATIQUE existent","dev":"SW-A","cmd":"show vlan brief","match":"10\\s+DIRECTION[\\s\\S]*20\\s+COMMERCIAL[\\s\\S]*30\\s+INFORMATIQUE"},{"t":"cli","label":"SW-A : fa0/1, fa0/2, fa0/3 dans les VLAN 10, 20 et 30","dev":"SW-A","cmd":"show vlan brief","match":"10\\s+DIRECTION.*Fa0/1[\\s\\S]*20\\s+COMMERCIAL.*Fa0/2[\\s\\S]*30\\s+INFORMATIQUE.*Fa0/3"},{"t":"cli","label":"SW-A : fa0/24 est un trunk","dev":"SW-A","cmd":"show interfaces trunk","match":"Fa0/24\\s+on"},{"t":"cli","label":"SW-B : VLAN 10, 20 et 30 existent","dev":"SW-B","cmd":"show vlan brief","match":"10\\s+DIRECTION[\\s\\S]*20\\s+COMMERCIAL[\\s\\S]*30\\s+INFORMATIQUE"},{"t":"cli","label":"SW-B : fa0/24 est un trunk","dev":"SW-B","cmd":"show interfaces trunk","match":"Fa0/24\\s+on"},{"t":"ping","label":"VLAN 10 : PC-Dir-A joint PC-Dir-B à travers le trunk","from":"PC-Dir-A","to":"192.168.10.21","wait":6000},{"t":"ping","label":"VLAN 20 : PC-Com-A joint PC-Com-B","from":"PC-Com-A","to":"192.168.20.21"},{"t":"ping","label":"VLAN 30 : PC-Info-A joint PC-Info-B","from":"PC-Info-A","to":"192.168.30.21"},{"t":"noping","label":"Isolation : PC-Dir-A ne joint pas PC-Info-B","from":"PC-Dir-A","to":"192.168.30.21"}],"solution":{"app":"simulateur-reseau","v":1,"opts":{"strictCables":false,"stpFast":true},"devices":[{"id":"D1","type":"switch","model":"sw-2960","name":"SW-A","x":260,"y":120,"powered":true,"cli":"!\nhostname SW-A\n!\nno ip domain-lookup\nspanning-tree mode pvst\nvlan 10\n name DIRECTION\n!\nvlan 20\n name COMMERCIAL\n!\nvlan 30\n name INFORMATIQUE\n!\ninterface FastEthernet0/1\n switchport access vlan 10\n switchport mode access\n!\ninterface FastEthernet0/2\n switchport access vlan 20\n switchport mode access\n!\ninterface FastEthernet0/3\n switchport access vlan 30\n switchport mode access\n!\ninterface FastEthernet0/24\n switchport mode trunk\n switchport trunk allowed vlan 10,20,30\n!\nline con 0\n logging synchronous\nline vty 0 4\n!","label":""},{"id":"D2","type":"switch","model":"sw-2960","name":"SW-B","x":600,"y":120,"powered":true,"cli":"!\nhostname SW-B\n!\nno ip domain-lookup\nspanning-tree mode pvst\nvlan 10\n name DIRECTION\n!\nvlan 20\n name COMMERCIAL\n!\nvlan 30\n name INFORMATIQUE\n!\ninterface FastEthernet0/1\n switchport access vlan 10\n switchport mode access\n!\ninterface FastEthernet0/2\n switchport access vlan 20\n switchport mode access\n!\ninterface FastEthernet0/3\n switchport access vlan 30\n switchport mode access\n!\ninterface FastEthernet0/24\n switchport mode trunk\n switchport trunk allowed vlan 10,20,30\n!\nline con 0\n logging synchronous\nline vty 0 4\n!","label":""},{"id":"D3","type":"pc","model":"pc-win","name":"PC-Dir-A","x":100,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.10.11","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.10.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-Dir-A</title></head><body><h1>Bienvenue sur PC-Dir-A</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""},{"id":"D4","type":"pc","model":"pc-win","name":"PC-Dir-B","x":500,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.10.21","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.10.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-Dir-B</title></head><body><h1>Bienvenue sur PC-Dir-B</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""},{"id":"D5","type":"pc","model":"pc-win","name":"PC-Com-A","x":220,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.20.11","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.20.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-Com-A</title></head><body><h1>Bienvenue sur PC-Com-A</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""},{"id":"D6","type":"pc","model":"pc-win","name":"PC-Com-B","x":620,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.20.21","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.20.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-Com-B</title></head><body><h1>Bienvenue sur PC-Com-B</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""},{"id":"D7","type":"pc","model":"pc-win","name":"PC-Info-A","x":340,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.30.11","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.30.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-Info-A</title></head><body><h1>Bienvenue sur PC-Info-A</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""},{"id":"D8","type":"pc","model":"pc-win","name":"PC-Info-B","x":740,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.30.21","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.30.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-Info-B</title></head><body><h1>Bienvenue sur PC-Info-B</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""}],"links":[{"a":["D3","Ethernet0"],"b":["D1","FastEthernet0/1"],"type":"straight"},{"a":["D4","Ethernet0"],"b":["D2","FastEthernet0/1"],"type":"straight"},{"a":["D5","Ethernet0"],"b":["D1","FastEthernet0/2"],"type":"straight"},{"a":["D6","Ethernet0"],"b":["D2","FastEthernet0/2"],"type":"straight"},{"a":["D7","Ethernet0"],"b":["D1","FastEthernet0/3"],"type":"straight"},{"a":["D8","Ethernet0"],"b":["D2","FastEthernet0/3"],"type":"straight"},{"a":["D1","FastEthernet0/24"],"b":["D2","FastEthernet0/24"],"type":"cross"}],"notes":""}}}