Prepare exersice experiments
This commit is contained in:
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user