|
|
```json
|
|
|
{
|
|
|
"topology": {
|
|
|
"network": [
|
|
|
{
|
|
|
"name": "ACME",
|
|
|
"description": "High-level view of ACME network.",
|
|
|
"node": [
|
|
|
{
|
|
|
"name": "R1",
|
|
|
"type": "irf-topology:router",
|
|
|
"description": "Company backbone router.",
|
|
|
"configuration": {
|
|
|
"url": "r1-config.json",
|
|
|
"format": "JSON"
|
|
|
},
|
|
|
"interface": [
|
|
|
{
|
|
|
"name": "eth0",
|
|
|
"description": "Uplink to ISP."
|
|
|
},
|
|
|
{
|
|
|
"name": "eth1",
|
|
|
"description": "Protected segment connection.",
|
|
|
"connection": "R1-protected"
|
|
|
},
|
|
|
{
|
|
|
"name": "eth2",
|
|
|
"description": "DMZ connection.",
|
|
|
"connection": "R1-DMZ"
|
|
|
},
|
|
|
{
|
|
|
"name": "eth3",
|
|
|
"description": "Marketing dept. connection.",
|
|
|
"connection": "R1-marketing"
|
|
|
},
|
|
|
{
|
|
|
"name": "eth4",
|
|
|
"description": "Research dept. connection.",
|
|
|
"connection": "R1-research"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"name": "protected",
|
|
|
"type": "irf-topology:network",
|
|
|
"description": "Protected segment.",
|
|
|
"interface": [
|
|
|
{
|
|
|
"name": "R1-link",
|
|
|
"description": "Link to backbone router R1.",
|
|
|
"connection": "R1-protected"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"name": "DMZ",
|
|
|
"type": "irf-topology:network",
|
|
|
"description": "Demilitarized zone.",
|
|
|
"network-name": "DMZ",
|
|
|
"interface": [
|
|
|
{
|
|
|
"name": "R1-link",
|
|
|
"description": "Link to backbone router R1.",
|
|
|
"connection": "R1-DMZ",
|
|
|
"bind-to": {
|
|
|
"node": "FW2",
|
|
|
"interface": "eth0"
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"name": "marketing",
|
|
|
"type": "irf-topology:network",
|
|
|
"description": "Marketing department.",
|
|
|
"interface": [
|
|
|
{
|
|
|
"name": "R1-link",
|
|
|
"description": "Link to backbone router R1.",
|
|
|
"connection": "R1-marketing"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"name": "research",
|
|
|
"type": "irf-topology:network",
|
|
|
"description": "Research department.",
|
|
|
"interface": [
|
|
|
{
|
|
|
"name": "R1-link",
|
|
|
"description": "Link to backbone router R1.",
|
|
|
"connection": "R1-research"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
"link": [
|
|
|
{
|
|
|
"name": "R1-protected",
|
|
|
"type": "irf-topology:point-to-point",
|
|
|
"description": "Protected segment link."
|
|
|
},
|
|
|
{
|
|
|
"name": "R1-DMZ",
|
|
|
"type": "irf-topology:point-to-point",
|
|
|
"description": "DMZ link."
|
|
|
},
|
|
|
{
|
|
|
"name": "R1-marketing",
|
|
|
"type": "irf-topology:point-to-point",
|
|
|
"description": "Marketing dept. link."
|
|
|
},
|
|
|
{
|
|
|
"name": "R1-research",
|
|
|
"type": "irf-topology:point-to-point",
|
|
|
"description": "Research dept. link."
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"name": "DMZ",
|
|
|
"description": "Demilitarized zone.",
|
|
|
"node": [
|
|
|
{
|
|
|
"name": "FW2",
|
|
|
"type": "irf-topology:host",
|
|
|
"description": "Firewall for DMZ.",
|
|
|
"configuration": {
|
|
|
"url": "fw2-config.xml"
|
|
|
},
|
|
|
"interface": [
|
|
|
{
|
|
|
"name": "eth0",
|
|
|
"description": "External interface."
|
|
|
},
|
|
|
{
|
|
|
"name": "eth1",
|
|
|
"description": "Internal interface.",
|
|
|
"connection": "DMZ-internal"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
"link": [
|
|
|
{
|
|
|
"name": "DMZ-internal",
|
|
|
"type": "irf-topology:multi-access",
|
|
|
"description": "DMZ Ethernet"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
``` |