{
 "app": "simulateur-reseau",
 "v": 1,
 "opts": {
  "strictCables": false,
  "stpFast": true
 },
 "devices": [
  {
   "id": "D1",
   "type": "router",
   "model": "inet",
   "name": "FAI",
   "x": 900,
   "y": 200,
   "powered": true,
   "cli": "!\nhostname FAI\n!\nip dhcp pool WANPUB\n network 203.0.113.0 255.255.255.248\n default-router 203.0.113.1\n dns-server 198.51.100.53\n!\ninterface GigabitEthernet0/0\n ip address 203.0.113.1 255.255.255.248\n!\ninterface GigabitEthernet0/1\n ip address 198.51.100.1 255.255.255.0\n!\ninterface GigabitEthernet0/2\n no ip address\n shutdown\n!\ninterface GigabitEthernet0/3\n no ip address\n shutdown\n!\ninterface GigabitEthernet0/4\n no ip address\n shutdown\n!\ninterface GigabitEthernet0/5\n no ip address\n shutdown\n!\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "label": "Internet (FAI)"
  },
  {
   "id": "D2",
   "type": "switch",
   "model": "sw-8p",
   "name": "SW-FAI",
   "x": 1080,
   "y": 200,
   "powered": true,
   "cli": "!\nhostname SW-FAI\n!\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "label": ""
  },
  {
   "id": "D3",
   "type": "server",
   "model": "srv-linux",
   "name": "DNS-FAI",
   "x": 1240,
   "y": 110,
   "powered": true,
   "ifaces": [
    {
     "name": "ens33",
     "ip": "198.51.100.53",
     "mask": "255.255.255.0",
     "dhcp": false
    }
   ],
   "gw": "198.51.100.1",
   "dns": [],
   "domain": "",
   "allowIcmpEcho": true,
   "wifi": {
    "ssid": "",
    "key": ""
   },
   "hosts": {},
   "dhcpd": {
    "enabled": false,
    "excluded": [],
    "pools": []
   },
   "dnsd": {
    "enabled": true,
    "records": [
     {
      "name": "www.exemple.fr",
      "type": "A",
      "data": "198.51.100.80"
     }
    ],
    "forwarders": []
   },
   "httpd": {
    "enabled": false,
    "https": false,
    "pages": {
     "/": {
      "type": "text/html; charset=utf-8",
      "body": "<html><head><title>DNS-FAI</title></head><body><h1>Bienvenue sur DNS-FAI</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": "DNS public"
  },
  {
   "id": "D4",
   "type": "server",
   "model": "srv-linux",
   "name": "WWW",
   "x": 1240,
   "y": 300,
   "powered": true,
   "ifaces": [
    {
     "name": "ens33",
     "ip": "198.51.100.80",
     "mask": "255.255.255.0",
     "dhcp": false
    }
   ],
   "gw": "198.51.100.1",
   "dns": [],
   "domain": "",
   "allowIcmpEcho": true,
   "wifi": {
    "ssid": "",
    "key": ""
   },
   "hosts": {},
   "dhcpd": {
    "enabled": false,
    "excluded": [],
    "pools": []
   },
   "dnsd": {
    "enabled": false,
    "records": [],
    "forwarders": []
   },
   "httpd": {
    "enabled": true,
    "https": false,
    "pages": {
     "/": {
      "type": "text/html; charset=utf-8",
      "body": "<html><head><title>exemple.fr</title></head><body><h1>Bienvenue sur exemple.fr</h1><p>Si tu lis cette page, ton réseau fonctionne.</p></body></html>",
      "_custom": true
     }
    }
   },
   "mgmt": {
    "comms": [],
    "location": "",
    "contact": "",
    "syslogd": false,
    "trapd": false
   },
   "v6": {
    "ifs": [
     {
      "name": "ens33",
      "autoconf": true,
      "addrs": []
     }
    ],
    "statics": []
   },
   "label": "www.exemple.fr"
  },
  {
   "id": "D5",
   "type": "box",
   "model": "box",
   "name": "BOX",
   "x": 680,
   "y": 200,
   "powered": true,
   "cli": "!\nhostname BOX\n!\nip routing\nip name-server 198.51.100.53\nip dhcp pool LAN\n network 192.168.1.0 255.255.255.0\n default-router 192.168.1.1\n dns-server 192.168.1.1\n!\ninterface WAN\n no switchport\n ip address 203.0.113.2 255.255.255.248\n ip nat outside\n!\ninterface Vlan1\n ip address 192.168.1.1 255.255.255.0\n ip nat inside\n!\nip route 0.0.0.0 0.0.0.0 203.0.113.1\n!\nip nat inside source list null interface WAN overload\n!\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "label": ""
  },
  {
   "id": "D6",
   "type": "switch",
   "model": "sw-8p",
   "name": "SW1",
   "x": 480,
   "y": 200,
   "powered": true,
   "cli": "!\nhostname SW1\n!\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "label": ""
  },
  {
   "id": "D7",
   "type": "pc",
   "model": "pc-win",
   "name": "PC1",
   "x": 330,
   "y": 80,
   "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>PC1</title></head><body><h1>Bienvenue sur PC1</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": "PC2",
   "x": 330,
   "y": 320,
   "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>PC2</title></head><body><h1>Bienvenue sur PC2</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": "D9",
   "type": "pc",
   "model": "laptop",
   "name": "PC3",
   "x": 480,
   "y": 340,
   "powered": true,
   "ifaces": [
    {
     "name": "Ethernet0",
     "ip": "",
     "mask": "",
     "dhcp": true
    },
    {
     "name": "Wi-Fi",
     "ip": "",
     "mask": "",
     "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>PC3</title></head><body><h1>Bienvenue sur PC3</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": "D10",
   "type": "peripheral",
   "model": "printer",
   "name": "IMP1",
   "x": 480,
   "y": 60,
   "powered": true,
   "ifaces": [
    {
     "name": "LAN",
     "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>IMP1</title></head><body><h1>Bienvenue sur IMP1</h1><p>Serveur web du simulateur.</p></body></html>"
     }
    }
   },
   "mgmt": {
    "comms": [],
    "location": "",
    "contact": "",
    "syslogd": false,
    "trapd": false
   },
   "v6": {
    "ifs": [
     {
      "name": "LAN",
      "autoconf": true,
      "addrs": []
     }
    ],
    "statics": []
   },
   "label": ""
  }
 ],
 "links": [
  {
   "a": [
    "D1",
    "GigabitEthernet0/1"
   ],
   "b": [
    "D2",
    "Port1"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D3",
    "ens33"
   ],
   "b": [
    "D2",
    "Port2"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D4",
    "ens33"
   ],
   "b": [
    "D2",
    "Port3"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D5",
    "WAN"
   ],
   "b": [
    "D1",
    "GigabitEthernet0/0"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D6",
    "Port1"
   ],
   "b": [
    "D5",
    "LAN1"
   ],
   "type": "cross"
  },
  {
   "a": [
    "D7",
    "Ethernet0"
   ],
   "b": [
    "D6",
    "Port2"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D8",
    "Ethernet0"
   ],
   "b": [
    "D6",
    "Port3"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D9",
    "Ethernet0"
   ],
   "b": [
    "D6",
    "Port4"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D10",
    "LAN"
   ],
   "b": [
    "D6",
    "Port5"
   ],
   "type": "straight"
  }
 ],
 "notes": "S08 – Le réseau de la salle : on observe, on suit les câbles, on dessine le schéma."
}
