Graphviz for Network Visualization
Graphviz for Network Visualization
Draw network diagrams from config files
Graphviz package converts dot(.) file based descriptions into graphs. It is not restricted to UML or any specific type of graphs and can be used for automating flowchart and Network diagrams as well. See Wiki
In this case, I am using the tool to convert the Network plan mentioned in the below post into a diagram for easy reference.
Build a network emulator using Libvirt and KVM
In this post, I demonstrate how to create a network emulation scenario using Libvirt, the Qemu/KVM hypervisor, and…www.brianlinkletter.com
On Ubuntu, do "apt install graphviz" and "apt install xdot"
Once package is installed. Run the below commands for generating PDF or PNG files based on your preference.
dot -Tpdf graph1.dot -o graph1.pdf
dot -Tpng graph1.dot -o graph1.png
The language is pretty simple, unless you wish to do any fancy stuff, then it would need deeper study, but for network diagrams, understanding one .dot file as mentioned below would be sufficient.
The resultant network plan looks like this:
References:
1. https://www.graphviz.org/doc/info/shapes.html
2. https://renenyffenegger.ch/notes/tools/Graphviz/examples/index
3. https://medium.com/p/9f45693d69d8/edit
Comments
Post a Comment