{
 "app": "simulateur-reseau",
 "v": 1,
 "opts": {
  "strictCables": false,
  "stpFast": true
 },
 "devices": [
  {
   "id": "D1",
   "type": "switch",
   "model": "sw-2960",
   "name": "SW1",
   "x": 330,
   "y": 190,
   "powered": true,
   "cli": "!\nhostname SW1\n!\nspanning-tree mode pvst\nvlan 10\n name DIRECTION\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 20\n switchport mode access\n!\ninterface GigabitEthernet0/1\n switchport mode trunk\n switchport trunk allowed vlan 10\n!\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "label": "SW1 (bâtiment A)"
  },
  {
   "id": "D2",
   "type": "switch",
   "model": "sw-2960",
   "name": "SW2",
   "x": 620,
   "y": 190,
   "powered": true,
   "cli": "!\nhostname SW2\n!\nspanning-tree mode pvst\nvlan 10\n name DIRECTION\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 20\n switchport mode access\n!\nline con 0\n logging synchronous\nline vty 0 4\n!",
   "label": "SW2 (bâtiment B)"
  },
  {
   "id": "D3",
   "type": "pc",
   "model": "pc-win",
   "name": "PC1",
   "x": 120,
   "y": 70,
   "powered": true,
   "ifaces": [
    {
     "name": "Ethernet0",
     "ip": "192.168.10.11",
     "mask": "255.255.255.0",
     "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>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": "Direction A"
  },
  {
   "id": "D4",
   "type": "pc",
   "model": "pc-win",
   "name": "PC2",
   "x": 120,
   "y": 310,
   "powered": true,
   "ifaces": [
    {
     "name": "Ethernet0",
     "ip": "192.168.20.11",
     "mask": "255.255.255.0",
     "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>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": "Atelier A"
  },
  {
   "id": "D5",
   "type": "pc",
   "model": "pc-win",
   "name": "PC3",
   "x": 840,
   "y": 70,
   "powered": true,
   "ifaces": [
    {
     "name": "Ethernet0",
     "ip": "192.168.10.12",
     "mask": "255.255.255.0",
     "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": "Direction B"
  },
  {
   "id": "D6",
   "type": "pc",
   "model": "pc-win",
   "name": "PC4",
   "x": 840,
   "y": 310,
   "powered": true,
   "ifaces": [
    {
     "name": "Ethernet0",
     "ip": "192.168.20.12",
     "mask": "255.255.255.0",
     "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>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": "Atelier B"
  }
 ],
 "links": [
  {
   "a": [
    "D3",
    "Ethernet0"
   ],
   "b": [
    "D1",
    "FastEthernet0/1"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D4",
    "Ethernet0"
   ],
   "b": [
    "D1",
    "FastEthernet0/2"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D5",
    "Ethernet0"
   ],
   "b": [
    "D2",
    "FastEthernet0/1"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D6",
    "Ethernet0"
   ],
   "b": [
    "D2",
    "FastEthernet0/2"
   ],
   "type": "straight"
  },
  {
   "a": [
    "D1",
    "GigabitEthernet0/1"
   ],
   "b": [
    "D2",
    "GigabitEthernet0/1"
   ],
   "type": "cross"
  }
 ],
 "notes": "Première S09 – Dépannage : le trunk est configuré sur SW1 seulement (SW2 est resté en access) et SW1 n'autorise que le VLAN 10 sur son trunk."
}
