{
 "app": "simulateur-reseau",
 "v": 1,
 "opts": {
  "strictCables": false,
  "stpFast": true
 },
 "devices": [
  {
   "id": "D1",
   "type": "switch",
   "model": "sw-8p",
   "name": "SW1",
   "x": 380,
   "y": 170,
   "powered": true,
   "cli": "!\nhostname SW1\n!\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "label": ""
  },
  {
   "id": "D2",
   "type": "pc",
   "model": "pc-win",
   "name": "PC1",
   "x": 190,
   "y": 80,
   "powered": true,
   "ifaces": [
    {
     "name": "Ethernet0",
     "ip": "192.168.10.11",
     "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>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": "D3",
   "type": "pc",
   "model": "pc-win",
   "name": "PC2",
   "x": 190,
   "y": 260,
   "powered": true,
   "ifaces": [
    {
     "name": "Ethernet0",
     "ip": "192.168.10.12",
     "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>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": "D4",
   "type": "router",
   "model": "r-1941",
   "name": "R1",
   "x": 580,
   "y": 170,
   "powered": true,
   "cli": "!\nhostname R1\n!\ninterface GigabitEthernet0/0\n ip address 192.168.10.1 255.255.255.0\n!\ninterface GigabitEthernet0/1\n ip address 192.168.20.1 255.255.255.0\n!\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "label": ""
  },
  {
   "id": "D5",
   "type": "server",
   "model": "srv-linux",
   "name": "SRV2",
   "x": 780,
   "y": 170,
   "powered": true,
   "ifaces": [
    {
     "name": "ens33",
     "ip": "192.168.20.100",
     "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>SRV2</title></head><body><h1>Bienvenue sur SRV2</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": [
    "D2",
    "Ethernet0"
   ],
   "b": [
    "D1",
    "Port1"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D3",
    "Ethernet0"
   ],
   "b": [
    "D1",
    "Port2"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D1",
    "Port3"
   ],
   "b": [
    "D4",
    "GigabitEthernet0/0"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D5",
    "ens33"
   ],
   "b": [
    "D4",
    "GigabitEthernet0/1"
   ],
   "type": "cross"
  }
 ],
 "notes": "Première S03 – Deux réseaux reliés par un routeur : LAN 192.168.10.0/24 (PC1, PC2, SW1) et réseau serveur 192.168.20.0/24 (SRV2). On observe les trames avec l'analyseur."
}
