Repository navigation
Lines
Type in the link panel says what a line carries:
| Type | Drawn as | Tag |
|---|---|---|
| trunk (802.1Q) | a double line | 802.1Q |
| Layer 2 (switched) | a line with a small filled square near each end, for the switch ports | L2 |
| Layer 3 (routed) | a line with a small open circle near each end, for the IP interfaces | L3 |
| L3 subinterface (802.1Q) | the double line of a trunk with those circles; put the subinterfaces or VLANs in the label | L3 subif |
| IPsec | a tinted band around the line, its edge solid | IPsec |
| VXLAN | a tinted band, its edge dashed | VXLAN |
| CAPWAP | a tinted band, its edge dotted (access point to wireless LAN controller) | CAPWAP |
| SD-WAN | dashed by default | SD-WAN |
| MPLS | short strokes across the line, like a label stack | MPLS |
Each shows its tag in bold in the label box in the middle, before the label. Choosing SD-WAN turns a solid line dashed, and leaving it turns it solid again; other dash choices are kept. Color, width, dashes and arrows still apply, and bulk editing sets the type of many lines at once.
SVG export draws the same. draw.io gets a double line (shape=link) for trunks and
L3 subinterfaces and a band (flexArrow) for tunnels, with the tag in the label (MPLS strokes and
the L2 and L3 end marks are left out), and reads the type back when pasted or opened again.
Below Type, Carried over adds what the line is transported over, as many layers as needed (for example VXLAN over IPsec, or VXLAN over IPsec over MPLS). Remove outer takes the outermost away.
Each carrier is a tinted band around what it carries, outermost widest, its edge solid or dashed by type (dashed VXLAN, dotted CAPWAP, long dashes SD-WAN), and the tag reads "VXLAN over IPsec". SVG and PNG draw the nested bands; draw.io gets one band as wide as the outermost and the full tag, and reads the layers back.
A label that would overlap another one slides along its line to a free spot (keeping its label margin to the ends where it can), on the canvas and in every export.
Placing a label yourself: drag it. It moves only along its line (to the point of the line nearest the mouse, around bends too) and stops before the ends, so it never covers a port. On a line bent through points it moves on through them, along the whole line, onto the next piece (up to a piece with a label of its own); only the line's real ends stop it. Hold Ctrl while dragging to line its middle up with devices (edges and centers), ports, points, texts and other line labels, with a guide. The spot is saved with the line and used in every export; other labels keep clear of it. Auto position in the link panel lets it be placed automatically again.
A click on a label selects its line, a double-click edits it.
Hiding a label: untick Show label to hide a line's label and its type tag, on screen and in exports (the text and type are kept; draw.io gets the label hidden). This also works for several lines at once, and typing a label in place shows it again.
Select a link and set arrows (arrow, open, diamond, circle, at either end), line style (solid, dashed, dotted), routing, width, color and label in the panel. New links use the style you set last.
Routing is straight, orthogonal (lines in lanes of their own where they run in parallel) or around objects (finds a way around boxes in between).
Select a line: round handles show at its ends. Drag one of them to move just that end: onto another port, a device's border (a port is made there), a patch panel's socket, a joint (a connection point other lines meet at), or empty space (a free end). The other lines at the old port or joint stay where they are, and the line stays selected. A port that was made automatically and has no line left is removed; named ports and ports from NetBox stay.
Without a line selected, dragging a port or a joint moves it, with all its lines.
Drag a line (not its ends) and a connection point appears where you grab it: the line is split there into two that both attach to the point, and the point follows the mouse. Each half keeps the line's style; the label and start arrow stay on the first half, the end arrow moves to the second.
- Bend again to add more corners, drag the point later to reroute, or drop it on a device border to route the line through a port there.
- Deleting a bend point (one with exactly two lines) joins them back into one line.
- A plain click still just selects the line.
A line bent through points is drawn as one line: where exactly two lines of the same type meet at a point, there are no arrowheads or end marks (the L2 squares, L3 circles), a tunnel's band runs on through the bend, and the type's tag shows once (with the label), on screen, in SVG/PNG and in draw.io. Lines of different types meeting at a point keep their ends.
Drag a device onto a line so the line runs through its middle: the line lights up green, and dropping the device there puts it in between. The line now ends at a new port on the device, and a second line with the same type, label and style goes on from another new port to where the first went (each port on the side facing its end; the start arrow stays on the first half, the end arrow moves to the second). One undo step.
Deleting a device joins its lines back up: lines with the same type and label pair up, and a pair that is the only one with that type and label becomes one line between their far ends. Lines that do not pair up are removed with the device.
Drop a line on empty space (or on a text or another line) and it ends at a free x,y connection point, so it looks attached to nothing, for example an arrow pointing at something outside the drawing. The point shows as a small ring in the editor and is never exported; draw.io gets a loose edge end there.
- Drag the ring to move the end. Drop it on a device border and it becomes a port there (or joins the port it is dropped on), with its lines attached; the device lights up while you hover.
- The reverse works too: pull a port that has lines off its device and it becomes a free point that keeps them.
- Ctrl+drag lines a point up with ports, Shift+drag from it draws another line, and lines dropped onto it attach to it.
- A point can carry a label (in the panel, or double-click the point). It sits just beyond the end of its line, continuing its direction, so an arrow ending at a point labeled "Internet" points at the word. The point stays invisible in exports, its label does not.
- A point can have a color (in the panel): it is then drawn as a dot in that color, also in exports and draw.io, and its label takes the color. Points without a color stay invisible in exports.
- + Point (Ctrl+Shift+P) adds a point on its own, for example to draw a free-standing arrow between two points. X/Y can be typed in the panel.
- Points live on layers, can be selected, duplicated and deleted. Deleting one removes its lines, unless it is a bend between exactly two.
- Very short drags onto empty space are ignored as slips.
Selecting a line lights up the ports at both of its ends, which makes them easy to find. Pointing at a line shows a note saying what it connects.
Stratagram · Source · Issues · Apache License 2.0
Getting it
Drawing
- Editing basics
- Device types and front panels
- Lines
- Auto layout
- Layers and sheets
- Deep zoom
- Frames
- Themes
Out and in
More