How To Create VLANs in Proxmox For a Single NIC

preview_player
Показать описание
In this video, we show you how to configure Proxmox to support VLANs on a single NIC

We show you how to re-configure the management interface created during the installation so that it is in your management VLAN

NOTE: Because we are switching to VLANs, the hypervisor will now no longer be accessible. However, connectivity will be restored in the next step so make sure you have the means to modify the network switch attached to the hypervisor

Then we cover how to configure a network switch to support the VLAN tagging that Proxmox will now be doing

Next, we show you how to add additional VLAN interfaces to Proxmox so it can access shared storage for instance

And then how to configure virtual machines to support VLAN tagging

Useful links:

=============================
SUPPORT THE CHANNEL
Donate through Paypal:
Donate through Buy Me A Coffee:
Become a monthly contributor on Patreon:
Become a monthly contributor on YouTube:
==============================

==============================
MEDIA LINKS:
==============================

Steps taken
1) Configure Proxmox
The default installation creates a dedicated management interface so we need to reconfigure Proxmox with a management VLAN interface instead and make the Linux bridge VLAN aware
The quickest way is to edit the /etc/network/interfaces
For example,

nano /etc/network/interfaces

auto lo
iface lo inet loopback

iface enp0s25 inet manual

auto vmbr0.100
iface vmbr0.100 inet static
address 192.168.100.10/24
gateway 192.168.100.254

auto vmbr0
iface vmbr0 inet manual
bridge-ports enp0s25
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4092

Then we reboot Proxmox to make sure the changes are applied

2) Configure Switch
Because Proxmox is now doing VLAN tagging but the network switch is not, we cannot access Proxmox remotely anymore so we need to reconfigure the switch port
We need to turn the port into a trunk port i.e. one which supports multiple VLANs and set the default, PVID or native VLAN to something unused
Once this is done, the switch will send VLAN tagged traffic to Proxmox and our connection will be restored

3) Add VLAN interfaces to Proxmox
Proxmox will now have a VLAN aware bridge, which means we can add VLAN interfaces to it to give it direct access to a storage VLAN for instance
To do this select the computer in the left hand pane, navigate to System | Network and from the Create drop down menu select Linux VLAN
Change the name to match the bridge and VLAN ID, for example for VLAN 200, we'd use vmbr0.200
Give the interface an IP address and mask, for example, 192.168.200.10/24
Then click Create
On the switch, update the port connected to Proxmox to allow this VLAN
Proxmox should now have access to other computers on your network in this VLAN

4) Assign VMs to VLANs
Because Proxmox and the switch are using VLAN tagging, virtual machines will need to support these as well
For existing virtual machines, select the VM in the left hand pane then select Hardware
Click on the Network Device then click Edit
In the VLAN Tag field, enter the VLAN ID then click OK
On the switch, update the port connected to Proxmox to allow this VLAN if that hasn't already been done
You will need to repeat this for any other interfaces the VM has
For new virtual machines, you can add the VLAN tag as part of the installation process when you get to the Network tab

Credits:
LoveLife | Instrumental Prod. Blue Mango | EQMUSEQ.COM by Don Da Vinci

proxmox vlan tagging,proxmox vlan aware,proxmox vlan bridge,proxmox vlan trunk,proxmox vlan aware linux bridge,proxmox vlan single nic,proxmox vlan interface,proxmox single nic vlan,proxmox networking,proxmox networking tutorial,proxmox networking vlan,proxmox,proxmox ve,virtualization,proxmox tutorial

00:00 Intro
00:40 Overview
01:33 Configure Proxmox
10:04 Configure Switch
17:24 Add VLAN interfaces to Proxmox
23:38 Assign VMs to VLANs

Proxmox VLANs Single NIC
Рекомендации по теме
Комментарии
Автор

If you want to learn more about Proxmox VE, this series will help you out

TechTutorialsDavidMcKone
Автор

