Network diagram tips · guide

AI Network Diagrams from NetBox: What Works

Can AI draw your network diagram? What language models get wrong, why NetBox plus a repeatable build fixes it, and where AI does help.

By Luke Ponio. Free to read, no sign-up. Every drawing comes from the sample sites in Network Diagrams by Industry.

Short answer

AI can draw a network diagram, but a language model fills gaps with what networks usually look like: links that don't exist, missing devices, guessed zones and a different layout each time. Keep the facts in NetBox and draw them with a deterministic build, so the same data always gives the same drawing and every shape links back to its record. Use AI to get data into NetBox and to ask questions of it, not as the source of truth.

Can AI draw my network diagram?

It can draw a network diagram. Ask a chat assistant for one and you get tidy boxes, a firewall in the middle and lines between them, in Mermaid, draw.io XML or a picture. Whether it is your network depends entirely on what it was given to read, and a model fills gaps with what networks usually look like.

That is fine for a whiteboard sketch. It is a problem for a drawing an auditor, an insurer or the on-call engineer will trust.

What goes wrong when a language model draws your network

These are the usual failure modes when people paste configs or descriptions into an assistant and ask for a diagram:

  • Links that don't exist. The model joins the core switch to every access switch because that is the usual shape, even where your cabling runs through a second closet.
  • Missing devices. Anything not in the prompt is not on the page: the out-of-band router, the vendor's 4G modem, the old switch in the plant room.
  • Zones by guesswork. Given VLAN names, it infers zones from words like "guest" or "pos". A VLAN called vlan30 lands wherever looks tidiest.
  • A different drawing every time. Ask twice and the layout, the labels and sometimes the links change. Two people comparing revisions can't tell a network change from a model change.
  • No trail back to the record. Nothing on the page says which device record, cable or prefix a shape came from, so nobody can check it.
  • Data leaving the building. Pasting configs into a hosted model sends addresses, hostnames and sometimes secrets to a third party, which many security policies forbid.

None of this is a reason to avoid AI. It is a reason not to make the model the source of truth.

The pattern that works: NetBox is the source, the drawing is a build

Split the job in two:

  1. NetBox holds the facts. Devices, roles, cables, VLANs, prefixes, sites and, once you add them, security zones as tags or a custom field. People, imports and discovery feed it, and every change is logged.
  2. A deterministic build draws them. The same NetBox data gives the same drawing, every time, with every shape linked back to the object it came from.

NetDiagrams is that second half. It reads NetBox with a read-only token and writes a draw.io drawing set per site. Every title block carries a revision taken from a hash of the NetBox data and settings, so two builds from the same data have the same revision and a changed NetBox gives a new one. A drift report lists what NetBox is missing or what disagrees with the template, and you fix NetBox, not the drawing. No model is involved and nothing leaves your machine except the read calls to your own NetBox.

Physical network page built from NetBox data, with racks, devices and labelled cables

The physical page of Book 1's sample plant, built from NetBox: every rack, port and cable label links back to its NetBox object.

Where AI does help

Keep the model on the parts where a wrong answer is cheap and a person checks it:

  • Getting data into NetBox. Turning a spreadsheet, a scanned rack sheet or show cdp neighbors output into NetBox import CSV is a good job for a model, as long as someone reviews the rows before import. The network documentation template gives the columns NetBox expects.
  • Asking questions of NetBox. Read-only MCP servers for NetBox let an assistant answer "which sites still have end-of-support switches?" from your own data. Give it a read-only token.
  • First drafts of the words. The overview page's plain-language summary, or a first pass at the reason column of a flow register. A person edits both.
  • Reading the drift report. Summarising a long list of gaps into "fix these five first" is safe: the facts stay in NetBox.

The rule of thumb: the model may suggest, NetBox decides, the build draws.

What AI can't tell you about segmentation

A drawing, however it is made, shows what should be allowed. Whether the firewall enforces it lives in the rule base, and a model reading a 4,000-line config will summarise it with confidence and miss the one rule that matters.

That check needs to be exact. SegAudit parses PAN-OS, FortiOS, Cisco ASA, Cisco FTD and Check Point exports on your own machine and lists every rule that opens a path your zones say shouldn't exist. The same input gives the same findings, which is what an auditor needs.

