[pve-devel] [PATCH pve-docs] fix 3523: routed net: make example conform to image

Dylan Whyte d.whyte at proxmox.com
Wed Jul 21 17:43:49 CEST 2021


Changes the example given in section "3.3.5. Routed Configuration" so
that it's more in line with the accompanying network diagram.

Signed-off-by: Dylan Whyte <d.whyte at proxmox.com>
---
 images/default-network-setup-routed.svg | 126 +++++++++++++-----------
 images/default-network-setup-routed.tt  |   2 +-
 pve-network.adoc                        |  10 +-
 3 files changed, 75 insertions(+), 63 deletions(-)

diff --git a/images/default-network-setup-routed.svg b/images/default-network-setup-routed.svg
index c4ec80c..333e060 100644
--- a/images/default-network-setup-routed.svg
+++ b/images/default-network-setup-routed.svg
@@ -1,90 +1,102 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<!-- Generated by graphviz version 2.38.0 (20140413.2041)
+<!-- Generated by graphviz version 2.43.0 (0)
  -->
 <!-- Title: default_network_setup_routed Pages: 1 -->
 <svg width="571pt" height="360pt"
  viewBox="0.00 0.00 571.30 360.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-<g id="graph0" class="graph" transform="scale(0.978261 0.978261) rotate(0) translate(4 364)">
+<g id="graph0" class="graph" transform="scale(1.02 1.02) rotate(0) translate(4 364)">
 <title>default_network_setup_routed</title>
-<polygon fill="white" stroke="none" points="-4,4 -4,-364 580,-364 580,4 -4,4"/>
-<g id="clust1" class="cluster"><title>cluster_node1</title>
-<path fill="#00617f" stroke="#00617f" d="M21.4233,-10.6273C21.4233,-10.6273 554.577,-10.6273 554.577,-10.6273 560.577,-10.6273 566.577,-16.6273 566.577,-22.6273 566.577,-22.6273 566.577,-248.369 566.577,-248.369 566.577,-254.369 560.577,-260.369 554.577,-260.369 554.577,-260.369 21.4233,-260.369 21.4233,-260.369 15.4233,-260.369 9.42331,-254.369 9.42331,-248.369 9.42331,-248.369 9.42331,-22.6273 9.42331,-22.6273 9.42331,-16.6273 15.4233,-10.6273 21.4233,-10.6273"/>
-<text text-anchor="middle" x="288" y="-18.4273" font-family="Helvetica,sans-Serif" font-size="14.00" fill="white">Node: proxmox</text>
+<polygon fill="white" stroke="transparent" points="-4,4 -4,-364 580,-364 580,4 -4,4"/>
+<g id="clust1" class="cluster">
+<title>cluster_node1</title>
+<path fill="#00617f" stroke="#00617f" d="M21.42,-10.63C21.42,-10.63 554.58,-10.63 554.58,-10.63 560.58,-10.63 566.58,-16.63 566.58,-22.63 566.58,-22.63 566.58,-248.37 566.58,-248.37 566.58,-254.37 560.58,-260.37 554.58,-260.37 554.58,-260.37 21.42,-260.37 21.42,-260.37 15.42,-260.37 9.42,-254.37 9.42,-248.37 9.42,-248.37 9.42,-22.63 9.42,-22.63 9.42,-16.63 15.42,-10.63 21.42,-10.63"/>
+<text text-anchor="middle" x="288" y="-18.43" font-family="Helvetica,sans-Serif" font-size="14.00" fill="white">Node: proxmox</text>
 </g>
 <!-- gateway -->
