Skip to content
Graphviz (DOT) templates

Network Topology (Graphviz)

A simple LAN behind a router.

Template previewGraphviz (DOT)
Net Internet Internet Router Router Internet->Router Switch Switch Router->Switch PC 1 PC 1 Switch->PC 1 PC 2 PC 2 Switch->PC 2 Server Server Switch->Server Printer Printer Switch->Printer

What this template contains

Graph
Directed
Edges
6
Source
13 lines

Make it your own.

digraph Net {
  rankdir=TB;
  node [fontname="Inter"];
  Internet [shape=cloud];
  Router [shape=box, style=filled, fillcolor="#fde68a"];
  Switch [shape=box, style=filled, fillcolor="#bbf7d0"];
  Internet -> Router;
  Router -> Switch;
  Switch -> "PC 1";
  Switch -> "PC 2";
  Switch -> "Server";
  Switch -> "Printer";
}