From: Dietmar Maurer Date: Thu, 16 Aug 2018 08:10:08 +0000 (+0200) Subject: install and use new network diagrams X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=commitdiff_plain;h=50f88938f6042c70b90cf3333009addbf59eed32 install and use new network diagrams --- diff --git a/Makefile b/Makefile index 0b1284f..1ca4192 100644 --- a/Makefile +++ b/Makefile @@ -202,6 +202,8 @@ $(DOC_DEB): index.html $(WIKI_IMPORTS) $(API_VIEWER_SOURCES) verify-images install -dm755 build-$(DOC_PACKAGE)/usr/share/doc/${DOC_PACKAGE} install -m 0644 index.html ${INDEX_INCLUDES} build-$(DOC_PACKAGE)/usr/share/${DOC_PACKAGE} install -m 0644 ${WIKI_IMPORTS} build-$(DOC_PACKAGE)/usr/share/${DOC_PACKAGE} + # install images + make -C images DESTDIR=../build-$(DOC_PACKAGE) install # install screenshot images install -dm755 build-$(DOC_PACKAGE)/usr/share/${DOC_PACKAGE}/images/screenshot install -m 0644 images/screenshot/*.png build-$(DOC_PACKAGE)/usr/share/${DOC_PACKAGE}/images/screenshot diff --git a/images/Makefile b/images/Makefile index f6e210e..1f38601 100644 --- a/images/Makefile +++ b/images/Makefile @@ -1,5 +1,10 @@ -all: +TT_SOURCES= \ + default-network-setup-bond.tt \ + default-network-setup-routed.tt \ + default-network-setup-bridge.tt + +all: $(TT_SOURCES:.tt=.svg) %.tmp.dot: %.tt pve_network_templates.tt tpage $*.tt >$*.tmp.dot @@ -7,6 +12,13 @@ all: %.svg: %.tmp.dot dot $*.tmp.dot -T svg -o $*.svg +update: + rm -f $(TT_SOURCES:.tt=.svg) + make $(TT_SOURCES:.tt=.svg) + +install: $(TT_SOURCES:.tt=.svg) + install -d -m 0755 $(DESTDIR)/usr/share/pve-docs/images + install -m 0644 $(TT_SOURCES:.tt=.svg) $(DESTDIR)/usr/share/pve-docs/images clean: rm -f *.tmp.dot diff --git a/pve-network.adoc b/pve-network.adoc index 198f2d1..1ac5b28 100644 --- a/pve-network.adoc +++ b/pve-network.adoc @@ -102,6 +102,7 @@ virtual networks. Default Configuration using a Bridge ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +[thumbnail="default-network-setup-bridge.svg"] Bridges are like physical network switches implemented in software. All VMs can share a single bridge, or you can create multiple bridges to separate network domains. Each host can have up to 4094 bridges. @@ -146,6 +147,7 @@ You can avoid the problem by ``routing'' all traffic via a single interface. This makes sure that all network packets use the same MAC 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 @@ -314,6 +316,7 @@ iface vmbr0 inet static ---- +[thumbnail="default-network-setup-bond.svg"] Another possibility it to use the bond directly as bridge port. This can be used to make the guest network fault-tolerant.