{
 "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": "Switch de l'atelier"
  },
  {
   "id": "D7",
   "type": "pc",
   "model": "pc-win",
   "name": "PC1",
   "x": 260,
   "y": 40,
   "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": "Poste 1"
  },
  {
   "id": "D8",
   "type": "pc",
   "model": "pc-win",
   "name": "PC2",
   "x": 260,
   "y": 140,
   "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": "Poste 2"
  },
  {
   "id": "D9",
   "type": "pc",
   "model": "pc-win",
   "name": "PC3",
   "x": 260,
   "y": 260,
   "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>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": "Poste 3"
  },
  {
   "id": "D10",
   "type": "pc",
   "model": "pc-win",
   "name": "PC4",
   "x": 260,
   "y": 360,
   "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>PC4</title></head><body><h1>Bienvenue sur PC4</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": "Poste 4"
  },
  {
   "id": "D11",
   "type": "peripheral",
   "model": "printer",
   "name": "IMP1",
   "x": 480,
   "y": 380,
   "powered": true,
   "ifaces": [
    {
     "name": "LAN",
     "ip": "192.168.10.150",
     "mask": "255.255.255.0",
     "dhcp": false
    }
   ],
   "gw": "192.168.1.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>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": "Imprimante"
  },
  {
   "id": "D12",
   "type": "ap",
   "model": "ap-u6",
   "name": "AP1",
   "x": 680,
   "y": 380,
   "powered": true,
   "cli": "!\nhostname AP1\n!\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "ap": {
    "ssid": "ATELIER-INVITES",
    "key": "Invites#2027",
    "security": "WPA2"
   },
   "label": "Borne Wi-Fi"
  },
  {
   "id": "D13",
   "type": "pc",
   "model": "laptop",
   "name": "LAP-INV",
   "x": 680,
   "y": 500,
   "powered": true,
   "ifaces": [
    {
     "name": "Ethernet0",
     "ip": "",
     "mask": "",
     "dhcp": true
    },
    {
     "name": "Wi-Fi",
     "ip": "",
     "mask": "",
     "dhcp": true
    }
   ],
   "gw": "",
   "dns": [],
   "domain": "",
   "allowIcmpEcho": true,
   "wifi": {
    "ssid": "ATELIER-INVITES",
    "key": "Invites#2027"
   },
   "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>LAP-INV</title></head><body><h1>Bienvenue sur LAP-INV</h1><p>Serveur web du simulateur.</p></body></html>"
     }
    }
   },
   "mgmt": {
    "comms": [],
    "location": "",
    "contact": "",
    "syslogd": false,
    "trapd": false
   },
   "v6": {
    "ifs": [
     {
      "name": "Wi-Fi",
      "autoconf": true,
      "addrs": []
     }
    ],
    "statics": []
   },
   "label": "Portable invité"
  }
 ],
 "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",
    "Ethernet0"
   ],
   "b": [
    "D6",
    "Port5"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D11",
    "LAN"
   ],
   "b": [
    "D6",
    "Port6"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D12",
    "Eth0"
   ],
   "b": [
    "D5",
    "LAN2"
   ],
   "type": "cross"
  }
 ],
 "notes": "Projet A1, jalon de recette – panne introduite : l'imprimante a une adresse fixe dans un autre réseau (192.168.10.150)."
}
