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

    DHCP server not working

    General pfSense Questions
    3
    7
    897
    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.
    • D
      duvel
      last edited by

      Greetings all,

      I have installed PFsense on a pc. I have an onboard nic, and a 4 port Intel network card installed. The onboard is the WAN, and one of the ports on the nic is the LAN. But for some reason I am unable to configure the other ports on the nic as a typical dhcp setup. For example, I can plug in a laptop but it gets no ip address other than 169.254.

      I have tried assigning each port individually as OPT, but this didn't help. I have made sure that DHCP is enabled on the interface, and also tried a static setup, neither one worked.

      How can I set the other ports on the nic to be live for devices to get a DHCP address?

      Any help is appreciated!

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        It should not require anything special. If you have enabled DHCP on the new interface a client attached to it should always get an IP.
        You need to add a firewall rule to allow client traffic out but not to just ghet an IP.

        Most likely you are not assigning the interface you think you are.

        Can we see some screenshot of how you have it configured?

        Steve

        1 Reply Last reply Reply Quote 0
        • D
          duvel
          last edited by

          Here are some screens.

          The OPT interfaces are all configured the same.

          pfsense.PNG pfsense2PNG.PNG pfsense3.PNG

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Ah, you have enabled the interface as a DHCP client, like a WAN.

            You need to set it as static there and assign it a new subnet. Then enable DHCP on it in Services > DHCP Server.
            https://docs.netgate.com/pfsense/en/latest/services/dhcp/ipv4.html

            Steve

            GertjanG 1 Reply Last reply Reply Quote 0
            • GertjanG
              Gertjan @stephenw10
              last edited by

              Or see the default LAN interface as an example.
              And the related DHCP server for LAN.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              1 Reply Last reply Reply Quote 0
              • D
                duvel
                last edited by

                Thanks for the help, I'm making progress now.

                I had to make all of the OPT interfaces have the same subnet mask for them to show up in Services-DHCP Server. Before that, they wouldn't show up.

                So now I have 3 opt interfaces that have the ranges: 192.168.2.1 - 192.168.3.1 - 192.168.4.1, all /24 subnets.

                But none of them have internet access. I tried to add a gateway, but its from a different subnet 10.0.0.1, so it wouldn't let me.

                Is there a way to make all 3 of these OPT intefaces have the same 192.168.1.1 range?

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  You can bridge them all onto the LAN but.... don't! Just use a switch if you need more ports on LAN.

                  You need a add firewall rules on the new OPT interfaces to allow out traffic from hosts on them.
                  Only LAN has a rule there by default.

                  Steve

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