Proxmox VLAN Configuration: Linux Bridge Tagging, Management IP, and Virtual Machines

Sdílet
Vložit
  • čas přidán 3. 06. 2024
  • Proxmox VLAN configuration can be challenging if you haven't seen how this is done. However, we walk through this process step-by-step and show how to make Proxmox VLAN aware, move the management IP, and add VLANs to Proxmox virtual machines.
    You can find the code examples and written walkthrough here: www.virtualizationhowto.com/2...
    Check out the VHT forums to get your questions answered: www.virtualizationhowto.com/c...
    ★ Subscribe to the channel: / @virtualizationhowto
    ★ My blog: www.virtualizationhowto.com
    ★ Twitter: / vspinmaster
    ★ LinkedIn: / brandon-lee-vht
    ★ Github: github.com/brandonleegit
    ★ Facebook: / 100092747277326
    ★ Discord: / discord
    ★ Pinterest: / brandonleevht
    Introduction to Proxmox VLANs - 0:00
    Introducing the Linux Bridge - 0:47
    Logged into the Proxmox VE UI and looking at default bridge - 1:14
    Looking at physical network adapters installed - 1:35
    IP addressing configuration on default bridge - 1:48
    Editing the default bridge to look at settings - 1:58
    The default bridge is not VLAN aware - 2:20
    Enabling VLAN aware on the default bridge - 2:33
    Applying the config and looking at the underlying network configuration file - 3:24
    Apply the VLAN aware changes - 4:25
    Talking about filtering VLANs - 4:57
    Editing the /etc/network/interfaces file - 5:25
    Talking about changing the management IP - 6:09
    Looking at another physical Proxmox host - 6:38
    Looking at the network interfaces file - 7:40
    New configuration to move the management IP - 8:10
    Host now pings from the management IP change - 9:34
    Looking at the network config in the GUI - 10:00
    Linux VLAN settings - 10:10
    Changes that we need to make after IP change - 10:35
    The /etc/hosts file needs to be updated - 10:58
    DNS considerations - 11:23
    How do we enable VLANs for Virtual Machines? 11:39
    Looking at an existing virtual machine and how to enable VLANs - 12:06
    Enabling VLANs while we create a virtual machine - 13:00
    Wrapping up Proxmox VLAN configuration - 13:52
    Proxmox Backup Server Guide:
    www.virtualizationhowto.com/2...
    Upgrade Proxmox Host to 8.1:
    www.virtualizationhowto.com/2...
  • Jak na to + styl

