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

    Windows DHCP Server + Multiple Scopes + Pfsense DHCP Relay

    Scheduled Pinned Locked Moved DHCP and DNS
    12 Posts 3 Posters 2.7k 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.
    • G
      gjaltemba
      last edited by

      Check your firewall rules on VLAN interface to ensure that port 53(DNS) is allowed. If it is then do a packet capture in pfSense and server for troubleshooting.

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

        Thanks I have setup firewall rule on the VLAN as Allow All for testing this out presently.
        To give more context of the setup -

        0_1540934953872_0d296242-7ab7-4acd-9154-4c7e3036a6e8-image.png

        G 1 Reply Last reply Reply Quote 0
        • G
          gjaltemba @surfer_boy
          last edited by

          @surfer_boy
          Looks like VLAN2 has LAN for parent interface. How did you setup VLAN2 in Hyper V?

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

            Hi, I created a new interface first as VLAN2 with tag of 2 under parent interface LAN. Then under DHCP relay I selected both LAN and VLAN2 and forwarding address of the DHCP server under 19.2.1.254.

            G 1 Reply Last reply Reply Quote 0
            • G
              gjaltemba @surfer_boy
              last edited by

              @surfer_boy Are those suppose to be public subnets or private subnets?

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

                Private

                G 1 Reply Last reply Reply Quote 0
                • G
                  gjaltemba @surfer_boy
                  last edited by

                  @surfer_boy Private Address Space

                  The Internet Assigned Numbers Authority (IANA) has reserved the
                  following three blocks of the IP address space for private internets:

                   10.0.0.0        -   10.255.255.255  (10/8 prefix)
                   172.16.0.0      -   172.31.255.255  (172.16/12 prefix)
                   192.168.0.0     -   192.168.255.255 (192.168/16 prefix)
                  
                  1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator
                    last edited by

                    Windows acts funny when it has a public IP.. You really should not just grab IPs out of thin air and use them on your local private network. The whole point of rfc1918 is for this use.

                    What is the point of setting up vlans on pfsense inside a VM host.. Why would you not just create different native networks no reason for pfsense to deal with tags.. You can just give it another vnic attached to whatever vswitch, etc..

                    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
                      surfer_boy
                      last edited by

                      @johnpoz to each their own.... setting up pfsense inside VM (esp. Hyper-V) and not sharing with mgmt OS is pretty much like a containerized device. In any case I did also change the IP scheme as you guys suggested but that didnt help. I ran some wireshark tracing and I feel this is a HyperV switch issue where its defaulting to Access instead of trunking.
                      Thanks for your valuable advise, it was helpful to say the least. I will keep chugging along until I get this fixed.

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

                        I was not saying anything about running pfsense in a VM... Think its a GREAT idea... But there is little reason to run it with vlans when inside the vm host they can just be native.

                        You have to worry about any vlan switches stripping or adding tags, if those vlans then play in the real world.. In esxi for example you need to set a vlan tag of 4095 on a vswitch if you do not want it to strip tags. And let the vm deal with the tags.

                        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
                          surfer_boy
                          last edited by

                          I was able to get this resolved finally. My gut was right, the issue was on the HyperV switch side and not on pfsense. I had to setup the virtual switch for trunking with powershell scripts since its not possible with the GUI. Once I did that it was straighforward. A word of caution for others who attempt this any changes done through powershell will be overwritten by the GUI if you modify there. So take extra caution.

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