{
 "app": "simulateur-reseau",
 "v": 1,
 "opts": {
  "strictCables": false,
  "stpFast": true
 },
 "devices": [
  {
   "id": "D1",
   "type": "router",
   "model": "r-2911",
   "name": "R1",
   "x": 300,
   "y": 40,
   "powered": true,
   "cli": "!\nhostname R1\n!\ninterface GigabitEthernet0/0\n no ip address\n!\ninterface GigabitEthernet0/1\n ip address 10.0.0.1 255.255.255.252\n shutdown\n!\ninterface GigabitEthernet0/2\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!\ninterface GigabitEthernet0/0.20\n encapsulation dot1Q 20\n ip address 192.168.20.1 255.255.255.0\n!\nip route 172.16.0.0 255.255.255.0 10.0.0.2\n!\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "startup": "!\nhostname R1\n!\ninterface GigabitEthernet0/0\n no ip address\n!\ninterface GigabitEthernet0/1\n ip address 10.0.0.1 255.255.255.252\n shutdown\n!\ninterface GigabitEthernet0/2\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!\ninterface GigabitEthernet0/0.20\n encapsulation dot1Q 20\n ip address 192.168.20.1 255.255.255.0\n!\nip route 172.16.0.0 255.255.255.0 10.0.0.2\n!\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "label": "Routeur d'étage"
  },
  {
   "id": "D2",
   "type": "router",
   "model": "r-2911",
   "name": "R2",
   "x": 600,
   "y": 40,
   "powered": true,
   "cli": "!\nhostname R2\n!\ninterface GigabitEthernet0/0\n ip address 172.16.0.1 255.255.255.0\n!\ninterface GigabitEthernet0/1\n ip address 10.0.0.2 255.255.255.252\n!\ninterface GigabitEthernet0/2\n no ip address\n shutdown\n!\nip route 192.168.10.0 255.255.255.0 10.0.0.1\n!\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "startup": "!\nhostname R2\n!\ninterface GigabitEthernet0/0\n ip address 172.16.0.1 255.255.255.0\n!\ninterface GigabitEthernet0/1\n ip address 10.0.0.2 255.255.255.252\n!\ninterface GigabitEthernet0/2\n no ip address\n shutdown\n!\nip route 192.168.10.0 255.255.255.0 10.0.0.1\n!\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "label": "Routeur serveurs"
  },
  {
   "id": "D3",
   "type": "switch",
   "model": "sw-2960",
   "name": "SW1",
   "x": 150,
   "y": 160,
   "powered": true,
   "cli": "!\nhostname SW1\n!\nspanning-tree mode pvst\nvlan 10\n name COMPTA\n!\nvlan 20\n name ATELIER\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/24\n switchport mode trunk\n switchport trunk allowed vlan 10,20\n!\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "startup": "!\nhostname SW1\n!\nspanning-tree mode pvst\nvlan 10\n name COMPTA\n!\nvlan 20\n name ATELIER\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/24\n switchport mode trunk\n switchport trunk allowed vlan 10,20\n!\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "label": ""
  },
  {
   "id": "D4",
   "type": "pc",
   "model": "pc-linux",
   "name": "PC10",
   "x": 40,
   "y": 300,
   "powered": true,
   "ifaces": [
    {
     "name": "ens33",
     "ip": "192.168.10.10",
     "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>PC10</title></head><body><h1>Bienvenue sur PC10</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": "COMPTA"
  },
  {
   "id": "D5",
   "type": "pc",
   "model": "pc-linux",
   "name": "PC20",
   "x": 260,
   "y": 300,
   "powered": true,
   "ifaces": [
    {
     "name": "ens33",
     "ip": "192.168.20.10",
     "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>PC20</title></head><body><h1>Bienvenue sur PC20</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": "ATELIER"
  },
  {
   "id": "D6",
   "type": "pc",
   "model": "pc-linux",
   "name": "SRV",
   "x": 760,
   "y": 160,
   "powered": true,
   "ifaces": [
    {
     "name": "ens33",
     "ip": "172.16.0.10",
     "mask": "255.255.255.0",
     "dhcp": false
    }
   ],
   "gw": "172.16.0.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>SRV</title></head><body><h1>Bienvenue sur SRV</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": "Serveur"
  }
 ],
 "links": [
  {
   "a": [
    "D4",
    "ens33"
   ],
   "b": [
    "D3",
    "FastEthernet0/1"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D5",
    "ens33"
   ],
   "b": [
    "D3",
    "FastEthernet0/2"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D3",
    "FastEthernet0/24"
   ],
   "b": [
    "D1",
    "GigabitEthernet0/0"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D1",
    "GigabitEthernet0/1"
   ],
   "b": [
    "D2",
    "GigabitEthernet0/1"
   ],
   "type": "cross"
  },
  {
   "a": [
    "D2",
    "GigabitEthernet0/0"
   ],
   "b": [
    "D6",
    "ens33"
   ],
   "type": "cross"
  }
 ],
 "notes": "CCNA 7-01 – Réseau en panne : deux VLAN, un routeur sur un bras (R1), une liaison vers R2 et un serveur. Trois pannes indépendantes à trouver méthodiquement (couche 1/2, couche 2, couche 3)."
}
