• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

[Solved] Problems with Proxmox/vlan-tagging/SG-2100 Switch config

Official Netgate® Hardware
4
24
4.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    furom
    last edited by furom May 9, 2023, 6:12 AM May 6, 2023, 4:11 PM

    Hi,

    I have issues I kindly ask for help with. Symptoms is a ProxmoxVE server which can't use vlan tags, even though it is configured to do so.

    PVE (proxmox) is connected directly to a switch port of the SG-2100, running in 802.1Q mode.

    I have the simplest config, just (4t,5t). If correct that should enable port 4 and make all my vlans available for whatever to make use of, right?

    I have tried to use "tcpdump -i <interface> -e" to see them, but can then only see a vlan tag matching the subnet I am on. Maybe that is to expect though. But if they are available (which I think), and Proxmox is correctly configured (which I also believe), where can I have the issue?

    I just made a test where I created a new vlan, assigned and set up DHCP etc and added the simplest rule ever "TCP any to any" which should not block much, but I got nowhere fast. No IP, nothing.

    I have been trying and digging, Googling and what-not the whole weekend so far, I would really need to get this working, so please, if you have an idea, please share.

    Thank you

    S 1 Reply Last reply May 6, 2023, 4:19 PM Reply Quote 0
    • S
      SteveITS Galactic Empire @furom
      last edited by May 6, 2023, 4:19 PM

      @furom If you’re trying to create a separate interface this guide will do it: https://docs.netgate.com/pfsense/en/latest/solutions/netgate-2100/configuring-the-switch-ports.html

      If the server is connected directly to the 2100 you don’t need to tag the packets. The guide assumes this is a separately wired network hence “4,5t”.

      Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
      When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
      Upvote 👍 helpful posts!

      F 1 Reply Last reply May 6, 2023, 4:30 PM Reply Quote 1
      • F
        furom @SteveITS
        last edited by furom May 6, 2023, 5:04 PM May 6, 2023, 4:30 PM

        @steveits said in Problems with Proxmox/vlan-tagging/SG-2100 Switch config:

        If the server is connected directly to the 2100 you don’t need to tag the packets. The guide assumes this is a separately wired network hence “4,5t”.

        Yes, PVE is directly connected, and could probably use native lan on the port, but would still need the vlan tags for it's virtual machines, as they live on different networks. I tried the config you suggested and did not get it to work any better unfortunately. The way Proxmox is configured now, it uses a tag on its own interface, and are also supposed to make all the other tags available to the VMs to use. The latter is is not the case at the moment...

        1 Reply Last reply Reply Quote 0
        • F
          furom
          last edited by May 7, 2023, 1:59 PM

          This isn't working right. Would this config create a "trunk" of tagged vlans on ports 3 & 4 on the the 2100?
          login-to-view
          Sorry for going at it, but really need this to work... :/ Any hint would be nice, thanks

          V 1 Reply Last reply May 7, 2023, 4:39 PM Reply Quote 0
          • V
            viragomann @furom
            last edited by May 7, 2023, 4:39 PM

            @furom
            Assuming pfSense is configured well, how did you configure Proxmox?
            What is your intention with the VLAN on Proxmox? Assigning it to the host or to VMs?

            F 1 Reply Last reply May 7, 2023, 7:12 PM Reply Quote 1
            • F
              furom @viragomann
              last edited by May 7, 2023, 7:12 PM

              @viragomann said in Problems with Proxmox/vlan-tagging/SG-2100 Switch config:

              @furom
              Assuming pfSense is configured well, how did you configure Proxmox?
              What is your intention with the VLAN on Proxmox? Assigning it to the host or to VMs?

              Yes, I want to assign vlans to the guest VMs. I used what I hoped should work from Proxmox manual, like this;

              auto lo
              iface lo inet loopback
              
              iface eno1 inet manual
              
              
              auto vmbr0.5
              iface vmbr0.5 inet static
                      address  10.10.10.2/24
                      gateway  10.10.10.1
              
              auto vmbr0
              iface vmbr0 inet manual
                      bridge-ports eno1
                      bridge-stp off
                      bridge-fd 0
                      bridge-vlan-aware yes
                      bridge-vids 2-4094
              
              V 1 Reply Last reply May 7, 2023, 7:32 PM Reply Quote 0
              • V
                viragomann @furom
                last edited by May 7, 2023, 7:32 PM

                @furom
                Seems to be a copy of the example from the Proxmox doc.
                I expect this to work, of course, but the question was your actual configuration.

                And all it shows, is the VLAN ID 5 configured on the host.
                But you say, you want to assign VLANs to the VMs. Which method? To you want Proxmox to do the VLAN tag tagging and untagging or do you want to configure VLANs within the VMs?

                What exactly does not work?

                F 1 Reply Last reply May 7, 2023, 7:41 PM Reply Quote 0
                • F
                  furom @viragomann
                  last edited by furom May 7, 2023, 7:49 PM May 7, 2023, 7:41 PM

                  @viragomann said in Problems with Proxmox/vlan-tagging/SG-2100 Switch config:

                  @furom
                  Seems to be a copy of the example from the Proxmox doc.

                  True, it is a copy of that. My config is exactly the same, apart from the vlan number and IP, everything else is identical.

                  By not working; If I try to install a VM using Ubuntu ISO for example, and have assigned a vlan tag to the machines NIC, it will not get an IP during the DHCP provisioning step. I even add the same vlan tag, but nothing.

                  Oh, so that only configures IP for the host... ? Then I misunderstood. An have no clue what I am missing for VMs to take part of provisioned vlans....

                  I would like to be able to assign a VMs NIC a vlan tag, essentially untagging it for the VM

                  V 1 Reply Last reply May 7, 2023, 7:47 PM Reply Quote 0
                  • V
                    viragomann @furom
                    last edited by May 7, 2023, 7:47 PM

                    @furom
                    The "bridge-vlan-aware yes" in the bridge settings gives you the VLAN option in the VM network settings. Check VLAN there and enter the ID.
                    This way Proxmox does the tagging and untagging and the VM OS is not aware of the VLAN.
                    It's like you can do on a VLAN capable switch.

                    F 1 Reply Last reply May 7, 2023, 8:07 PM Reply Quote 1
                    • F
                      furom @viragomann
                      last edited by May 7, 2023, 8:07 PM

                      @viragomann said in Problems with Proxmox/vlan-tagging/SG-2100 Switch config:

                      @furom
                      The "bridge-vlan-aware yes" in the bridge settings gives you the VLAN option in the VM network settings. Check VLAN there and enter the ID.
                      This way Proxmox does the tagging and untagging and the VM OS is not aware of the VLAN.
                      It's like you can do on a VLAN capable switch.

                      Oh... So essentially this?

                      bridge-vlan-aware yes
                      bridge-vids 2 5 10
                      

                      I thought the notation "2-4094" meant every vlan between 2 and 4094... I will try this at the earliest, thanks for sharing! :)

                      V 1 Reply Last reply May 7, 2023, 8:13 PM Reply Quote 0
                      • V
                        viragomann @furom
                        last edited by viragomann May 7, 2023, 8:17 PM May 7, 2023, 8:13 PM

                        @furom

                        No, the VM part is to be done in the GUI.

                        login-to-view

                        I thought the notation "2-4094" meant every vlan between 2 and 4094.

                        That's correct. With this option you can limit the VLANs to certain on the brigde. But for your purpose you can also keep the whole range here, I think.

                        F 1 Reply Last reply May 7, 2023, 8:33 PM Reply Quote 1
                        • F
                          furom @viragomann
                          last edited by May 7, 2023, 8:33 PM

                          @viragomann Then I'm confused. That is how I have done it... Server broke down on me so can't give screenshots, but the dialog you show is the one when configuring the VM, correct? In Hardware, on the NIC, I have "... tag=45" for instance. But it will not give the machine an IP on that network. That is why I thought the Proxmox config was off. But with what you say, Proxmox config is fine... Then the only thing left would be pfSense and/or the Netgate switch...

                          R 1 Reply Last reply May 7, 2023, 8:34 PM Reply Quote 0
                          • R
                            rcoleman-netgate Netgate @furom
                            last edited by May 7, 2023, 8:34 PM

                            @furom Is your PVE connected directly to the 2100 or through a second switch?

                            Ryan
                            Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                            Requesting firmware for your Netgate device? https://go.netgate.com
                            Switching: Mikrotik, Netgear, Extreme
                            Wireless: Aruba, Ubiquiti

                            F 1 Reply Last reply May 8, 2023, 3:48 AM Reply Quote 1
                            • F
                              furom @rcoleman-netgate
                              last edited by furom May 8, 2023, 9:56 AM May 8, 2023, 3:48 AM

                              @rcoleman-netgate said in Problems with Proxmox/vlan-tagging/SG-2100 Switch config:

                              @furom Is your PVE connected directly to the 2100 or through a second switch?

                              Yes, PVE is directly connected to the 2100's built-in switch port #3, (pic above)

                              1 Reply Last reply Reply Quote 0
                              • F
                                furom
                                last edited by furom May 8, 2023, 4:07 PM May 8, 2023, 3:58 PM

                                This is the config of one VM which won't get an IP on defined vlan (in fact no IP at all to be exact);
                                login-to-view
                                And the Proxmox config;

                                auto lo
                                iface lo inet loopback
                                
                                iface eno1 inet manual
                                
                                auto vmbr0.22
                                iface vmbr0.22 inet static
                                        address 192.168.22.2/28
                                        gateway 192.168.22.1
                                
                                auto vmbr0
                                iface vmbr0 inet static
                                        bridge-ports eno1
                                        bridge-stp off
                                        bridge-fd 0
                                        bridge-vlan-aware yes
                                        bridge-vids 2-500
                                

                                Edit: I just now tried editing the last line, just specifying two vland id's, like "bridge-vids 30 44", but still refuse to work...

                                What am I missing? I read and read and test, still not working. And I'm repeatedly told I won't need any rules for DHCP...

                                R V 2 Replies Last reply May 8, 2023, 4:07 PM Reply Quote 0
                                • R
                                  rcoleman-netgate Netgate @furom
                                  last edited by May 8, 2023, 4:07 PM

                                  @furom Do an unfiltered packet capture on the VLAN on pfSense (https://docs.netgate.com/pfsense/en/latest/diagnostics/packetcapture/index.html) and filter against UDP 68 with a limit of 0 packets and see if the traffic is even getting there... or if it is getting there and responding...

                                  I suspect the issue is in your PVE config

                                  Ryan
                                  Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                                  Requesting firmware for your Netgate device? https://go.netgate.com
                                  Switching: Mikrotik, Netgear, Extreme
                                  Wireless: Aruba, Ubiquiti

                                  F 2 Replies Last reply May 8, 2023, 4:33 PM Reply Quote 1
                                  • F
                                    furom @rcoleman-netgate
                                    last edited by furom May 8, 2023, 4:41 PM May 8, 2023, 4:33 PM

                                    @rcoleman-netgate said in Problems with Proxmox/vlan-tagging/SG-2100 Switch config:

                                    @furom Do an unfiltered packet capture on the VLAN on pfSense (https://docs.netgate.com/pfsense/en/latest/diagnostics/packetcapture/index.html) and filter against UDP 68 with a limit of 0 packets and see if the traffic is even getting there... or if it is getting there and responding...

                                    I suspect the issue is in your PVE config

                                    Just so I get this right, I am supposed to do this from a VLAN that is not working, or from pfSense? I'm not used capturing other than quite simple tcpdumps, but will figure it out I hope :)

                                    Edit: I tried this from pfSense, and started a machine that should've requested an IP - nothing.

                                    [root@pfSense ~]# tcpdump -ni mvneta1.30 udp port 68
                                    
                                    R 1 Reply Last reply May 8, 2023, 4:52 PM Reply Quote 0
                                    • R
                                      rcoleman-netgate Netgate @furom
                                      last edited by May 8, 2023, 4:52 PM

                                      @furom the GUI in pfSense makes the PCAP easier... that's why I linked you to how to perform the packet capture in our documentation.

                                      Ryan
                                      Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                                      Requesting firmware for your Netgate device? https://go.netgate.com
                                      Switching: Mikrotik, Netgear, Extreme
                                      Wireless: Aruba, Ubiquiti

                                      F 1 Reply Last reply May 8, 2023, 4:59 PM Reply Quote 1
                                      • F
                                        furom @rcoleman-netgate
                                        last edited by May 8, 2023, 4:59 PM

                                        @rcoleman-netgate Sorry. I used the GUI and I can see Proxmox trying something from its own GUI, I don't get anything in the PCAP....

                                        1 Reply Last reply Reply Quote 0
                                        • V
                                          viragomann @furom
                                          last edited by May 8, 2023, 5:02 PM

                                          @furom
                                          You have enabled the Firewall on the VMs virtual NIC. Did you also configure it properly to allow access?

                                          F 1 Reply Last reply May 8, 2023, 5:08 PM Reply Quote 0
                                          8 out of 24
                                          • First post
                                            8/24
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.