Komentáře • 75

  • @auslander1026
    @auslander1026 Před 2 měsíci +3

    6:13 from manual - If you made manual changes directly to the /etc/network/interfaces file, you can apply them by running ifreload -a
    This will avoid rebooting pve as I understand

  • @jegwebb
    @jegwebb Před 2 dny

    This was sooo good! Thank you very much! :)

  • @dleemt
    @dleemt Před 2 měsíci

    Thank you SO much for this video. I was stuck on getting into the web gui on my newly deployed ProxMox server due to needing to have the management IP address on a specific vlan. this was an extremely clear and straightforward tutorial. well done.

  • @Kaffius
    @Kaffius Před 2 měsíci

    Super helpful. fixed up my issues with my bond0 and truenas networking.

  • @matthewbennett2844
    @matthewbennett2844 Před 4 měsíci +1

    worked a treat thanks for this video helped a lot.

  • @hibbertsa
    @hibbertsa Před 3 měsíci +4

    This video saved my life! 50+ hours in and you finally helped me. Thanks so much!

  • @v6transplant
    @v6transplant Před 2 měsíci

    This video is spot-on and simple to understand. Thank you for taking the time to illustrate. 🙂

  • @jwilk2107
    @jwilk2107 Před 2 měsíci

    Thank you very much for this video. Very informative👍

  • @MrPir84free
    @MrPir84free Před 3 měsíci +1

    Wish I had seen this weeks or months ago; learned the hard way thru experimentation on some of this; learned other stuff however ; so not a loss. The experimentation was, uh, frustrating because not only had I added a new 4 port NIC, wasn't sure that it was working or not.
    Was tired of replugging things to move them at a switch; Now back to work..
    Thanks for the video.

    • @VirtualizationHowto
      @VirtualizationHowto  Před 3 měsíci

      Awesome @MrPir84free.....experimenting and learning the hard way is always frustrating, but like you, I feel better for it afterwards...generally sticks that way :) Be sure to join the forums and share your experiences there and help others to pass along the knowledge too: www.virtualizationhowto.com/community

  • @jstnumber73
    @jstnumber73 Před 24 dny +1

    You are a gentleman and a scholar. Thanks!

  • @223surf
    @223surf Před 5 měsíci +4

    Just a note that may come in handy. For larger Xeon servers, such as xeon gold, we ran into a problem with VLANs being broken due to spectre and meltdown mitigation's. I had to disable them. While this may be fixed in Kernel 6.5, I had major production issues with 6.2.

    • @VirtualizationHowto
      @VirtualizationHowto  Před 5 měsíci

      Please share your findings over on the VHT forums here: www.virtualizationhowto.com/community. Thank you for the comment!

  • @ronm6585
    @ronm6585 Před 5 měsíci

    Thank you.

  • @andymok7945
    @andymok7945 Před 5 měsíci

    Thanks.

  • @Jarek.
    @Jarek. Před 5 měsíci +3

    Personally I do this slightly different: create N bridges for all my VLANs and then bind each of them to port enp4s0.X. Then create N Linux VLANs enp4s0.X . I found this more readable to which VLAN my VM is connected to. Having said that - looking forward to see how we can use SDN introduced in recent version of Proxmox.

  • @NicolaCampbell-mm9bg
    @NicolaCampbell-mm9bg Před 2 měsíci +2

    sorry i'm confused here, how do i remote into the new vlan IP address if i don't already have a host on that subnet? seems like when i apply those changes in the interfaces file i'm going to lose access to my server all together

  • @Monster_Rancher
    @Monster_Rancher Před 3 měsíci

    nice work.

  • @Ecker00
    @Ecker00 Před 5 měsíci +3

    Have you looked at how the new SDN interface in PVE 8.1 works?

  • @stevefxp
    @stevefxp Před 3 měsíci

    If i make a vmbr vlan aware does that mean the corresponding switch port would be setup to tag only the vlans to be passed?

  • @seapro4018
    @seapro4018 Před 4 měsíci

    Good information here. I am trying to configure bonds and vlans, in conjunction with bridges. Basically, I want to create 2 bonds, 1 for the mgmt, and the other for my vm's. I want to have the vlans 'aware' on the vm-network, and not the mgmt bond. I can create the bonds but am having issues creating or assigning the bridge to the vm-network. Any suggestions as to how I might be able to get this done? Thanks for your videos and suggestions you might have

    • @VirtualizationHowto
      @VirtualizationHowto  Před 4 měsíci

      @seapro4018 thank you for your comment! Hey hop over to the forums if you don't mind and sign up there to create a topic and we can discuss this in more detail: www.virtualizationhowto.com/community

  • @eoeoeovideos
    @eoeoeovideos Před 4 měsíci

    Hello, thank for this tutorial! Any idea how to add IP Pools in Promox? Or how to add automatically a next public ip to the next VM that will be created!

    • @VirtualizationHowto
      @VirtualizationHowto  Před 4 měsíci

      @eoeoeovideos thank you for the comment. Interesting question. I would like to learn more about your use case. Sign up on the forums and create a thread and let's discuss this in more detail: www.virtualizationhowto.com/community

  • @raul230285
    @raul230285 Před 5 měsíci

    Cool

  • @sereneislandmusic
    @sereneislandmusic Před měsícem

    Thanks! I have a question about DHCP. If I have an external DHCP server and configure the IP helper on the switch for the respective VLANs, after configuring the VLAN bridge on the host is the VM able to automatically obtain an IP address from the external DHCP?

  • @fasti8993
    @fasti8993 Před 2 měsíci

    If I make vmbr0 VLAN aware but don't set a VLAN tag in the network device net0 of a VM, will the latter act as a VLAN trunc so that i could use that VM as a docker host and putt the docker containers on different VLANs using 802.1q MAC VLANs in docker?

  • @user-mm9sw5jr2p
    @user-mm9sw5jr2p Před 2 měsíci +4

    When showing reconfigurations do not apply the reconfiguration by rebooting the host. Linux should not require a reboot to take configuration changes. If this were a production system you'd take it down for the time that's needed to do a reboot. Alternatively it might be better to show the specific proxmox configuration to reload the modified network configuration which should be much faster and almost immediate.

    • @elduderino7767
      @elduderino7767 Před 29 dny

      to apply the new network configuration after changing in console just run: ifreload -a

  • @begamess
    @begamess Před měsícem

    canyou show how to do it with unifi device like what to set up on the router side

  • @JirkaLottmann
    @JirkaLottmann Před 5 měsíci +1

    is it possible use this when i set proxmox to dhcp ip adress not static?

    • @VirtualizationHowto
      @VirtualizationHowto  Před 5 měsíci

      Absolutely, it should work for either.

    • @VirtualizationHowto
      @VirtualizationHowto  Před 5 měsíci +1

      @jirkalottmann let me know if you have more questions, be sure to sign up on the VHT forums here: www.virtualizationhowto.com/community if you want to discuss anything in more detail

  • @matthewbennett2844
    @matthewbennett2844 Před 4 měsíci

    Do you need to set the switch port as a trunk port for this to work

    • @VirtualizationHowto
      @VirtualizationHowto  Před 4 měsíci +1

      @matthewbennett2844 yes you would need to make sure your switch ports uplinkng your proxmox host are configured as trunks that pass all VLANs or is tagged with all VLANs you have configured on your Linux VLANs in Proxmox. Let me know if you have any other questions. Sign up on the VHT forums and we can discuss in more detail www.virtualizationhowto.com/community

  • @DavidGlover-mi1po
    @DavidGlover-mi1po Před 22 hodinami

    If the VLAN tagging is happening on the switch ports then adding a VLAN configuration in PVE should not be needed, correct?

  • @iluvpeanuts7919
    @iluvpeanuts7919 Před měsícem

    I am having troubles with trying to get a VM in proxmox to communicate with a device outside of proxmox, separated by a L2 switch. I configured the connection from the proxmox server to the switch to be a trunk port and the connection from the switch to the external device to be an access port, accessing vlan 10. As vmbr0 is being used for something else, I created another linux bridge vmbr1, which is linked to a subinterface, ens33.10, of my physical network interface, ens33 (chatgpt told me that I could do this). I then followed your video to create a linux vlan, which creates vmbr0.10 subinterface which is then use by proxmox to communicate with the internal VM. After all this set up, the internal VM is still unable to communicate with the external VM. Any ideas?

    • @VirtualizationHowto
      @VirtualizationHowto  Před měsícem

      @iluvpeanuts7919 Thank you for the comment! Do you mind creating a forum post under the Proxmox help forum? We can get into more detail to troubleshoot it there. Looking forward to diving in...here is a direct link to the proxmox help forum: www.virtualizationhowto.com/community/proxmox-help/

  • @jefffontenot1782
    @jefffontenot1782 Před 3 měsíci

    I wish someone could make a video where the installation is clear and makes sense.

    • @VirtualizationHowto
      @VirtualizationHowto  Před 3 měsíci

      @jefffontenot1782 thank you for the comment! Ping me on the forums if you need more detailed help in your environment: www.virtualizationhowto.com/community

  • @CyberCam1969
    @CyberCam1969 Před 5 měsíci +8

    I'm still looking for someone on YT to cover the OpenVSwitch configuration in Proxmox. Everyone and their dog does videos on the linux networking, but no one does the OpenVSwitch networking which is suppose to be better. Why? I'm really curious to know?

    • @VirtualizationHowto
      @VirtualizationHowto  Před 5 měsíci +3

      create a topic over on the VHT forums here: www.virtualizationhowto.com/community and let's discuss. Thank you for the comment!

    • @2008spoonman
      @2008spoonman Před 5 měsíci

      Configuring OVS in Proxmox is very easy. Not sure about CZcams tutorials but there are a few good websites that explain howto configure OVS. Just Google it.

    • @BitterRealist27
      @BitterRealist27 Před 4 měsíci

      czcams.com/video/t7qt1wlS9uA/video.htmlsi=slU7c-guRg2C58Bw
      Openvswitch pfsense

    • @Rivenlab
      @Rivenlab Před 3 měsíci

      Why do you want it to be covered in YT ? There is tons of tuto on google

    • @carbohydratespeter361
      @carbohydratespeter361 Před 3 měsíci

      There is like no good video on that I agree

  • @edd7
    @edd7 Před 4 měsíci +1

    What are the downsides of just tagging the vlan ID to each VM's Network Device without doing any of this setup?

  • @fbifido2
    @fbifido2 Před 5 měsíci

    @5:34 - why only 2 to 4094 ?
    does it not have vlan 1? (0 & 4095 is revs.)
    what about vxlan ?

    • @pepeshopping
      @pepeshopping Před 5 měsíci +1

      VLAN 1 is the default untagged vlan.

    • @fbifido2
      @fbifido2 Před 5 měsíci

      @@pepeshopping so, the command in that config file tells Proxmox to tagged vlan 2 to 4094?

    • @dieselwelds8645
      @dieselwelds8645 Před 5 měsíci +1

      ​​@@fbifido2vlan1 by default is the native vlan. Native vlan means the frames are untagged. So the command vlan 2-4094 is permitting all frames tagged within that range. If you changed it to say vlans 20, 40, & 60, but the network had vlans 10, 20, 30, 40, 50, & 60, the vswitch will block/drop any frames tag as 10, 30, & 50 while allowing vlans 20, 40, & 60.
      Thing of a trunk port as an access port, but instead of access vlan X it's native vlan X and any other vlan frames allowed on the trunk are tagged so the switch knows how to forward them

    • @VirtualizationHowto
      @VirtualizationHowto  Před 5 měsíci

      @fbifido2, thanks for the comment! Create a topic over on the VHT forums here: www.virtualizationhowto.com/community and let's discuss.

    • @dieselwelds8645
      @dieselwelds8645 Před 5 měsíci

      one thing to add to that too is if you do a pcap of a 802.1q trunk interface you will see frames in the pcap with 802.1q with the vlan ID listed.

  • @phybroptyx1999
    @phybroptyx1999 Před 5 měsíci

    Random question: Is Proxmox capable of implementing port mirroring/spanning?

    • @VirtualizationHowto
      @VirtualizationHowto  Před 5 měsíci

      @phybroptyx1999 join up on the VHT forums and let's discuss this: www.virtualizationhowto.com/community

  • @sudan911
    @sudan911 Před 4 měsíci

    i get blank screen when i use nano /etc/network/interface also at the top of your shell cli its an IP# PUTTY my say GNU NANO 7.2
    help?

  • @basudebbhanja1144
    @basudebbhanja1144 Před 5 měsíci

    Showing error Nested Virtualization Using Windows 11 and VMWare workstation When power on Eve in VMWARE showing error VMware Workstation
    Error whie powering on: VMware Player does not
    support nested virtualization on this host.
    Module 'HV power on faied.
    Faled to start the virtual machine.

    • @basudebbhanja1144
      @basudebbhanja1144 Před 5 měsíci

      Want to load Eve Ng and run Qemu in it but showing error

    • @VirtualizationHowto
      @VirtualizationHowto  Před 5 měsíci

      @basudebbhanja1144 hop over and sign up on the VHT forums and let's discuss this: www.virtualizationhowto.com/community

  • @netbin
    @netbin Před 5 měsíci

    First!

  • @alexanderwenger9304
    @alexanderwenger9304 Před 5 měsíci

    I used the same management IP as before and now I cant access my ProxMox anymore :(

    • @VirtualizationHowto
      @VirtualizationHowto  Před 5 měsíci

      @alexanderwenger9304 hey sign up over on the forums and I we can discuss it further to troubleshoot: www.virtualizationhowto.com/community.

  • @ianemenaja4222
    @ianemenaja4222 Před 3 měsíci

    How to config 2 nic and 2 Switch with vlan trunking. Port channel.😊😊

  • @roylavender7241
    @roylavender7241 Před 3 měsíci

    You really should learn a little about creating videos. All the cuts and the continuous auto focus are really distracting. With a little preparation, these should be easy to avoid.

    • @VirtualizationHowto
      @VirtualizationHowto  Před 3 měsíci

      @roylavender7241 Thank you for the comment and the constructive criticism. Always trying to get better, unfortunately video is not one of my strengths, but still learning :)

    • @roylavender7241
      @roylavender7241 Před 3 měsíci

      @@VirtualizationHowto The content was great. It really amazes me that Proxmox is still so un-polished when it comes to supporting something as simple as VLANs. I must admit I was dumbfounded that you had to jump through these hoops so I looked in a bunch of other places. Sure enough, this is what you need to do. I mean the CLI commands aren't difficult but come on, if you make a GUI for your product, you'd think it would support these basic functions. Especially after all this time. Anyway, thank you for the content.

    • @roylavender7241
      @roylavender7241 Před 3 měsíci

      Oh, and for your next video, just change the setting on your camera from continuous auto focus to single auto focus. Unless you are moving around a lot (which you aren't in videos like this), continuous auto focus is horrible. Its a simple, one-click, setting and makes the video look much more professional IMHO.