{"app":"simulateur-reseau","v":1,"opts":{"strictCables":false,"stpFast":true},"devices":[{"id":"D1","type":"switch","model":"sw-2960","name":"Switch","x":330,"y":110,"powered":true,"cli":"!\nhostname Switch\n!\nspanning-tree mode pvst\nline con 0\n logging synchronous\nline vty 0 4\n!","label":""},{"id":"D2","type":"pc","model":"pc-win","name":"PC-Alice","x":120,"y":320,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.10.10","mask":"255.255.255.0","dhcp":false}],"gw":"","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-Alice</title></head><body><h1>Bienvenue sur PC-Alice</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":"D3","type":"pc","model":"pc-win","name":"PC-Bob","x":330,"y":320,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.10.20","mask":"255.255.255.0","dhcp":false}],"gw":"","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-Bob</title></head><body><h1>Bienvenue sur PC-Bob</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-Clara","x":540,"y":320,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.10.30","mask":"255.255.255.0","dhcp":false}],"gw":"","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-Clara</title></head><body><h1>Bienvenue sur PC-Clara</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":["D2","Ethernet0"],"b":["D1","FastEthernet0/1"],"type":"straight"},{"a":["D3","Ethernet0"],"b":["D1","FastEthernet0/2"],"type":"straight"},{"a":["D4","Ethernet0"],"b":["D1","FastEthernet0/3"],"type":"straight"}],"notes":"","tpfile":{"v":1,"id":"cours-s05-commutation","type":"decouverte","diff":1,"cat":"Cours BTS SIO — S05","level":"BTS SIO SISR 1re année — Bloc 2 — S05","duration":"45 min","title":"S05 — Premiers réglages et sécurisation d'un commutateur Cisco","desc":"Un commutateur neuf et trois postes du cabinet TechPro : nommer l'équipement, afficher un avertissement légal, protéger les accès (privilégié, console, VTY), chiffrer les mots de passe et sauvegarder.","objectives":["Naviguer entre les modes User EXEC, Privileged EXEC et Global Config","Appliquer une configuration de base sécurisée","Vérifier et sauvegarder la configuration (running-config, startup-config)"],"steps":["Ouvrez le terminal du commutateur (double-clic). Il est au prompt <code>Switch&gt;</code>. Passez en mode privilégié avec <code>enable</code>, puis en configuration globale avec <code>configure terminal</code>.","Nommez-le <code>SW_BUREAU_01</code> (<code>hostname</code>) et désactivez la résolution de noms (<code>no ip domain-lookup</code>).","Ajoutez un avertissement : <code>banner motd #ACCES RESERVE AU PERSONNEL AUTORISE#</code>.","Protégez le mode privilégié : <code>enable secret Cisco@2024</code>.","Protégez la console : <code>line console 0</code>, <code>password Console@2024</code>, <code>login</code>, <code>exec-timeout 5 0</code>. Puis les accès distants : <code>line vty 0 15</code>, <code>password Vty@2024</code>, <code>login</code>, <code>exec-timeout 5 0</code>.","Chiffrez les mots de passe en clair : <code>service password-encryption</code>. Terminez par <code>end</code>.","Vérifiez avec <code>show running-config</code> (lisez ligne par ligne) puis sauvegardez avec <code>copy running-config startup-config</code>. Cliquez sur « Vérifier mon travail »."],"checks":[{"t":"cli","label":"Le commutateur s'appelle SW_BUREAU_01","dev":"SW_BUREAU_01","cmd":"show running-config","match":"hostname SW_BUREAU_01"},{"t":"cli","label":"La résolution de noms est désactivée","dev":["SW_BUREAU_01","Switch"],"cmd":"show running-config","match":"no ip domain-lookup"},{"t":"cli","label":"Un banner motd est configuré","dev":["SW_BUREAU_01","Switch"],"cmd":"show running-config","match":"banner motd .*AUTORIS"},{"t":"cli","label":"enable secret est défini (haché, pas enable password)","dev":["SW_BUREAU_01","Switch"],"cmd":"show running-config","match":"enable secret 5"},{"t":"cli","label":"Console protégée : mot de passe, login et exec-timeout","dev":["SW_BUREAU_01","Switch"],"cmd":"show running-config","match":"line con 0[\\s\\S]*?password[\\s\\S]*?login"},{"t":"cli","label":"Lignes VTY 0 15 protégées par mot de passe et login","dev":["SW_BUREAU_01","Switch"],"cmd":"show running-config","match":"line vty 0 15[\\s\\S]*?password[\\s\\S]*?login"},{"t":"cli","label":"service password-encryption est actif (mots de passe en type 7)","dev":["SW_BUREAU_01","Switch"],"cmd":"show running-config","match":"\\nservice password-encryption[\\s\\S]*password 7"},{"t":"cli","label":"La configuration est sauvegardée dans la startup-config","dev":["SW_BUREAU_01","Switch"],"cmd":"show startup-config","match":"hostname SW_BUREAU_01"},{"t":"ping","label":"PC-Alice joint PC-Bob","from":"PC-Alice","to":"192.168.10.20"},{"t":"ping","label":"PC-Alice joint PC-Clara","from":"PC-Alice","to":"192.168.10.30"}],"solution":{"app":"simulateur-reseau","v":1,"opts":{"strictCables":false,"stpFast":true},"devices":[{"id":"D1","type":"switch","model":"sw-2960","name":"SW_BUREAU_01","x":330,"y":110,"powered":true,"cli":"!\nservice password-encryption\n!\nhostname SW_BUREAU_01\n!\nenable secret Cisco@2024\n!\nno ip domain-lookup\nspanning-tree mode pvst\nbanner motd ^CACCES RESERVE AU PERSONNEL AUTORISE^C\n!\nline con 0\n exec-timeout 5 0\n password Console@2024\n login\n logging synchronous\nline vty 0 15\n exec-timeout 5 0\n password Vty@2024\n login\n!","startup":"!\nservice password-encryption\n!\nhostname SW_BUREAU_01\n!\nenable secret Cisco@2024\n!\nno ip domain-lookup\nspanning-tree mode pvst\nbanner motd ^CACCES RESERVE AU PERSONNEL AUTORISE^C\n!\nline con 0\n exec-timeout 5 0\n password Console@2024\n login\n logging synchronous\nline vty 0 15\n exec-timeout 5 0\n password Vty@2024\n login\n!","label":""},{"id":"D2","type":"pc","model":"pc-win","name":"PC-Alice","x":120,"y":320,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.10.10","mask":"255.255.255.0","dhcp":false}],"gw":"","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-Alice</title></head><body><h1>Bienvenue sur PC-Alice</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":"D3","type":"pc","model":"pc-win","name":"PC-Bob","x":330,"y":320,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.10.20","mask":"255.255.255.0","dhcp":false}],"gw":"","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-Bob</title></head><body><h1>Bienvenue sur PC-Bob</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-Clara","x":540,"y":320,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.10.30","mask":"255.255.255.0","dhcp":false}],"gw":"","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-Clara</title></head><body><h1>Bienvenue sur PC-Clara</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":["D2","Ethernet0"],"b":["D1","FastEthernet0/1"],"type":"straight"},{"a":["D3","Ethernet0"],"b":["D1","FastEthernet0/2"],"type":"straight"},{"a":["D4","Ethernet0"],"b":["D1","FastEthernet0/3"],"type":"straight"}],"notes":""}}}