-<g id="node1" class="node"><title>gateway</title>
-<polygon fill="#ff9100" stroke="none" points="383.607,-310.627 383.607,-348.627 514.607,-348.627 514.607,-310.627 383.607,-310.627"/>
-<text text-anchor="start" x="394.607" y="-333.427" font-family="Helvetica,sans-Serif" font-size="14.00" fill="white">Provider Gateway</text>
-<text text-anchor="start" x="403.607" y="-318.027" font-family="Courier,monospace" font-size="12.00" fill="white">198.51.100.1</text>
-<polygon fill="none" stroke="#666666" stroke-width="2" points="384.607,-311.627 384.607,-347.627 513.607,-347.627 513.607,-311.627 384.607,-311.627"/>
+<g id="node1" class="node">
+<title>gateway</title>
+<polygon fill="#ff9100" stroke="transparent" points="376.61,-310.63 376.61,-348.63 520.61,-348.63 520.61,-310.63 376.61,-310.63"/>
+<text text-anchor="start" x="387.61" y="-333.43" font-family="Helvetica,sans-Serif" font-size="14.00" fill="white">Provider Gateway</text>
+<text text-anchor="start" x="403.11" y="-318.03" font-family="Courier,monospace" font-size="12.00" fill="white">198.51.100.1</text>
+<polygon fill="none" stroke="#666666" stroke-width="2" points="377.61,-311.63 377.61,-347.63 519.61,-347.63 519.61,-311.63 377.61,-311.63"/>
 </g>
 <!-- node1_eno0 -->
-<g id="node2" class="node"><title>node1_eno0</title>
-<polygon fill="#666666" stroke="none" points="438.607,-217.627 438.607,-227.627 463.607,-227.627 463.607,-217.627 438.607,-217.627"/>
-<text text-anchor="start" x="441.607" y="-220.727" font-family="Courier,monospace" font-size="8.00" fill="white">eno0</text>
-<path fill="lightgreen" stroke="none" d="M396.941,-197.627C396.941,-197.627 527.274,-197.627 527.274,-197.627 530.441,-197.627 533.607,-200.794 533.607,-203.961 533.607,-203.961 533.607,-210.294 533.607,-210.294 533.607,-213.461 530.441,-216.627 527.274,-216.627 527.274,-216.627 396.941,-216.627 396.941,-216.627 393.774,-216.627 390.607,-213.461 390.607,-210.294 390.607,-210.294 390.607,-203.961 390.607,-203.961 390.607,-200.794 393.774,-197.627 396.941,-197.627"/>
-<text text-anchor="start" x="405.607" y="-204.027" font-family="Courier,monospace" font-size="12.00">198.51.100.5/29</text>
-<path fill="none" stroke="green" stroke-width="2" d="M396.941,-197.627C396.941,-197.627 527.274,-197.627 527.274,-197.627 530.441,-197.627 533.607,-200.794 533.607,-203.961 533.607,-203.961 533.607,-210.294 533.607,-210.294 533.607,-213.461 530.441,-216.627 527.274,-216.627 527.274,-216.627 396.941,-216.627 396.941,-216.627 393.774,-216.627 390.607,-213.461 390.607,-210.294 390.607,-210.294 390.607,-203.961 390.607,-203.961 390.607,-200.794 393.774,-197.627 396.941,-197.627"/>
+<g id="node2" class="node">
+<title>node1_eno0</title>
+<polygon fill="#666666" stroke="transparent" points="438.61,-217.63 438.61,-227.63 463.61,-227.63 463.61,-217.63 438.61,-217.63"/>
+<text text-anchor="start" x="441.61" y="-220.73" font-family="Courier,monospace" font-size="8.00" fill="white">eno0</text>
+<path fill="lightgreen" stroke="transparent" d="M396.94,-197.63C396.94,-197.63 527.27,-197.63 527.27,-197.63 530.44,-197.63 533.61,-200.79 533.61,-203.96 533.61,-203.96 533.61,-210.29 533.61,-210.29 533.61,-213.46 530.44,-216.63 527.27,-216.63 527.27,-216.63 396.94,-216.63 396.94,-216.63 393.77,-216.63 390.61,-213.46 390.61,-210.29 390.61,-210.29 390.61,-203.96 390.61,-203.96 390.61,-200.79 393.77,-197.63 396.94,-197.63"/>
+<text text-anchor="start" x="405.61" y="-204.03" font-family="Courier,monospace" font-size="12.00">198.51.100.5/29</text>
+<path fill="none" stroke="green" stroke-width="2" d="M396.94,-197.63C396.94,-197.63 527.27,-197.63 527.27,-197.63 530.44,-197.63 533.61,-200.79 533.61,-203.96 533.61,-203.96 533.61,-210.29 533.61,-210.29 533.61,-213.46 530.44,-216.63 527.27,-216.63 527.27,-216.63 396.94,-216.63 396.94,-216.63 393.77,-216.63 390.61,-213.46 390.61,-210.29 390.61,-210.29 390.61,-203.96 390.61,-203.96 390.61,-200.79 393.77,-197.63 396.94,-197.63"/>
 </g>
 <!-- gateway--node1_eno0 -->
