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

    Creating vlan and testing via direct Windows PC connection

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    11 Posts 4 Posters 380 Views
    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.
    • K
      kscrib
      last edited by

      I have a netgate SG-5100 with 6 physical ports.

      I am trying to setup vlans (I am new to this).

      To test, I created a vlan on port IX0, added the DHCP server, and pass all firewall rule. I then plug a Windows PC directly into that port. If I force the PC to an IP address in the range of the subnet, it will not connect. If I use DHCP, the PC does get an IP address from the DHCP server.

      Is my test of connecting a PC directly to the SG-5100 a valid test? I was trying to remove the complexity of the managed switch. I have an older CISCO_2960s, which is not as user friendly. So, since I did not trust how I configured the switch, I wanted to make sure that pfsense was working first.

      My long-term strategy is one VLAN for IP security cameras, one VLAN for IOT and default vlan for all other traffic. I was thinking about using open physical port on the SG-5100 per VLAN since I have ample ports on the Cisco switch.

      99fd5c3f-438f-4351-99d5-1ce6e743491e-image.png

      79c6bd8e-8cfb-4606-817c-ad342d431f5f-image.png

      be276bc2-2e88-4d7b-8497-a3befbad7355-image.png

      0272fb50-9a9e-4f2a-8475-766dbe9c4056-image.png

      4f8033bc-3a5a-4183-8303-32407cb01314-image.png

      41c71b1d-0427-4204-8891-f50ec76dae8f-image.png

      johnpozJ J 2 Replies Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @kscrib
        last edited by johnpoz

        @kscrib if you connect a device directly to the port and you want it on a vlan that is riding on that port then you need to tell the device about the tag it should use.

        In windows you should be able to set that via nic driver.. Example

        vlanid.jpg

        So if you wanted your PC to be on the camera vlan 102, you would set the id to be 102

        If you do not it will just ignore any traffic with a vlan id 102 set, and any traffic the pc sends out would not have a tag, and pfsense wouldn't know its suppose to be on the vlan.

        Normally the switch handles the tags, and your device doesn't need to know anything about them because the port on the switch knows any traffic from this port goes on vlan X, and then when it sends the traffic to pfsense interface the switch adds the vlan tag so pfsense knows that traffic is on vlan X.

        But if you don't have a switch in between - then the device itself has to know about the tag to use.

        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

        K 1 Reply Last reply Reply Quote 0
        • K
          kscrib @johnpoz
          last edited by

          @johnpoz

          I take this to mean that my network adapter does not support manually setting the vlan since it is not a configuration option.

          8053e5fd-78df-4f6c-ad1f-1afb62b8b149-image.png

          K 1 Reply Last reply Reply Quote 0
          • K
            kscrib @kscrib
            last edited by

            Upon further research - windows 11 and my intel driver don't support manually setting the vlan. I have a different switch at another location I can get that I will use to test my pfsense configuration.

            johnpozJ 1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @kscrib
              last edited by

              @kscrib you could look for a better driver.. Is that just the default driver windows installed? You could look for a driver from intel.

              There was a thread not that long ago where someone had a very limited options on the nic, they updated the driver and then much more settings available.

              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
              • J
                Jarhead @kscrib
                last edited by Jarhead

                @kscrib Looks like you assigned the vlan to a port that isn't even assigned. Not even sure how you could do that??
                It shows VLAN 102 on ix0 but then ix0 shows as available network port.

                Also, look for the Intel PROset driver, it does VLAN's.

                K 1 Reply Last reply Reply Quote 0
                • K
                  kscrib @Jarhead
                  last edited by

                  @Jarhead - Intel Proset is not supported/available for Windows 11. I assign the interface to the vlan assignment tab

                  c688bd38-fd46-4282-9fb1-ca127496d28a-image.png

                  Then I use that VLAN to assign to an interface. If I am doing that wrong, it could be the root of my problem. Is there a different approach?

                  I have a Netgear GS108PE that does support VLAN.

                  I have a cable from the SG-5100 going to port 1 on the Netgear. Port 1 is configured as Trunk allow. The PC is connected to port 7 which is configured as Access VLAN 102

                  So, I now can get the correct IP address and default gateway from the DHCP server. But what is really odd, is that once I get that IP address, I can't ping the default gateway....

                  d72d8206-50d6-473a-9305-ae5607c31816-image.png

                  f236fe0e-b1ef-4bf5-8c43-db3b97291a5b-image.png

                  I have not changed the pfsense configuration that is listed in the original post.

                  patient0P 1 Reply Last reply Reply Quote 0
                  • patient0P
                    patient0 @kscrib
                    last edited by

                    @kscrib In your firewall rule for the CAMERAS network you have set the source to 'CAMERAS address'. That will only allow the CAMERAS interface address to go out. What you want is source set to 'CAMERAS subnets'

                    K 2 Replies Last reply Reply Quote 1
                    • K
                      kscrib @patient0
                      last edited by

                      @patient0 That has to be the answer! Thank you!!!

                      I am away from the system for a few days, but will implement this when I get back on-site. I will up vote once I validate. But I bet you have it nailed.

                      patient0P 1 Reply Last reply Reply Quote 0
                      • patient0P
                        patient0 @kscrib
                        last edited by

                        @kscrib said in Creating vlan and testing via direct Windows PC connection:

                        but will implement this when I get back on-site. I will up vote once I validate.

                        That sounds like a plan 👍

                        1 Reply Last reply Reply Quote 0
                        • K
                          kscrib @patient0
                          last edited by

                          @patient0 - I have larger problems (which I can handle). The SSD in the 5100 has crapped out. It started with lots of odd errors, which this appears to be one of. But config files started having errors. And then the 5100 would not boot. I have ordered a new SSD and will recover from there.

                          Thanks for the help! You had me in the right direction!!

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.