BTD 网络拓扑生成器
网络设备 JSON 配置
必填:包含 network_devices 和 network_connections 字段
{ "network_devices": [ { "hostname": "C1-GSR12016", "device_type": "core-router", "vendor": "Cisco", "model": "GSR12016", "loopback_interface": { "name": "Loopback0", "ip_address": "192.168.1.1/32" }, "interfaces": [ { "name": "TenGigabitEthernet0/0", "description": "TO-S1-7609", "ip_address": "10.10.1.1/24", "mtu": 1500, "pim_sparse_mode": true, "admin_status": "up", "oper_status": "up" }, { "name": "TenGigabitEthernet0/1", "description": "TO-S2-3750", "ip_address": "10.10.2.1/24", "mtu": 9216, "admin_status": "up", "oper_status": "up" } ], "routing_protocols": { "bgp": { "asn": 65001, "neighbors": [ { "neighbor_ip": "10.10.1.2", "remote_as": 65002, "description": "S1-7609" }, { "neighbor_ip": "10.10.2.2", "remote_as": 65003, "description": "S2-3750" } ] }, "ospf": { "process_id": "1", "areas": [ { "area_id": "0.0.0.0", "networks": ["10.10.1.0/24", "10.10.2.0/24"] }, { "area_id": "1.1.1.1", "networks": ["192.168.1.0/24"] } ] } } }, { "hostname": "S1-7609", "device_type": "switch", "vendor": "Cisco", "model": "7609", "loopback_interface": { "name": "Loopback0", "ip_address": "192.168.2.1/32" }, "interfaces": [ { "name": "TenGigabitEthernet3/1", "description": "FROM-C1-GSR12016", "ip_address": "10.10.1.2/24", "mtu": 1500, "admin_status": "up", "oper_status": "up" }, { "name": "TenGigabitEthernet3/2", "description": "TO-SW1-2960", "ip_address": "10.10.3.1/24", "mtu": 1500, "admin_status": "up", "oper_status": "up" } ], "routing_protocols": { "ospf": { "process_id": "1", "areas": [ { "area_id": "1.1.1.1", "networks": ["10.10.1.0/24", "10.10.3.0/24"] } ] } } }, { "hostname": "SW1-2960", "device_type": "switch", "vendor": "Cisco", "model": "2960", "loopback_interface": { "name": "Loopback0", "ip_address": "192.168.3.1/32" }, "interfaces": [ { "name": "GigabitEthernet0/1", "description": "FROM-S1-7609", "ip_address": "10.10.3.2/24", "mtu": 1500, "admin_status": "up", "oper_status": "up" } ] } ], "network_connections": [ { "source_device": "C1-GSR12016", "source_interface": "TenGigabitEthernet0/0", "destination_device": "S1-7609", "destination_interface": "TenGigabitEthernet3/1", "link_type": "fiber", "status": "active", "bandwidth": 10000 }, { "source_device": "S1-7609", "source_interface": "TenGigabitEthernet3/2", "destination_device": "SW1-2960", "destination_interface": "GigabitEthernet0/1", "link_type": "ethernet", "status": "active", "bandwidth": 1000 } ] }
样式自定义
打开样式配置(可选)
自定义节点、连线、集群的样式(如颜色、形状、字体)
生成 SVG 拓扑图(默认文件名:network_topology.svg)
拓扑图生成结果
在新标签页打开
下载 SVG 文件(network_topology.svg)
样式配置
{ "nodes": { "core_router": {"shape": "box", "style": "filled,rounded", "fillcolor": "#1a365d", "fontcolor": "white", "penwidth": "1.2", "width": "0.9", "height": "0.8"}, "edge_router": {"shape": "box", "style": "filled,rounded", "fillcolor": "#2c5282", "fontcolor": "white", "penwidth": "1.2", "width": "0.9", "height": "0.8"}, "switch": {"shape": "box", "style": "filled,rounded", "fillcolor": "#3182ce", "fontcolor": "white", "penwidth": "1.2", "width": "0.9", "height": "0.8"}, "other": {"shape": "ellipse", "style": "filled", "fillcolor": "#718096", "fontcolor": "white", "penwidth": "1.0"} }, "edges": { "physical": {"fontsize": "6", "color": "#2d3748", "penwidth": "1.2", "labeldistance": "1.0", "labelloc": "c"}, "bgp": {"fontsize": "5", "color": "#e6194b", "penwidth": "1.0", "style": "dashed", "labeldistance": "1.1", "labelloc": "c"} }, "clusters": { "core_router": {"fillcolor": "#e6f7ff", "color": "#1890ff", "style": "filled,rounded", "penwidth": "1.5", "margin": "0.5"}, "edge_router": {"fillcolor": "#fff2e6", "color": "#fa8c16", "style": "filled,rounded", "penwidth": "1.5", "margin": "0.5"}, "switch": {"fillcolor": "#f0f9eb", "color": "#52c41a", "style": "filled,rounded", "penwidth": "1.5", "margin": "0.5"} }, "graph": {"splines": "spline", "rankdir": "LR", "ranksep": "3.0", "nodesep": "1.0", "fontsize": "10", "fontname": "Arial"} }
取消
保存配置