-<g id="edge4" class="edge"><title>gateway--node1_eno0:eno0</title>
-<path fill="none" stroke="#ff9100" d="M449.051,-306.434C449.64,-276.973 450.607,-228.627 450.607,-228.627"/>
+<g id="edge4" class="edge">
+<title>gateway--node1_eno0:eno0</title>
+<path fill="none" stroke="#ff9100" d="M449.05,-306.43C449.64,-276.97 450.61,-228.63 450.61,-228.63"/>
 </g>
 <!-- node1_vmbr0 -->
-<g id="node3" class="node"><title>node1_vmbr0</title>
-<path fill="#abbaba" stroke="none" d="M55.6074,-199.627C55.6074,-199.627 174.607,-199.627 174.607,-199.627 180.607,-199.627 186.607,-205.627 186.607,-211.627 186.607,-211.627 186.607,-223.627 186.607,-223.627 186.607,-229.627 180.607,-235.627 174.607,-235.627 174.607,-235.627 55.6074,-235.627 55.6074,-235.627 49.6074,-235.627 43.6074,-229.627 43.6074,-223.627 43.6074,-223.627 43.6074,-211.627 43.6074,-211.627 43.6074,-205.627 49.6074,-199.627 55.6074,-199.627"/>
-<text text-anchor="start" x="95.6074" y="-221.427" font-family="Helvetica,sans-Serif" font-size="14.00" fill="white">vmbr0</text>
-<text text-anchor="start" x="58.6074" y="-206.027" font-family="Courier,monospace" font-size="12.00" fill="white">203.0.113.17/28</text>
-<path fill="none" stroke="#666666" stroke-width="2" d="M55.6074,-199.627C55.6074,-199.627 174.607,-199.627 174.607,-199.627 180.607,-199.627 186.607,-205.627 186.607,-211.627 186.607,-211.627 186.607,-223.627 186.607,-223.627 186.607,-229.627 180.607,-235.627 174.607,-235.627 174.607,-235.627 55.6074,-235.627 55.6074,-235.627 49.6074,-235.627 43.6074,-229.627 43.6074,-223.627 43.6074,-223.627 43.6074,-211.627 43.6074,-211.627 43.6074,-205.627 49.6074,-199.627 55.6074,-199.627"/>
-<polygon fill="#666666" stroke="none" stroke-width="2" points="84.1074,-188.627 84.1074,-198.627 129.107,-198.627 129.107,-188.627 84.1074,-188.627"/>
-<text text-anchor="start" x="88.1074" y="-191.727" font-family="Courier,monospace" font-size="8.00" fill="white">tap100i0</text>
+<g id="node3" class="node">
+<title>node1_vmbr0</title>
+<path fill="#abbaba" stroke="transparent" d="M55.61,-199.63C55.61,-199.63 174.61,-199.63 174.61,-199.63 180.61,-199.63 186.61,-205.63 186.61,-211.63 186.61,-211.63 186.61,-223.63 186.61,-223.63 186.61,-229.63 180.61,-235.63 174.61,-235.63 174.61,-235.63 55.61,-235.63 55.61,-235.63 49.61,-235.63 43.61,-229.63 43.61,-223.63 43.61,-223.63 43.61,-211.63 43.61,-211.63 43.61,-205.63 49.61,-199.63 55.61,-199.63"/>
+<text text-anchor="start" x="92.11" y="-221.43" font-family="Helvetica,sans-Serif" font-size="14.00" fill="white">vmbr0</text>
+<text text-anchor="start" x="58.61" y="-206.03" font-family="Courier,monospace" font-size="12.00" fill="white">203.0.113.17/28</text>
+<path fill="none" stroke="#666666" stroke-width="2" d="M55.61,-199.63C55.61,-199.63 174.61,-199.63 174.61,-199.63 180.61,-199.63 186.61,-205.63 186.61,-211.63 186.61,-211.63 186.61,-223.63 186.61,-223.63 186.61,-229.63 180.61,-235.63 174.61,-235.63 174.61,-235.63 55.61,-235.63 55.61,-235.63 49.61,-235.63 43.61,-229.63 43.61,-223.63 43.61,-223.63 43.61,-211.63 43.61,-211.63 43.61,-205.63 49.61,-199.63 55.61,-199.63"/>
+<polygon fill="#666666" stroke="transparent" stroke-width="2" points="84.11,-188.63 84.11,-198.63 129.11,-198.63 129.11,-188.63 84.11,-188.63"/>
+<text text-anchor="start" x="88.11" y="-191.73" font-family="Courier,monospace" font-size="8.00" fill="white">tap100i0</text>
 </g>
 <!-- node1_vmbr0--node1_eno0 -->
