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

I can't get VLANs to work / No DHCP

Virtualization
7
57
12.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.
  • R
    rcoleman-netgate Netgate @RobH 0
    last edited by Mar 2, 2022, 12:06 AM

    @robh-0 What is the VLAN interface set up as?

    Interfaces -> Assignments -->> VLANs tab

    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

    R 1 Reply Last reply Mar 2, 2022, 12:10 AM Reply Quote 0
    • R
      RobH 0 @rcoleman-netgate
      last edited by RobH 0 Mar 2, 2022, 12:10 AM Mar 2, 2022, 12:10 AM

      @rcoleman-netgate

      I'm seeing my ICMPs in the packet capture now.

      00:06:57.805004 IP 192.168.180.100 > 192.168.180.1: ICMP echo request, id 18010, seq 1111, length 9
      00:06:57.805449 IP 192.168.180.1 > 192.168.180.100: ICMP echo reply, id 18010, seq 1111, length 9
      00:06:58.242111 IP 192.168.180.100.42154 > 34.107.221.82.80: tcp 1
      00:06:58.242119 IP 192.168.180.100.16373 > 34.107.221.82.80: tcp 1
      00:06:58.308145 IP 34.107.221.82.80 > 192.168.180.100.42154: tcp 0
      00:06:58.308184 IP 34.107.221.82.80 > 192.168.180.100.16373: tcp 0

      R 1 Reply Last reply Mar 2, 2022, 12:11 AM Reply Quote 0
      • R
        rcoleman-netgate Netgate @RobH 0
        last edited by Mar 2, 2022, 12:11 AM

        @robh-0 Looks like you changed something that makes the traffic pass. Well done! DHCP should work now, too

        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

        R 1 Reply Last reply Mar 2, 2022, 12:12 AM Reply Quote 0
        • R
          RobH 0 @rcoleman-netgate
          last edited by RobH 0 Mar 2, 2022, 12:18 AM Mar 2, 2022, 12:12 AM

          @rcoleman-netgate

          Crap, that packet capture was invalid, I had the wrong interface selected. I'm still seeing nothing on the VLAN. That was the WAN interface.

          🔒 Log in to view

          🔒 Log in to view

          J 1 Reply Last reply Mar 2, 2022, 3:12 AM Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator @RobH 0
            last edited by johnpoz Mar 2, 2022, 3:45 AM Mar 2, 2022, 3:12 AM

            @robh-0 that looks wrong completely..

            And trunk all means nothing... Where is the vlan tagged on your switch for 108, sure you trunk it to the physical interface on esxi device... But still has to be tagged... trunk all is nonsense term.. What vlans were allowed, what vlans were setup on the switch.

            Where is the access port for your devices you want in vlan 108..

            Why are you setting vlan 108 on a switch port? unless you tagged that into esxi on vlan 108.. You wouldn't set any vlan in pfsense then.

            I have gone over there countless times here on the forums... Let me see if I can dig up one of the old threads..

            Where is the setup in pfsense.. your calling it pfsense lan.. but you have that on vlan id set to 4095.. So what tags were you sending it - sure couldn't be 4095, that is special ID in esxi to pass through tags, like 108..

            edit: btw

            ESXi 6.5.0, Update 1

            That is OLD!!! it sure doesn't support freebsd 12.3 that 2.6 runs on... Current version of esxi is 7.0 update 3c.. Why are you using esxi from 2017, that is EOL?

            If your going to create a vlan 108 port group, then you would create a new virtual nic for pfsense and use it for that network, but there would be not vlan in pfsense - pfsense would see that as an untagged network.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            R 1 Reply Last reply Mar 2, 2022, 1:58 PM Reply Quote 0
            • R
              RobH 0 @johnpoz
              last edited by RobH 0 Mar 2, 2022, 2:07 PM Mar 2, 2022, 1:58 PM

              @johnpoz These are Unifi switches, so what would normally be called a trunk is called "ALL" in the Unifi world.

              🔒 Log in to view

              This is passing all VLANs to the physical NIC in the host.

              I have also tried this configuration without VLANs in pfSense, using instead the port group that is assigned to VLAN 108, and that does not work either.

              🔒 Log in to view

              As to why I'm running such an old ESXi - It's a home server. I've only upgraded it once in its lifetime. It is in a secure environment, and it's only my wife and I at home. Yes, I run stuff on it that I need to be running, but for the most part I do this so that I'm not completely hands-off working in production networks, as I moved into InfoSec and then InfoSec Audit several years ago.

              J R 2 Replies Last reply Mar 2, 2022, 2:23 PM Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator @RobH 0
                last edited by johnpoz Mar 2, 2022, 2:27 PM Mar 2, 2022, 2:23 PM

                @robh-0 said in I can't get VLANs to work / No DHCP:

                as I moved into InfoSec

                And you don't understand how vlans work? On the unifi switch you still have to create the vlan.. Did you do that for 108? 4095 as an ID is not a valid vlan for esxi.. Did you connect this device in your other port where vlan 108 was set?

                You created an interface in pfsense vm that it sees as em2... If you put em2 in the port group you set with vlan 108.. As tagged traffic comes into esxi through its physical port it would send that tagged traffic stripped of its tag to this vlan 108 port group.

                What makes no sense if you have not assigned vlan 108.. So this could not be setup. Did you actually setup whatever network you want to run on em2? Native - since if that virtual nic you created for pfsense is in port group 108.. That traffic would be untagged.

                As to upgrading - I don't care if sitting in a closet not connected to anything other than a laptop all airgaped.. How exactly are you in infosec and just continue a FREE product that is EOL? Its not like its 3k and you don't have the money to upgrade - esxi is FREE.. Just upgrade to current. Also I highly doubt it supports the OS your trying to run - so you have no idea what sort of issues trying to run freebsd 12.3 OS on such old version of esxi..

                I would suggest you upgrade to current esxi, and then also correctly setup your vswitches and port groups to do what you want, be the traffic tagged or untagged from pfsense perspective.

                Your in infosec audit - so pretty much you yell at people all day about how they need to stay current with versions and patches.. But then you have a specific EOL version that is 5 some years old running at home ;)

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                R 1 Reply Last reply Mar 2, 2022, 2:39 PM Reply Quote 0
                • R
                  RobH 0 @johnpoz
                  last edited by Mar 2, 2022, 2:39 PM

                  @johnpoz Yes, I understand how VLANs work.

                  If you scroll up, you'll see a screenshot that shows VLAN108 and pfsenseLAN tied to the same physical port in my vSwitch topology.

                  Yes, I created the VLANs on the switch. I have multiple VLANs, all working fine, and have for years. I created two new VLANs just for this project, but the other ones have been there a long time and working great.
                  Yes, I created an interface that it sees as EM2. I have tried both sending the stripped traffic to that, and I've tried assigning a VLAN in pfSense. Neither works.

                  I'm working on getting the upgrade to 7.0 right now. I'm logged in to the VMWare site, I just can't get the manual download button to work. I seem to have this problem with their site every time I go out there, yet another reason I probably haven't upgraded, the site is frustrating. I've also moved and other things over the years, it has been a time thing.

                  No, I do not yell at anyone. :) In fact, at the start of this year I moved out of managing the audit team and now I'm on the policy and standard group. Now I have no employees, and I don't have to talk to anyone about their security practices anymore.

                  Hey, at least I can just wipe this VM and start over, it only takes a minute or so to reinstall pfSense.

                  J 1 Reply Last reply Mar 2, 2022, 5:14 PM Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator @RobH 0
                    last edited by johnpoz Mar 2, 2022, 5:18 PM Mar 2, 2022, 5:14 PM

                    @robh-0 your download issue prob related to blocking, pihole or adblocker, etc.

                    I did see what you were talking about, I then set adblock off on this page - same issue. So then pointed my client to just unfiltered dns (pfsense vs pihole).. And restarted browser to clear its cache and download no problem.

                    🔒 Log in to view

                    As to your vlan - I don't show your vlan actually assigned to an interface.. And if your going to do vlan 108 untagged to pfsense, then you would need that setup for network and dhcp directly on the em2 interface.

                    🔒 Log in to view

                    So here you can see I have vlans actually assigned to an interface.

                    🔒 Log in to view

                    So those pfsense needs to see the tags come in on that igb2, if untagged then its on the native vlan

                    🔒 Log in to view

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                    1 Reply Last reply Reply Quote 0
                    • R
                      RobH 0 @RobH 0
                      last edited by RobH 0 Mar 2, 2022, 5:48 PM Mar 2, 2022, 5:47 PM

                      @robh-0 7.0 Update 3 installed. I'm going to do a new install for pfSense just to make sure I don't have any compatibility issues on the last install.

                      Thank you for those images, they are very helpful.

                      J R 2 Replies Last reply Mar 2, 2022, 6:12 PM Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator @RobH 0
                        last edited by johnpoz Mar 2, 2022, 6:13 PM Mar 2, 2022, 6:12 PM

                        @robh-0 I use to run pfsense on esxi for years.. But since I got my sg4860, and got rid of my esxi box for just a nas that I run a few vms I need, I haven't played with it since prob 2018. I was running esxi 6.7 back then.

                        I do have my old esxi box still on the shelf - maybe I could fire it up and install the 7 update 3c I just downloaded - and just leave it for reference when others have issues with vlans, etc.

                        I do have a esxi flex mini switch I could play with - and throw that into the mix as well - just not sure when I could get around to that.. Maybe this weekend.. I had it up and running with some vlans for test... But until I replace the other vlan switch I have behind my tv with it, I pulled it out of the network. Overall I wasn't all that impressed with it, other than how freaking small it was ;)

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                        B 1 Reply Last reply Mar 2, 2022, 6:16 PM Reply Quote 0
                        • B
                          bingo600 @johnpoz
                          last edited by Mar 2, 2022, 6:16 PM

                          @johnpoz
                          I hope you have an Intel NIC in the VMvare Box ....
                          My little "NUC lookalike" (Acer) has a realtek , and i slipstreamed the "old" realtek (linux subsystem) driver in.

                          Guess what subsystem has been deprecated in 7.x ... 😠

                          On 6.7 forever ....

                          /Bingo

                          If you find my answer useful - Please give the post a 👍 - "thumbs up"

                          pfSense+ 23.05.1 (ZFS)

                          QOTOM-Q355G4 Quad Lan.
                          CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                          LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

                          J 1 Reply Last reply Mar 2, 2022, 6:25 PM Reply Quote 0
                          • J
                            johnpoz LAYER 8 Global Moderator @bingo600
                            last edited by Mar 2, 2022, 6:25 PM

                            @bingo600 Its an old Gen 8 HP microserver.. I do believe I had a 2 port HP intel nic in it.. low profile ;)

                            Have to pull it off the shelf and fire it up.. I had pulled all the disks out of it, but think I have 128GB ssd I could use to test it out with.. enough to get a pfsense up and running on it, from looking real quick, looks like freebsd 12.x was added in 6.7 - so its possible something odd with the old 6.5 and freebsd.. You could quite often get OS that were not officially supported to work.. But always better to be an actual supported guest OS.

                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                            If you get confused: Listen to the Music Play
                            Please don't Chat/PM me for help, unless mod related
                            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                            1 Reply Last reply Reply Quote 0
                            • R
                              RobH 0 @RobH 0
                              last edited by Mar 2, 2022, 6:31 PM

                              @robh-0 OK here's the new install:

                              VLAN assigned to VLAN Tag 108, I still can't ping it from 192.168.108.20. Like I was saying, I know I'm missing something simple here, just can't figure out what. I've also tried sending it a trunk with VLAN108 tagged, and I've tried sending it just 108, untagged

                              🔒 Log in to view

                              🔒 Log in to view

                              🔒 Log in to view

                              🔒 Log in to view

                              @bingo600 Twin, real Intel Quad Port cards. Everything is working great. I did notice though when I did the upgrade that they said my poor old Xeon E3-1246 v3 may not be supported in future releases.

                              🔒 Log in to view

                              1 Reply Last reply Reply Quote 0
                              • R
                                RobH 0
                                last edited by Mar 2, 2022, 6:37 PM

                                Oh, and I did add the firewall rule back, just forgot to share that.
                                🔒 Log in to view

                                J 1 Reply Last reply Mar 2, 2022, 6:40 PM Reply Quote 0
                                • J
                                  johnpoz LAYER 8 Global Moderator @RobH 0
                                  last edited by johnpoz Mar 2, 2022, 6:43 PM Mar 2, 2022, 6:40 PM

                                  @robh-0 ok if your setting it up on pfsense as tagged, then it needs to be connected to a vswitch/port group that has vlan 4095 ID set so it doesn't strip the tags.

                                  Did you assign anything on this em2? If you have your lan interface on a vswitch/port group with vlan ID 4095 set, then put this vlan on that interface on pfsense. looks like em1

                                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                                  If you get confused: Listen to the Music Play
                                  Please don't Chat/PM me for help, unless mod related
                                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                  R 1 Reply Last reply Mar 2, 2022, 6:48 PM Reply Quote 0
                                  • R
                                    RobH 0 @johnpoz
                                    last edited by Mar 2, 2022, 6:48 PM

                                    @johnpoz This is what I have.

                                    🔒 Log in to view

                                    I tried it assigned as shown in the first screenshot in my last page, and a trunk port going to that. Doesn't work. So then I tried native 108 to that port and just using EM2, that doesn't work. And I tried every combination of those I could think of, and saw no change. I'm starting to get to the point that I want to build a non-VM machine for this, but that seems like a waste of my closet space and would add more heat, I really want to use the VM host.

                                    J 1 Reply Last reply Mar 2, 2022, 6:59 PM Reply Quote 0
                                    • J
                                      johnpoz LAYER 8 Global Moderator @RobH 0
                                      last edited by johnpoz Mar 2, 2022, 7:04 PM Mar 2, 2022, 6:59 PM

                                      @robh-0 and what interface of your virtual pfsense is connected to thse port groups. They have the same mac..

                                      So what specific interface is connected to these. If your going to connect em2 to vlan 108, then there should be a different mac. And this em2 should just be native, no vlan setup on it.

                                      If your going to put your vlan on the interface connected to this 4095 port group. Then your vlan should be on that - em1? since I take that is your lan interface and working..

                                      if your sending tagged traffic then the interface that is in the 4095 should see it and the tag..

                                      Example.. If I sniff on my igb2, I can see tagged traffic.

                                      Set to full verbose level

                                      🔒 Log in to view

                                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                                      If you get confused: Listen to the Music Play
                                      Please don't Chat/PM me for help, unless mod related
                                      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                      R 1 Reply Last reply Mar 2, 2022, 7:01 PM Reply Quote 0
                                      • R
                                        RobH 0 @johnpoz
                                        last edited by Mar 2, 2022, 7:01 PM

                                        @johnpoz I was just thinking that. I'm going to delete EM2 and put it on EM1. I was following the official documentation from pfSense as best I could, and they had me setting up a second interface - a virtual one. So give me a minute and I'll reconfigure.

                                        J 1 Reply Last reply Mar 2, 2022, 7:05 PM Reply Quote 0
                                        • J
                                          johnpoz LAYER 8 Global Moderator @RobH 0
                                          last edited by Mar 2, 2022, 7:05 PM

                                          @robh-0 See my edit with showing tags... If your sending stuff tagged that whatever interface is on the 4095 then your vlans are working... If your not seeing any tags, then you have a problem..

                                          You can also see there is untagged traffic being seen as well.

                                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                                          If you get confused: Listen to the Music Play
                                          Please don't Chat/PM me for help, unless mod related
                                          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                          R 1 Reply Last reply Mar 2, 2022, 7:18 PM Reply Quote 0
                                          25 out of 57
                                          • First post
                                            25/57
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.