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

    vlan works allocates dhcp and web access only when connected to LAN port and stop when connected to switch or AP

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    5 Posts 2 Posters 729 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.
    • S
      shtrull
      last edited by

      hi all,
      I have a VLAN that routes traffic to wan 2
      I configured VLAN on my new pfsense,
      I connected the LAN port to my mac and a VLAN my interface and VLAN and my regular LAN both work great and both get DHCP addresses

      my problem starts when I connect my LAN to my managed switch,
      (for now, only I am connected via LAN to the switch and switch to the pfsense,
      my regular network gets a DHCP but my VLAN won't get DHCP, and if I set the address manually it won't connect to the web.
      same setup but this time via the switch.
      I also tried to connect to the switch my Aruba ap 207 and there I set up a guest network that should go to my VLAN (id 30) and again no DHCP and no connection to the web when entered manually.

      what am I missing?

      thanks
      ofir

      JKnottJ 1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott @shtrull
        last edited by

        @shtrull said in vlan works allocates dhcp and web access only when connected to LAN port and stop when connected to switch or AP:

        what am I missing?

        What's the managed switch configured for? It has to pass the same VLAN as used on the Mac. You mention the AP is configured for VLAN 30, but didn't mention what the computer was configured for. You need the computer, switch and AP all configured for the same VLAN. You'll also have to ensure the DHCP server is configured for the VLAN interface.

        BTW, does your computer have a Mac address? 😉

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        1 Reply Last reply Reply Quote 0
        • S
          shtrull
          last edited by

          first, I configured the AP to VLAN 30 of course.
          I tried to configure the switch but it gave me only a per-port VLAN and I need my AP to be for both vlan and plan together
          shouldn't the switch transfer the VLAN to any client that is configured to accept the VLAN with the right configuration? not matter of the switch?

          and the VLAN has DHCP configured and when Connecting to the port of the pfsense it works straight away

          1 Reply Last reply Reply Quote 0
          • JKnottJ
            JKnott
            last edited by

            You need to configure a trunk port on the switch, for both the firewall and AP. Other ports can be configured as access ports on specific VLANs. You again said VLAN 30 on the AP, but no mention of the switch or pfSense. Are they also configured for 30?

            PfSense running on Qotom mini PC
            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
            UniFi AC-Lite access point

            I haven't lost my mind. It's around here...somewhere...

            S 1 Reply Last reply Reply Quote 1
            • S
              shtrull @JKnott
              last edited by

              @jknott thanks for your help,
              finely i got it to work, i needed to add the VLAN to the switch and then tag the ports i want to transfer the VLAN with

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