-<g id="edge5" class="edge"><title>node1_vmbr0--node1_eno0</title>
-<path fill="none" stroke="red" d="M195.526,-212.627C251.299,-212.627 325.125,-212.627 380.861,-212.627"/>
-<text text-anchor="end" x="346.107" y="-234.427" font-family="Courier,monospace" font-size="14.00" fill="white">ip_forward = 1</text>
-<text text-anchor="end" x="346.107" y="-219.427" font-family="Courier,monospace" font-size="14.00" fill="white">proxy_arp = 1</text>
+<g id="edge5" class="edge">
+<title>node1_vmbr0--node1_eno0</title>
+<path fill="none" stroke="red" d="M195.53,-212.63C251.3,-212.63 325.12,-212.63 380.86,-212.63"/>
+<text text-anchor="end" x="346.11" y="-234.43" font-family="Courier,monospace" font-size="14.00" fill="white">ip_forward = 1</text>
+<text text-anchor="end" x="346.11" y="-219.43" font-family="Courier,monospace" font-size="14.00" fill="white">proxy_arp = 1</text>
 </g>
 <!-- vm100 -->
-<g id="node4" class="node"><title>vm100</title>
-<polygon fill="#666666" stroke="none" points="74.1074,-102.627 74.1074,-112.627 104.107,-112.627 104.107,-102.627 74.1074,-102.627"/>
-<text text-anchor="start" x="77.6074" y="-105.727" font-family="Courier,monospace" font-size="8.00" fill="white">ens18</text>
-<polygon fill="#ff9100" stroke="none" points="39.6074,-64.6273 39.6074,-102.627 152.607,-102.627 152.607,-64.6273 39.6074,-64.6273"/>
-<text text-anchor="start" x="72.1074" y="-87.4273" font-family="Helvetica,sans-Serif" font-size="14.00" fill="white">VM 100</text>
-<text text-anchor="start" x="50.6074" y="-72.0273" font-family="Courier,monospace" font-size="12.00" fill="white">203.0.113.18</text>
-<polygon fill="none" stroke="#666666" stroke-width="2" points="40.6074,-65.6273 40.6074,-101.627 151.607,-101.627 151.607,-65.6273 40.6074,-65.6273"/>
+<g id="node4" class="node">
+<title>vm100</title>
+<polygon fill="#666666" stroke="transparent" points="74.11,-102.63 74.11,-112.63 104.11,-112.63 104.11,-102.63 74.11,-102.63"/>
+<text text-anchor="start" x="77.61" y="-105.73" font-family="Courier,monospace" font-size="8.00" fill="white">ens18</text>
+<polygon fill="#ff9100" stroke="transparent" points="39.61,-64.63 39.61,-102.63 152.61,-102.63 152.61,-64.63 39.61,-64.63"/>
+<text text-anchor="start" x="69.11" y="-87.43" font-family="Helvetica,sans-Serif" font-size="14.00" fill="white">VM 100</text>
+<text text-anchor="start" x="50.61" y="-72.03" font-family="Courier,monospace" font-size="12.00" fill="white">203.0.113.18</text>
+<polygon fill="none" stroke="#666666" stroke-width="2" points="40.61,-65.63 40.61,-101.63 151.61,-101.63 151.61,-65.63 40.61,-65.63"/>
 </g>
 <!-- node1_vmbr0--vm100 -->
