【发布时间】:2019-02-17 16:08:39
【问题描述】:
digraph G {
node [fontsize=8 margin=".1,.01" width=.5 height=.5 shape=box]
edge [fontsize=8]
rankdir=LR;
ranksep = .25;
nodesep= .5;
{
subgraph cluster0 {
label = "VMWare";
{
subgraph cluster3{
style = dashed;
color=red;
label = "ESX";
VM1
[
shape = rectangle
label = "Virtual Machine 1"
]
VPN_NIC [shape = rectangle label="Physical NIC\nPromiscuous mode ON" style=rounded]
VM1 -> VPN_NIC [style=dotted];
}
}
edge [dir=none]
INT_NET [label = "Internal Network"];
VPN_NIC -> INT_NET;
}
}
}
我想让名为 Physical NIC 的组件重叠在 ESXi 边界线上。 也许在展示网络图时会出现这种需求——尤其是与内部网络和外部网络连接的桥梁。
【问题讨论】:
-
能否请edit 提供您编写的一些代码示例以尝试创建它?
-
感谢@thesecretmaster 更新了我的代码,但到目前为止,我可以将节点放在集群内或集群外。
-
遗憾的是,我对 graphviz 了解不多,我只是想让知道的人更容易回答您的问题。
标签: networking graphviz diagram venn-diagram