Files
2026-09-26 20:36:10 +03:00

95 lines
1.9 KiB
JSON

{
"nodes": [ {
"name": "h1",
"type": "host",
"interfaces": {
"net0": {
"addressing": "dhcp"
}
}
}, {
"name": "h2",
"type": "host",
"interfaces": {
"net0": {
"addressing": "dhcp"
}
}
}, {
"name": "h3",
"type": "host",
"interfaces": {
"net0": {
"addressing": "static",
"address": "192.168.2.10/24",
"gateway": "192.168.2.1"
}
}
}, {
"name": "s1",
"type": "switch"
}, {
"name": "s2",
"type": "switch"
}, {
"name": "r0",
"type": "router",
"interfaces": {
"netA": {
"addressing": "static",
"address": "192.168.1.1/24"
},
"netB": {
"addressing": "static",
"address": "192.168.2.1/24"
}
},
"settings": {
"ip_forward": true,
"rp_filter": false
}
}
],
"links": [ {
"endpoints": [
{ "node": "h1", "interface": "net0" },
{ "node": "s1", "interface": "auto" }
]
}, {
"endpoints": [
{ "node": "h2", "interface": "net0" },
{ "node": "s1", "interface": "auto" }
]
}, {
"endpoints": [
{ "node": "h3", "interface": "net0" },
{ "node": "s2", "interface": "auto" }
]
}, {
"endpoints": [
{ "node": "r0", "interface": "netA" },
{ "node": "s1", "interface": "auto" }
]
}, {
"endpoints": [
{ "node": "r0", "interface": "netB" },
{ "node": "s2", "interface": "auto" }
]
}
],
"services": [ {
"type": "dhcp-server",
"node": "r0",
"interface": "netA",
"settings": {
"range": {
"start": "192.168.1.100",
"end": "192.168.1.200"
},
"gateway": "192.168.1.1"
}
}
]
}