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

VLAN's DHCP pool needed?

Scheduled Pinned Locked Moved DHCP and DNS
24 Posts 3 Posters 2.0k 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.
  • T
    tknospdr @johnpoz
    last edited by Jul 14, 2023, 11:40 AM

    @johnpoz

    So back to my question, if VLANs generally exist in a space where clients don't know anything about them, what's the reason for adding DHCP to a VLAN interface?

    Unlike most people, I don't want to just find a recipe online and follow it blindly. I want to learn what I'm doing and why, makes it easier later on if a change needs to be made.

    J 1 Reply Last reply Jul 14, 2023, 11:46 AM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @tknospdr
      last edited by Jul 14, 2023, 11:46 AM

      @tknospdr you add a dhcp server to a network if you want to provide dhcp if it’s a vlan interface in pfsense that is where you would see it - your question make no sense to be honest

      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.8, 24.11

      T 1 Reply Last reply Jul 14, 2023, 5:57 PM Reply Quote 0
      • T
        tknospdr @johnpoz
        last edited by Jul 14, 2023, 5:57 PM

        @johnpoz

        I know what the purpose of DHCP is.
        My question had to do with why you would put one on a VLAN interface as opposed to the underlying interface?

        I'm just trying to figure things out, like I said, I'm very new to all this. I thought putting a VLAN on an interface just tagged it so that it knew to either talk to or ignore other devices based on their VLAN status even across subnets or physical interfaces.

        So if I want to use VLANs I should have them distribute IP addresses instead of the parent interface it's attached to?

        I'm trying to learn best practices.

        I've got another thread started where I lay out what I want to do looking for help with the best way to accomplish it:
        https://forum.netgate.com/topic/181507/best-topology-for-my-network?_=1689355990131

        T S J 3 Replies Last reply Jul 14, 2023, 6:28 PM Reply Quote 0
        • T
          tknospdr @tknospdr
          last edited by tknospdr Jul 14, 2023, 6:28 PM Jul 14, 2023, 6:28 PM

          So I guess maybe my stumbling block is I keep thinking in terms of devices directly connected to the interfaces on the router.

          Let me try drawing a diagram of how I think things should work when I add a managed switch into the mix and see if I'm on the right track.

          Will be back soon with my masterpiece. Have to go fix a few computers... work keeps getting in the way of my learning curve.

          1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @tknospdr
            last edited by Jul 14, 2023, 6:34 PM

            @tknospdr said in VLAN's DHCP pool needed?:

            why you would put one on a VLAN interface as opposed to the underlying interface

            A VLAN is a separate network. A Virtual LAN. So devices on the VLAN can use static IPs, or DHCP, just like any other network. It shouldn't be possible for a device on a VLAN to get an address from a DHCP server not on that VLAN, unless something is very wrong.

            A VLAN in pfSense would have its own subnet and firewall rules.

            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!

            1 Reply Last reply Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator @tknospdr
              last edited by Jul 14, 2023, 7:05 PM

              @tknospdr said in VLAN's DHCP pool needed?:

              why you would put one on a VLAN interface as opposed to the underlying interface?

              Because that is the vlan interface.. You would also want one on the native untagged network if you have one.. I take you just not grasping what a vlan actually is?

              How would you have 2 dhcp servers on the same layer 2 network.. Vlans isolate networks layer 2..

              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.8, 24.11

              T 1 Reply Last reply Jul 14, 2023, 8:25 PM Reply Quote 0
              • T
                tknospdr @johnpoz
                last edited by Jul 14, 2023, 8:25 PM

                @johnpoz

                I don't think I was grasping the entire picture RE VLANs. I think I'm getting it now. At least I hope I am.

                Based on the diagram here:
                https://www.icloud.com/sharedalbum/#B135M7GFPMGqUs;BB4B934D-0B4E-49A3-B175-4722303F194C

                PFS LAN interface has DHCP enabled for both parent and VLAN 10. ETH3 is a VLAN 10 interface that has a static IP address with no DHCP.
                A is a computer with a static IP address in the same subnet as ETH3's.
                B is my managed switch; P1 trunks VID 1 (untagged) and 10 (tagged), P4 is untagged VID 1, P5 is untagged VID 10
                C and D are both computers with DHCP on them

                As long as pfs's FW doesn't block traffic, A and D are on the same LAN and can see each other, and C is on a different LAN, isolated from the other 2.

                Am I getting warmer?

                J S 2 Replies Last reply Jul 14, 2023, 8:58 PM Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator @tknospdr
                  last edited by johnpoz Jul 14, 2023, 9:01 PM Jul 14, 2023, 8:58 PM

                  @tknospdr said in VLAN's DHCP pool needed?:

                  ETH3 is a VLAN 10 interface

                  Huh? Are you bridging interfaces - do you have a netgate appliance that has switch ports?

                  You can not put discrete interfaces into the same network.. Without bridging them..

                  If your pfsense box has built in switch, then sure you could have multiple interfaces in vlan 10?

                  Do you have like a sg2100, this has switch ports that can be used like your drawing

                  "Four 1 Gigabit Ethernet LAN ports (Marvell 88E6141 switch)"

                  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.8, 24.11

                  1 Reply Last reply Reply Quote 0
                  • S
                    SteveITS Galactic Empire @tknospdr
                    last edited by Jul 15, 2023, 12:25 AM

                    @tknospdr I suspect you’re thinking that you can set up the same VLAN on two interfaces and have them communicate. This is incorrect (without bridging). pfSense won’t know which interface should receive the packet. It’s like putting two hardware NICs and putting the same subnet on each.

                    A managed switch can do this because it’s not designed for each port to be independent.

                    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!

                    T 1 Reply Last reply Jul 15, 2023, 3:07 AM Reply Quote 0
                    • T
                      tknospdr @SteveITS
                      last edited by Jul 15, 2023, 3:07 AM

                      @SteveITS said in VLAN's DHCP pool needed?:

                      @tknospdr I suspect you’re thinking that you can set up the same VLAN on two interfaces and have them communicate. This is incorrect (without bridging). pfSense won’t know which interface should receive the packet. It’s like putting two hardware NICs and putting the same subnet on each.

                      A managed switch can do this because it’s not designed for each port to be independent.

                      Correct, I was misinterpreting this:

                      Where trunking is employed between switches, devices on the same segment need not reside on the same switch.
                      

                      From this page:
                      https://docs.netgate.com/pfsense/en/latest/vlan/index.html

                      Thinking I could trunk between the interfaces on the pfs hardware.

                      If I bridge the interfaces and just put a static IP on the device connected to ETH3 that's in the same subnet as the provided by VLAN 10, then they can talk?

                      Or would this work...

                      Create OPT3 by setting a VID of 10 on ETH3, bridge LAN's VLAN child interface & OPT3. Connect a device to OPT3.
                      Would that device pull an IP from the pool provided by VLAN 10 on the other interface?

                      @johnpoz said in VLAN's DHCP pool needed?:

                      Huh? Are you bridging interfaces - do you have a netgate appliance that has switch ports?

                      No, I have this:
                      No name Chinese box

                      J 1 Reply Last reply Jul 15, 2023, 3:19 AM Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator @tknospdr
                        last edited by Jul 15, 2023, 3:19 AM

                        @tknospdr just plug the device you want on this vlan into your switch.. Bridging pretty never the correct solution.

                        You would create a bridge if you wanted to join networks where one interface into pfsense was say ethernet and the other was fiber, and you switch didn't have a fiber connection and your router did. And then this should only be used until such time as your order for the correct hardware came in ;)

                        Trying to bridge interfaces because you "want" to use it as a switch port, when its not - is not the correct solution.

                        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.8, 24.11

                        T 1 Reply Last reply Jul 17, 2023, 1:29 AM Reply Quote 0
                        • T
                          tknospdr @johnpoz
                          last edited by Jul 17, 2023, 1:29 AM

                          @johnpoz

                          That makes sense. I'm fine with learning that a feature is there as a stop gap and shouldn't be used unless specifically needed.

                          I was up till about 3:30 this morning trying to get everything ironed out after biting the bullet and putting the pfs box into play.

                          Not everything went smoothly so I'll definitely have some more specific questions over the next few days but it's mostly working.

                          This was sure nice to see:
                          fast internet

                          J 1 Reply Last reply Jul 17, 2023, 2:10 AM Reply Quote 0
                          • J
                            johnpoz LAYER 8 Global Moderator @tknospdr
                            last edited by Jul 17, 2023, 2:10 AM

                            @tknospdr nice connection - jealous for sure.. .Love to be able get that here..

                            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.8, 24.11

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