{"app":"simulateur-reseau","v":1,"opts":{"strictCables":false,"stpFast":true},"devices":[{"id":"D1","type":"switch","model":"sw-2960","name":"Switch","x":330,"y":150,"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":"router","model":"r-1941","name":"Router","x":330,"y":10,"powered":true,"cli":"!\nhostname Router\n!\ninterface GigabitEthernet0/0\n no ip address\n shutdown\n!\ninterface GigabitEthernet0/1\n no ip address\n shutdown\n!\nline con 0\n logging synchronous\nline vty 0 4\n!","label":""},{"id":"D3","type":"pc","model":"pc-win","name":"PC-INFO","x":100,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"","mask":"","dhcp":true}],"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-INFO</title></head><body><h1>Bienvenue sur PC-INFO</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","x":330,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"","mask":"","dhcp":true}],"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-DIR</title></head><body><h1>Bienvenue sur PC-DIR</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":"server","model":"srv-linux","name":"SRV-INFRA","x":560,"y":330,"powered":true,"ifaces":[{"name":"ens33","ip":"192.168.30.10","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.30.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":true,"excluded":[],"pools":[{"name":"VLAN10","net":3232238080,"mask":4294967040,"router":3232238081,"dns":[3232243210],"domain":"infra.local","lease":3600,"start":3232238180,"end":3232238280},{"name":"VLAN20","net":3232240640,"mask":4294967040,"router":3232240641,"dns":[3232243210],"domain":"infra.local","lease":3600,"start":3232240740,"end":3232240820}]},"dnsd":{"enabled":true,"records":[{"name":"ns1.infra.local","type":"A","data":"192.168.30.10"},{"name":"gw.infra.local","type":"A","data":"192.168.30.1"},{"name":"intranet.infra.local","type":"A","data":"192.168.10.50"}],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>SRV-INFRA</title></head><body><h1>Bienvenue sur SRV-INFRA</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"ens33","autoconf":true,"addrs":[]}],"statics":[]},"label":""}],"links":[{"a":["D3","Ethernet0"],"b":["D1","FastEthernet0/1"],"type":"straight"},{"a":["D4","Ethernet0"],"b":["D1","FastEthernet0/6"],"type":"straight"},{"a":["D5","ens33"],"b":["D1","FastEthernet0/11"],"type":"straight"},{"a":["D2","GigabitEthernet0/0"],"b":["D1","FastEthernet0/24"],"type":"straight"}],"notes":"","tpfile":{"v":1,"id":"cours-s09-intervlan-dhcp","type":"decouverte","diff":3,"cat":"Cours BTS SIO — S09","level":"BTS SIO SISR 1re année — Bloc 2 — S09","duration":"1 h 30","title":"S09 — Routage inter-VLAN et relais DHCP","desc":"Trois VLAN (Informatique, Direction, Serveurs), un routeur « on a stick » et un serveur DHCP/DNS situé dans le VLAN Serveurs : configurer le commutateur, les sous-interfaces et le relais DHCP.","objectives":["Créer les VLAN, affecter les ports et configurer le trunk vers le routeur","Configurer les sous-interfaces 802.1Q du routeur (une passerelle par VLAN)","Expliquer et configurer le relais DHCP (ip helper-address) pour un serveur situé dans un autre réseau"],"steps":["Le plan est câblé. Le serveur <code>SRV-INFRA</code> (192.168.30.10) est <b>déjà configuré</b> : DHCP pour les VLAN 10 (.100-.200) et 20 (.100-.180), DNS <code>infra.local</code>. Les clients <code>PC-INFO</code> (fa0/1) et <code>PC-DIR</code> (fa0/6) sont en DHCP. Constatez : ils n'obtiennent qu'une adresse 169.254.x.x (APIPA).","Sur <b>SW_ACCES</b> : VLAN 10 <code>Informatique</code>, 20 <code>Direction</code>, 30 <code>Serveurs</code> ; <code>fa0/1 - 5</code> en VLAN 10, <code>fa0/6 - 10</code> en VLAN 20, <code>fa0/11 - 15</code> en VLAN 30 (mode access) ; <code>fa0/24</code> en trunk (VLAN 10, 20, 30).","Sur <b>R1_INFRA</b> : <code>no shutdown</code> sur <code>gi0/0</code> ; sous-interfaces <code>gi0/0.10</code>, <code>.20</code>, <code>.30</code> avec <code>encapsulation dot1Q</code> et les passerelles <code>192.168.10.1</code>, <code>192.168.20.1</code>, <code>192.168.30.1</code> (masque /24).","Les clients sont dans un autre réseau que le serveur DHCP : ajoutez <code>ip helper-address 192.168.30.10</code> sur les sous-interfaces des VLAN 10 et 20 (pas sur le VLAN 30).","Sur les clients : <code>ipconfig /renew</code>, puis <code>ipconfig /all</code> (adresse, passerelle, serveur DHCP, DNS). Testez <code>nslookup ns1.infra.local</code> et <code>ping 192.168.30.10</code>.","Dans l'analyseur (liaison routeur – commutateur), filtre <code>dhcp</code> : comparez le Discover (diffusion) et le paquet relayé vers le serveur (unicast, champ giaddr). Cliquez sur « Vérifier mon travail »."],"checks":[{"t":"cli","label":"SW_ACCES : VLAN 10, 20 et 30 créés","dev":["SW_ACCES","Switch"],"cmd":"show vlan brief","match":"10\\s+Informatique[\\s\\S]*20\\s+Direction[\\s\\S]*30\\s+Serveurs"},{"t":"cli","label":"SW_ACCES : fa0/24 est un trunk","dev":["SW_ACCES","Switch"],"cmd":"show interfaces trunk","match":"Fa0/24\\s+on"},{"t":"cli","label":"R1_INFRA : sous-interfaces .10, .20 et .30 avec leurs passerelles","dev":["R1_INFRA","Router"],"cmd":"show ip interface brief","match":"\\.10\\s+192\\.168\\.10\\.1[\\s\\S]*\\.20\\s+192\\.168\\.20\\.1[\\s\\S]*\\.30\\s+192\\.168\\.30\\.1"},{"t":"cli","label":"R1_INFRA : relais DHCP (ip helper-address) sur les VLAN 10 et 20","dev":["R1_INFRA","Router"],"cmd":"show running-config","match":"\\.10\\n[\\s\\S]*?ip helper-address 192\\.168\\.30\\.10[\\s\\S]*\\.20\\n[\\s\\S]*?ip helper-address 192\\.168\\.30\\.10"},{"t":"cli","label":"PC-INFO obtient une adresse 192.168.10.100-200 par DHCP","dev":"PC-INFO","cmd":"ipconfig","match":"192\\.168\\.10\\.(1\\d\\d|200)\\b"},{"t":"cli","label":"PC-DIR obtient une adresse 192.168.20.100-180 par DHCP","dev":"PC-DIR","cmd":"ipconfig","match":"192\\.168\\.20\\.(1[0-7]\\d|180)\\b"},{"t":"cli","label":"PC-INFO résout ns1.infra.local","dev":"PC-INFO","cmd":"nslookup ns1.infra.local","match":"192\\.168\\.30\\.10"},{"t":"ping","label":"PC-INFO joint PC-DIR (routage inter-VLAN)","from":"PC-INFO","to":"192.168.20.1"}],"solution":{"app":"simulateur-reseau","v":1,"opts":{"strictCables":false,"stpFast":true},"devices":[{"id":"D1","type":"switch","model":"sw-2960","name":"SW_ACCES","x":330,"y":150,"powered":true,"cli":"!\nhostname SW_ACCES\n!\nspanning-tree mode pvst\nvlan 10\n name Informatique\n!\nvlan 20\n name Direction\n!\nvlan 30\n name Serveurs\n!\ninterface FastEthernet0/1\n switchport access vlan 10\n switchport mode access\n!\ninterface FastEthernet0/2\n switchport access vlan 10\n switchport mode access\n!\ninterface FastEthernet0/3\n switchport access vlan 10\n switchport mode access\n!\ninterface FastEthernet0/4\n switchport access vlan 10\n switchport mode access\n!\ninterface FastEthernet0/5\n switchport access vlan 10\n switchport mode access\n!\ninterface FastEthernet0/6\n switchport access vlan 20\n switchport mode access\n!\ninterface FastEthernet0/7\n switchport access vlan 20\n switchport mode access\n!\ninterface FastEthernet0/8\n switchport access vlan 20\n switchport mode access\n!\ninterface FastEthernet0/9\n switchport access vlan 20\n switchport mode access\n!\ninterface FastEthernet0/10\n switchport access vlan 20\n switchport mode access\n!\ninterface FastEthernet0/11\n switchport access vlan 30\n switchport mode access\n!\ninterface FastEthernet0/12\n switchport access vlan 30\n switchport mode access\n!\ninterface FastEthernet0/13\n switchport access vlan 30\n switchport mode access\n!\ninterface FastEthernet0/14\n switchport access vlan 30\n switchport mode access\n!\ninterface FastEthernet0/15\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":"router","model":"r-1941","name":"R1_INFRA","x":330,"y":10,"powered":true,"cli":"!\nhostname R1_INFRA\n!\ninterface GigabitEthernet0/0\n no ip address\n!\ninterface GigabitEthernet0/1\n no ip address\n shutdown\n!\ninterface GigabitEthernet0/0.10\n encapsulation dot1Q 10\n ip address 192.168.10.1 255.255.255.0\n ip helper-address 192.168.30.10\n!\ninterface GigabitEthernet0/0.20\n encapsulation dot1Q 20\n ip address 192.168.20.1 255.255.255.0\n ip helper-address 192.168.30.10\n!\ninterface GigabitEthernet0/0.30\n encapsulation dot1Q 30\n ip address 192.168.30.1 255.255.255.0\n!\nline con 0\n logging synchronous\nline vty 0 4\n!","label":""},{"id":"D3","type":"pc","model":"pc-win","name":"PC-INFO","x":100,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"","mask":"","dhcp":true}],"gw":"","dns":[],"domain":"infra.local","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</title></head><body><h1>Bienvenue sur PC-INFO</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","x":330,"y":330,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"","mask":"","dhcp":true}],"gw":"","dns":[],"domain":"infra.local","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</title></head><body><h1>Bienvenue sur PC-DIR</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":"server","model":"srv-linux","name":"SRV-INFRA","x":560,"y":330,"powered":true,"ifaces":[{"name":"ens33","ip":"192.168.30.10","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.30.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":true,"excluded":[],"pools":[{"name":"VLAN10","net":3232238080,"mask":4294967040,"router":3232238081,"dns":[3232243210],"domain":"infra.local","lease":3600,"start":3232238180,"end":3232238280},{"name":"VLAN20","net":3232240640,"mask":4294967040,"router":3232240641,"dns":[3232243210],"domain":"infra.local","lease":3600,"start":3232240740,"end":3232240820}]},"dnsd":{"enabled":true,"records":[{"name":"ns1.infra.local","type":"A","data":"192.168.30.10"},{"name":"gw.infra.local","type":"A","data":"192.168.30.1"},{"name":"intranet.infra.local","type":"A","data":"192.168.10.50"}],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>SRV-INFRA</title></head><body><h1>Bienvenue sur SRV-INFRA</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"ens33","autoconf":true,"addrs":[]}],"statics":[]},"label":""}],"links":[{"a":["D3","Ethernet0"],"b":["D1","FastEthernet0/1"],"type":"straight"},{"a":["D4","Ethernet0"],"b":["D1","FastEthernet0/6"],"type":"straight"},{"a":["D5","ens33"],"b":["D1","FastEthernet0/11"],"type":"straight"},{"a":["D2","GigabitEthernet0/0"],"b":["D1","FastEthernet0/24"],"type":"straight"}],"notes":""}}}