-<g id="edge1" class="edge"><title>node1_vmbr0:tap100i0--vm100:ens18</title>
-<path fill="none" stroke="white" d="M106.607,-187.627C106.607,-187.627 88.6074,-113.627 88.6074,-113.627"/>
+<g id="edge1" class="edge">
+<title>node1_vmbr0:tap100i0--vm100:ens18</title>
+<path fill="none" stroke="white" d="M106.61,-187.63C106.61,-187.63 88.61,-113.63 88.61,-113.63"/>
 </g>
 <!-- vm101 -->
-<g id="node5" class="node"><title>vm101</title>
-<polygon fill="#666666" stroke="none" points="247.107,-102.627 247.107,-112.627 277.107,-112.627 277.107,-102.627 247.107,-102.627"/>
-<text text-anchor="start" x="250.607" y="-105.727" font-family="Courier,monospace" font-size="8.00" fill="white">ens18</text>
-<polygon fill="#ff9100" stroke="none" points="212.607,-64.6273 212.607,-102.627 325.607,-102.627 325.607,-64.6273 212.607,-64.6273"/>
-<text text-anchor="start" x="245.107" y="-87.4273" font-family="Helvetica,sans-Serif" font-size="14.00" fill="white">VM 101</text>
-<text text-anchor="start" x="223.607" y="-72.0273" font-family="Courier,monospace" font-size="12.00" fill="white">203.0.113.19</text>
-<polygon fill="none" stroke="#666666" stroke-width="2" points="213.607,-65.6273 213.607,-101.627 324.607,-101.627 324.607,-65.6273 213.607,-65.6273"/>
+<g id="node5" class="node">
+<title>vm101</title>
+<polygon fill="#666666" stroke="transparent" points="247.11,-102.63 247.11,-112.63 277.11,-112.63 277.11,-102.63 247.11,-102.63"/>
+<text text-anchor="start" x="250.61" y="-105.73" font-family="Courier,monospace" font-size="8.00" fill="white">ens18</text>
+<polygon fill="#ff9100" stroke="transparent" points="212.61,-64.63 212.61,-102.63 325.61,-102.63 325.61,-64.63 212.61,-64.63"/>
+<text text-anchor="start" x="242.11" y="-87.43" font-family="Helvetica,sans-Serif" font-size="14.00" fill="white">VM 101</text>
+<text text-anchor="start" x="223.61" y="-72.03" font-family="Courier,monospace" font-size="12.00" fill="white">203.0.113.19</text>
+<polygon fill="none" stroke="#666666" stroke-width="2" points="213.61,-65.63 213.61,-101.63 324.61,-101.63 324.61,-65.63 213.61,-65.63"/>
 </g>
 <!-- node1_vmbr0--vm101 -->
-<g id="edge2" class="edge"><title>node1_vmbr0:tap100i0--vm101:ens18</title>
-<path fill="none" stroke="white" d="M106.607,-187.627C106.607,-187.627 261.607,-113.627 261.607,-113.627"/>
+<g id="edge2" class="edge">
+<title>node1_vmbr0:tap100i0--vm101:ens18</title>
+<path fill="none" stroke="white" d="M106.61,-187.63C106.61,-187.63 261.61,-113.63 261.61,-113.63"/>
 </g>
 <!-- vm102 -->