Try it

  1. Load NetBox, or check what is there. The free NetBox import chapter gives the order and a CSV per step.
  2. pip install netdiagrams, then netdiagrams. The first run asks for your NetBox URL and a read-only token.
  3. Open the .drawio files in draw.io and read the .drift.md report beside each one.

No NetBox yet? netdiagrams sample -o plant-a.drawio writes a finished drawing for a fictional plant. It is only there to show the result: the tool never uses sample data unless you ask for it.

Where to go next

NetBox is a trademark of its owner and is named here only to describe compatibility. NetDiagrams is not affiliated with NetBox or any AI vendor.

The books behind these drawings

Pick the field guide for your kind of site

Each book takes one industry from blank page to a drawing set an auditor accepts, with the sample site, worksheets and a free chapter to try first.

Cover: Draw Secure Manufacturing Network Diagrams

BOOK 1 · MANUFACTURING

Draw Secure Manufacturing Network Diagrams

From Plant Floor to Purdue Model

Purdue levels, IDMZ, cell/area zones and conduits, rings and HA pairs, drawn so the auditor and the night shift read the same page.

349 pages · $39

Cover: Draw Secure School Network Diagrams

BOOK 2 · EDUCATION

Draw Secure School Network Diagrams

From Classroom to Campus Network

Staff, student, guest and building systems zones, Wi-Fi for thousands of Chromebooks, and the district WAN.

409 pages · $39

Cover: Draw Secure Warehouse Network Diagrams

BOOK 3 · WAREHOUSING AND LOGISTICS

Draw Secure Warehouse Network Diagrams

From Dock Door to Warehouse Wi-Fi

Conveyors, sorters, handhelds and AGVs, heavy Wi-Fi, and the dock, carrier and client connections.

387 pages · $39

Cover: Draw Secure Retail Network Diagrams

BOOK 4 · RETAIL

Draw Secure Retail Network Diagrams

From Point of Sale to PCI Segmentation

Cardholder data segmentation, POS, guest Wi-Fi and store IoT, from three stores to three hundred.

387 pages · $39

Cover: Draw Secure Small Office Network Diagrams

BOOK 5 · OFFICES

Draw Secure Small Office Network Diagrams

From Front Desk to Firewall

One firewall in the middle, MSP access, cloud and remote work, and branches, drawn for the insurer's questionnaire and the next MSP.

389 pages · $39

Cover: Draw Secure Bank and Credit Union Network Diagrams

BOOK 6 · BANKS AND CREDIT UNIONS

Draw Secure Bank and Credit Union Network Diagrams

From Teller Line to FFIEC Exam

Teller, wire room and card zones, the core processor's router, ATMs and alarm boxes, and branches, drawn for the examiner's request list.

376 pages · $39

Cover: Draw Secure Local Government Network Diagrams

BOOK 7 · LOCAL GOVERNMENT

Draw Secure Local Government Network Diagrams

From City Hall to CJIS Compliance

City hall, the police wing and CJIS, public Wi-Fi at the library and parks, closets in buildings you don't control, and water systems drawn as a boundary.

399 pages · $39

Cover: Draw Secure Hotel Network Diagrams

BOOK 8 · HOTELS AND HOSPITALITY

Draw Secure Hotel Network Diagrams

From Guest Room to Boiler Room

Front desk, restaurant and spa payments, guest and conference Wi-Fi, door locks and building systems, and the owner, brand and management company split.

381 pages · $39

Cover: Draw Secure Corporate Network Diagrams

BOOK 9 · CORPORATE HQ AND MULTI-SITE

Draw Secure Corporate Network Diagrams

From Campus Core to Branch WAN

VRFs and internal firewalls, campus fiber and risers, the data center, SD-WAN branches, and a chapter on law firms and the ethical wall.

385 pages · $39

Cover: Draw Secure Car Dealership Network Diagrams

BOOK 10 · CAR DEALERSHIPS

Draw Secure Car Dealership Network Diagrams

From Showroom to FTC Safeguards Rule

F&I and the credit file, the DMS outside your walls, shop diagnostic tools, lounge and lot Wi-Fi, and more rooftops, drawn for the FTC Safeguards Rule.

409 pages · $39