[pve-devel] [PATCH pve-docs] Merge Wiki Network Model in docs

Wolfgang Link w.link at proxmox.com
Wed Oct 12 14:52:26 CEST 2016


The most part are already include pve-network.adoc only VLAN are missing.
The NAT QEMU redirection goes in the qm.adoc
---
 pve-network.adoc | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 qm.adoc          | 26 ++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)

diff --git a/pve-network.adoc b/pve-network.adoc
index 4778a8e..1245528 100644
--- a/pve-network.adoc
+++ b/pve-network.adoc
@@ -286,6 +286,58 @@ iface vmbr0 inet static
 
 ----
 
+
+Create VLAN
+~~~~~~~~~~~
+
+We have two methods to follow:
+
+.First explicit method
+
+----
+
+auto vlan53
+iface vlan53 inet manual
+	vlan_raw_device eth0
+
+----
+
+.Second method
+
+We can use directly the NIC dot VLAN ID, like eth0.53
+
+---
+
+auto eth0.53
+iface eth0.53 inet manual
+
+---
+
+NOTE: It is possible to use a NIC or a bond as VLAN device.
+
+Multiple VLANs on a bridge can be achieved with VLAN awareness on the Linux bridge and configure the vnet of the guest with the VLAN tag.
+For more Information about set a VLAN on a guest see Container Network or Virtual Machines settings
+
+
+Create a bridge on a VLan
+~~~~~~~~~~~~~~~~~~~~~~~~~
+
+It is possible to create a Linux bridge on a VLAN tagged bond or a VLAN tagged NIC.
+
+----
+
+auto vmbr0
+iface vmbr inet static
+	address  192.168.0.2
+	netmask  255.255.255.0
+	gateway  192.168.0.1
+	bridge_ports vlan53
+	bridge_stp off
+	bridge_fd 0
+
+----
+
+
 ////
 TODO: explain IPv6 support?
 TODO: explan OVS
diff --git a/qm.adoc b/qm.adoc
index b143ed3..5640895 100644
--- a/qm.adoc
+++ b/qm.adoc
@@ -316,6 +316,32 @@ should only be used for testing.
 You can also skip adding a network device when creating a VM by selecting *No
 network device*.
 
+.VLAN
+
+Requirements:
+
+* Linux bridge and activated VLAN awareness.
+* Open vSwitch
+
+It is possible to set a VLAN tag on the interface, so it is
+transparent for the host.
+
+.QEMU port redirection
+
+If you have your VM network configuration set to NAT mode, there's
+another option. According to this thread, QEMU can do port forwarding
+by itself for TCP and UDP only, but both the web GUI and the qm(1)
+command current lacks the ability to control this directly. Instead,
+you run:
+
+----
+qm set <vmid> -args "--redir tcp:5555::22"
+----
+
+in order to, say, redirect host port tcp/5555 to guest port tcp/22. At
+this point you should be able to ssh to the NAT-mode guest VM by
+connecting to port 5555 on the host's IP.
+
 .Multiqueue
 If you are using the VirtIO driver, you can optionally activate the
 *Multiqueue* option. This option allows the guest OS to process networking
-- 
2.1.4





More information about the pve-devel mailing list