Hands down the best explanation I've seen of VLANs and how to set them up. It's easier to understand an abstraction like this when you have someone explain the principles behind it, rather than just saying click this button and type xyz and voila! And way easier to transfer it to different equipment because you go over *why* you're doing each step and *what* that step actually does...and knowing what the goal is makes it easier to accomplish even on different equipment. Many thanks.

itcomesinewaves
Автор

Amazing Explanation! Thank you very much David for your help on this subject! I have a my Proxmox installed on a server with 4 NICs and because I had 4 NICs I just plugged each individual one into it's own VLAN tagged switch port. I read many forum posts and the Proxmox docs etc. on this subject but could never quite get my head around it. After watching this video it's given me a much better understanding on whats going on between Proxmox and my Network.

Thanks again!

UltimateJiuJitsu
Автор

Big thanks. I like that you are explaining beyond your setup and hardware. That's something a lot of YouTuber forgets to do. Not everyone uses the same Hardware (Switch).
So again big thanks and greetings from Germany.

tarekt.
Автор

Thanks, now I can say I understand VLAN, was searching for "adding active listener interface to prox" and found this. Never understand VLAN before, but now I do. Thanks

yousefduaa
Автор

Thank you so much. This is one of the best explanations as to how and why VLANS are set up and used. Awesome stuff.

laughingpain
Автор

Once again, my hat is off to you! Your video was just the right one for getting me out of a pinch and back on track with Proxmox networking. Your videos have become my go to source for learning! It worked for my 4port nic and I appreciate the help!

zenwhozit
Автор

David, thank you so very much for this video. I've wanted to understand/learn VLANs at a great depth, and was hoping to learn with Proxmox. This is it, you did it, can't wait to reconfigure my home lab from subnetting to subnetting + VLANs.

Jnny
Автор

omg I followed the steps in the description and im not a complete noob to networking but proxmox adds the virtual layer! my god its been an adventure but your reminder explanation of setting native vlans got me and as soon as I set my native vlan on my trunk YOU SAVED ME

woodsy
Автор

I'm working on migrating from ESXi to Proxmox and this video was very helpful in getting my networking set back up. Thank you!

ckchessmaster
Автор

Hello sir, you saved tons of time for me. Wish I had come to this video earlier. Loved the part where you describe how PVID implies receiver (Proxmox) will not receive the VLAN tag. I just donated a little on Paypal, thanks again!!!!

coollllmann
Автор

Thank you, thank you, THANK YOU! With this video, I finally have VLANs working in Proxmox! Not only am I new to Proxmox, understanding how VLANs work is something I've been struggling with for quite some time now. With your explanation, I was able to apply the theory on my UniFi network gear. Most helpful video I've watched in a long time! I had a gut feeling that I needed to take the time to watch this video all the way through and I was right.

fanaticdavid
Автор

I learn, not by just doing, but by gaining something of the principles behind what I'm doing, as I'm doing it. Anyone can show me how to hit my head against a brick wall, but why am I?
This video is an excellent, well rounded, HOWTO. I've learnt way beyond just "how to".
It gives reasons why, how (including why not to do something) and what to expect after doing it.
This is not a visual representation of a list of written instructions, something I can read anywhere.
For me it's by a person with expert knowledge and experience, capable of explaining complex issues simply and generously. "The reason why I did it this way ..." is an expert providing guidance and sharing their experience with me.
I've just experienced the best HOWTO I've ever followed. Thank you so much!

warwickemanuel
Автор

Exactly what I needed to do configure mgmt on a sub interface. Thank you !

CyberTronics
Автор

This got me going in under an hour. Extremely appreciated!

alangraham
Автор

Your video was great! I had been having a hard time understanding VLANs and you explained it perfectly, thank you! :)

travisjones.online
Автор

It was an Audrey Hepburn presentation about VLAN.
Thank you very much for sharing.

ythalorossy
Автор

David, thank You so much. This is exactly what I was looking for. Getting used to from esxi so this video was super helpful! New sub!

enble
Автор

Thank you very much for the detailed explanation, sir! Keep up the good work!

F-xfcd
Автор

Wow. Now I kinda understand how VLAN work. Thank you!

ArifKamaruzaman