-<g id="node6" class="node"><title>vm102</title>
-<polygon fill="#666666" stroke="none" points="420.107,-102.627 420.107,-112.627 450.107,-112.627 450.107,-102.627 420.107,-102.627"/>
-<text text-anchor="start" x="423.607" y="-105.727" font-family="Courier,monospace" font-size="8.00" fill="white">ens18</text>
-<polygon fill="#ff9100" stroke="none" points="385.607,-64.6273 385.607,-102.627 498.607,-102.627 498.607,-64.6273 385.607,-64.6273"/>
-<text text-anchor="start" x="418.107" y="-87.4273" font-family="Helvetica,sans-Serif" font-size="14.00" fill="white">VM 101</text>
-<text text-anchor="start" x="396.607" y="-72.0273" font-family="Courier,monospace" font-size="12.00" fill="white">203.0.113.20</text>
-<polygon fill="none" stroke="#666666" stroke-width="2" points="386.607,-65.6273 386.607,-101.627 497.607,-101.627 497.607,-65.6273 386.607,-65.6273"/>
+<g id="node6" class="node">
+<title>vm102</title>
+<polygon fill="#666666" stroke="transparent" points="420.11,-102.63 420.11,-112.63 450.11,-112.63 450.11,-102.63 420.11,-102.63"/>
+<text text-anchor="start" x="423.61" y="-105.73" font-family="Courier,monospace" font-size="8.00" fill="white">ens18</text>
+<polygon fill="#ff9100" stroke="transparent" points="385.61,-64.63 385.61,-102.63 498.61,-102.63 498.61,-64.63 385.61,-64.63"/>
+<text text-anchor="start" x="415.11" y="-87.43" font-family="Helvetica,sans-Serif" font-size="14.00" fill="white">VM 102</text>
+<text text-anchor="start" x="396.61" y="-72.03" font-family="Courier,monospace" font-size="12.00" fill="white">203.0.113.20</text>
+<polygon fill="none" stroke="#666666" stroke-width="2" points="386.61,-65.63 386.61,-101.63 497.61,-101.63 497.61,-65.63 386.61,-65.63"/>
 </g>
 <!-- node1_vmbr0--vm102 -->
-<g id="edge3" class="edge"><title>node1_vmbr0:tap100i0--vm102:ens18</title>
-<path fill="none" stroke="white" d="M106.607,-187.627C106.607,-187.627 434.607,-113.627 434.607,-113.627"/>
+<g id="edge3" class="edge">
+<title>node1_vmbr0:tap100i0--vm102:ens18</title>
+<path fill="none" stroke="white" d="M106.61,-187.63C106.61,-187.63 434.61,-113.63 434.61,-113.63"/>
 </g>
 </g>
 </svg>
diff --git a/images/default-network-setup-routed.tt b/images/default-network-setup-routed.tt
index b99f54b..eb8ba87 100644
--- a/images/default-network-setup-routed.tt
+++ b/images/default-network-setup-routed.tt
@@ -31,7 +31,7 @@ graph default_network_setup_routed {
 
 	[% server(id="vm100" title="VM 100" subtitle="203.0.113.18" top_ports='ens18') %]
 	[% server(id="vm101" title="VM 101" subtitle="203.0.113.19" top_ports='ens18') %]
-	[% server(id="vm102" title="VM 101" subtitle="203.0.113.20" top_ports='ens18') %]
+	[% server(id="vm102" title="VM 102" subtitle="203.0.113.20" top_ports='ens18') %]
 
 	node1_vmbr0:tap100i0 -- vm100:ens18
 	node1_vmbr0:tap100i0 -- vm101:ens18
diff --git a/pve-network.adoc b/pve-network.adoc
index 9178cce..bf24604 100644
--- a/pve-network.adoc
+++ b/pve-network.adoc
@@ -185,16 +185,16 @@ address.
 [thumbnail="default-network-setup-routed.svg"]
 A common scenario is that you have a public IP (assume `198.51.100.5`
 for this example), and an additional IP block for your VMs
-(`203.0.113.16/29`). We recommend the following setup for such
+(`203.0.113.16/28`). We recommend the following setup for such
 situations:
 
 ----
 auto lo
 iface lo inet loopback
 
-auto eno1
-iface eno1 inet static
-        address  198.51.100.5/24
+auto eno0
+iface eno0 inet static
+        address  198.51.100.5/29
         gateway  198.51.100.1
         post-up echo 1 > /proc/sys/net/ipv4/ip_forward
         post-up echo 1 > /proc/sys/net/ipv4/conf/eno1/proxy_arp
@@ -202,7 +202,7 @@ iface eno1 inet static
 
 auto vmbr0
 iface vmbr0 inet static
-        address  203.0.113.17/29
+        address  203.0.113.17/28
         bridge-ports none
         bridge-stp off
         bridge-fd 0
-- 
2.30.2






More information about the pve-devel mailing list