Skip to main content

NwDiag

NwDiag creates network diagrams from networks, addresses, and hosts.

Use this type

Use NwDiag to show network segments and the devices that connect to them.

Source format

The source format is NwDiag text. Enter the source in the diagram.zip editor.

Syntax essentials

  • Put the diagram in an nwdiag block.
  • Declare each network in a network block.
  • Declare hosts inside a network.
  • Use attributes for addresses and labels.

Example

nwdiag {
network public {
address = "192.0.2.0/24";
gateway [address = "192.0.2.1"];
}
}
Rendered exampleDrag to pan. Use the wheel or controls to zoom.
100%
This view uses the live diagram.zip renderer.

Upstream reference

NwDiag documentation