{
 "app": "simulateur-reseau",
 "v": 1,
 "opts": {
  "strictCables": false,
  "stpFast": true
 },
 "devices": [
  {
   "id": "D1",
   "type": "switch",
   "model": "sw-2960",
   "name": "SW1",
   "x": 330,
   "y": 180,
   "powered": true,
   "cli": "!\nhostname SW1\n!\nspanning-tree mode pvst\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "label": "Switch"
  },
  {
   "id": "D2",
   "type": "router",
   "model": "r-2911",
   "name": "R1",
   "x": 330,
   "y": 20,
   "powered": true,
   "cli": "!\nhostname R1\n!\nip dhcp excluded-address 192.168.10.1 192.168.10.49\nip dhcp pool BUREAU\n network 192.168.10.0 255.255.255.0\n default-router 192.168.10.1\n dns-server 192.168.30.10\n!\ninterface GigabitEthernet0/0\n no ip address\n!\ninterface GigabitEthernet0/1\n no ip address\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!\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!",
   "startup": "!\nhostname R1\n!\nip dhcp excluded-address 192.168.10.1 192.168.10.49\nip dhcp pool BUREAU\n network 192.168.10.0 255.255.255.0\n default-router 192.168.10.1\n dns-server 192.168.30.10\n!\ninterface GigabitEthernet0/0\n no ip address\n!\ninterface GigabitEthernet0/1\n no ip address\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!\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": "Routeur"
  },
  {
   "id": "D3",
   "type": "pc",
   "model": "pc-win",
   "name": "PC-CPT",
   "x": 80,
   "y": 60,
   "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-CPT</title></head><body><h1>Bienvenue sur PC-CPT</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": "Bureau"
  },
  {
   "id": "D4",
   "type": "pc",
   "model": "pc-win",
   "name": "PC-COM",
   "x": 80,
   "y": 300,
   "powered": true,
   "ifaces": [
    {
     "name": "Ethernet0",
     "ip": "192.168.20.11",
     "mask": "255.255.255.0",
     "dhcp": false
    }
   ],
   "gw": "192.168.20.1",
   "dns": [
    "192.168.30.10"
   ],
   "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</title></head><body><h1>Bienvenue sur PC-COM</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": "Atelier"
  },
  {
   "id": "D5",
   "type": "server",
   "model": "srv-linux",
   "name": "SRV",
   "x": 600,
   "y": 180,
   "powered": true,
   "ifaces": [
    {
     "name": "ens33",
     "ip": "192.168.30.10",
     "mask": "255.255.255.0",
     "dhcp": false
    }
   ],
   "gw": "192.168.30.1",
   "dns": [
    "192.168.30.10"
   ],
   "domain": "",
   "allowIcmpEcho": true,
   "wifi": {
    "ssid": "",
    "key": ""
   },
   "hosts": {},
   "dhcpd": {
    "enabled": false,
    "excluded": [],
    "pools": []
   },
   "dnsd": {
    "enabled": true,
    "records": [
     {
      "name": "intranet.delmas.local",
      "type": "A",
      "data": "192.168.30.10"
     }
    ],
    "forwarders": []
   },
   "httpd": {
    "enabled": true,
    "https": false,
    "pages": {
     "/": {
      "type": "text/html; charset=utf-8",
      "body": "<html><body><h1>Intranet Delmas</h1></body></html>",
      "_custom": true
     }
    }
   },
   "mgmt": {
    "comms": [],
    "location": "",
    "contact": "",
    "syslogd": false,
    "trapd": false
   },
   "v6": {
    "ifs": [
     {
      "name": "ens33",
      "autoconf": true,
      "addrs": []
     }
    ],
    "statics": []
   },
   "label": "Serveur intranet"
  }
 ],
 "links": [
  {
   "a": [
    "D3",
    "Ethernet0"
   ],
   "b": [
    "D1",
    "FastEthernet0/1"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D5",
    "ens33"
   ],
   "b": [
    "D1",
    "FastEthernet0/2"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D4",
    "Ethernet0"
   ],
   "b": [
    "D1",
    "FastEthernet0/3"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D2",
    "GigabitEthernet0/0"
   ],
   "b": [
    "D1",
    "FastEthernet0/24"
   ],
   "type": "straight"
  }
 ],
 "notes": "Terminale S12 – Le switch de la PME Delmas a grillé. Son remplaçant, identique, est déjà câblé aux mêmes ports mais VIERGE. À faire : restaurer la configuration à partir de la sauvegarde fournie dans le TP, vérifier que tout est revenu à la normale (4 tests), sauvegarder, rédiger le compte rendu."
}
