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

Server gets DHCP IP not from the VLAN it should

Scheduled Pinned Locked Moved L2/Switching/VLANs
2 Posts 1 Posters 188 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.
  • L
    left4apple
    last edited by left4apple Jun 5, 2023, 4:35 AM Jun 5, 2023, 4:20 AM

    Update: Solved! Please see the first reply.


    First, huge thanks for the effort of contributing the Intel I-225v driver!

    I have a pfSense installation on a 4 NIC (Intel I-225V) mini-PC, versioning 2.6.0-RELEASE. I want to connect a managed-switch TP-Link SG108e to separate a public-accessible server, so apart from the normal CIDR range on that port(10.3.0.0/24) I added a VLAN2 under 192.168.2.1/24.

    Screenshot 2023-06-04 at 21.01.41.png

    ... then added an interface on VLAN2, with 192.168.2.1/24. Firewall rule was added to allow all traffic on VLAN2 and DHCP was also enabled with the correct range.

    Screenshot 2023-06-04 at 21.18.51.png

    The managed switch is connected to pfSense via port 1. Port 8 is connected to the isolated server. Here's the setting in the managed switch(see item:

    07e10507-b483-4b42-aec9-f730e8106a52-image.png

    However, with this setting, the server receives 10.3.0.10 from DHCP, not from VLAN2. May I ask if there's anything wrong in my configuration?


    I

    1 Reply Last reply Reply Quote 0
    • L
      left4apple
      last edited by left4apple Jun 5, 2023, 4:36 AM Jun 5, 2023, 4:29 AM

      Update: This may not be a misconfiguration on pfSense side. I connected the isolated server directly to the pfSense port and created a VLAN2 on the server. It successfully got IP from VLAN2 DHCP server.

      So maybe the problem is how I configured the managed switch? Completely no clue😂


      Update 2: Solved! I forgot to set the PVID. It should match the VLAN ID on the port. Explained by ChatGPT:

      When a frame comes into a port without a VLAN tag, the switch needs to know what VLAN that traffic should belong to. The PVID is the mechanism that does this. When the switch receives untagged traffic on a port, it assumes that the traffic belongs to the VLAN specified by the PVID for that port.

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received