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
nwdiagblock. - Declare each network in a
networkblock. - 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.