Libro sobre Proxmox maestria
Adding VLAN
VLAN can be set up on both virtual machines and bridges. If the VLAN traffic leaves the virtual environment, it is important to set VLAN on physical network switch by configuring port trunking and VLAN tagging. Tagging VMs with a VLAN ID is very straightforward through the Proxmox GUI. Just enter the VLAN ID when adding a network interface to the VM or edit already added vNICs. The following screenshot shows the dialog box to edit a network device through the Proxmox GUI:
Bridge: vmbro VLAN Tag: 1 NAT mode
Rate limit (MB/s): unlimited ок
In the preceding example, we tagged virtual machine pmxMS01 in our cluster with VLAN ID 1. After adding VLAN with the VM, the following screenshot is what it looks like from the Proxmox GUI. Notice the VLAN ID 1 is tag-1 at the end of Network Device. It should be noted that when using VLAN, all devices and virtual machines should be VLAN compatible.
201 (template-Ubuntu) ISO-nfs-01 (pmxvm01) backup-daily (pmxvm01) backup-monthly (pmxvm... backup-weekly (pmxvm01) backup-yearly (pmxvm01)
Edit Resize disk Move disk Disk Throttle
Default none,media-cdrom vm-nfs-01:101/vm-101-disk-1.qcow2, format-qcow2,size=15G e1000-42:5C:EB:2A:5F:05, bridge-vmbro, tag=1
We are now going to create a VLAN on the bonded interface bond0 on our Proxmox node pmxvm01. Perform the following steps to do so:
1. Securely log in to the node pmxvm01.
2. Open the interface file # nano /etc/network/interfaces using an editor.