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 @@ - - + default_network_setup_routed - -cluster_node1 - -Node: proxmox + + +cluster_node1 + +Node: proxmox -gateway - -Provider Gateway -198.51.100.1 - + +gateway + +Provider Gateway +198.51.100.1 + -node1_eno0 - -eno0 - -198.51.100.5/29 - + +node1_eno0 + +eno0 + +198.51.100.5/29 + -gateway--node1_eno0:eno0 - + +gateway--node1_eno0:eno0 + -node1_vmbr0 - -vmbr0 -203.0.113.17/28 - - -tap100i0 + +node1_vmbr0 + +vmbr0 +203.0.113.17/28 + + +tap100i0 -node1_vmbr0--node1_eno0 - -ip_forward = 1 -proxy_arp = 1 + +node1_vmbr0--node1_eno0 + +ip_forward = 1 +proxy_arp = 1 -vm100 - -ens18 - -VM 100 -203.0.113.18 - + +vm100 + +ens18 + +VM 100 +203.0.113.18 + -node1_vmbr0:tap100i0--vm100:ens18 - + +node1_vmbr0:tap100i0--vm100:ens18 + -vm101 - -ens18 - -VM 101 -203.0.113.19 - + +vm101 + +ens18 + +VM 101 +203.0.113.19 + -node1_vmbr0:tap100i0--vm101:ens18 - + +node1_vmbr0:tap100i0--vm101:ens18 + -vm102 - -ens18 - -VM 101 -203.0.113.20 - + +vm102 + +ens18 + +VM 102 +203.0.113.20 + -node1_vmbr0:tap100i0--vm102:ens18 - + +node1_vmbr0:tap100i0--vm102:ens18 + 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