Skip to content
Graphviz (DOT) templates

BGP Peering

Inter-AS BGP with eBGP and iBGP sessions inside an AS.

Template previewGraphviz (DOT)
bgp R1 R1 AS 65001 R2 R2 AS 65001 R1--R2 iBGP R3 R3 AS 65001 R1--R3 iBGP E1 ISP-A AS 64512 R1--E1 eBGP R2--R3 iBGP E2 ISP-B AS 64513 R3--E2 eBGP

What this template contains

Graph
Undirected
Edges
5
Source
14 lines

Make it your own.

graph bgp {
  graph [bgcolor=transparent];
  node [shape=circle, style=filled, fillcolor="#dbeafe", fontname=Inter, fontsize=10];

  R1 [label="R1\nAS 65001"];
  R2 [label="R2\nAS 65001"];
  R3 [label="R3\nAS 65001"];
  E1 [label="ISP-A\nAS 64512", fillcolor="#fef3c7"];
  E2 [label="ISP-B\nAS 64513", fillcolor="#fef3c7"];

  R1 -- R2 [label="iBGP"];
  R1 -- R3 [label="iBGP"];
  R2 -- R3 [label="iBGP"];
  R1 -- E1 [label="eBGP"];
  R3 -- E2 [label="eBGP"];
}