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

    Multiple LANs - No DHCP Issue

    Scheduled Pinned Locked Moved Routing and Multi WAN
    11 Posts 3 Posters 1.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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      turning on dhcp server auto creates the firewall rules needed..

      What would allowing udp 138 have to do with dhcp??  That would be netbios..

      Why do you not sniff on your interface.. Do you see a dhcp discover?  If not then no you can not hand out dhcp because the dhcp server is not seeing anything ask for an IP..  What is in your dhcp log?

      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
      • A
        AHOctet
        last edited by

        Hi johnpoz,

        The only reason I enabled that firewall rule was because it was the only thing I could see in the firewall log.
        The following is what appears in the DHCP log;

        Nov 19 11:43:08 dhcpd Can't bind to dhcp address: Address already in use
        Nov 19 11:43:08 dhcpd Please make sure there is no other dhcp server
        Nov 19 11:43:08 dhcpd running and that there's no entry for dhcp or
        Nov 19 11:43:08 dhcpd bootp in /etc/inetd.conf. Also make sure you
        Nov 19 11:43:08 dhcpd are not running HP JetAdmin software, which
        Nov 19 11:43:08 dhcpd includes a bootp server.

        I can't work out why though, no other DHCP server is assigning IPs to that interface, or that range anywhere else on the network. My computer is set to receive IPs from DHCP and plugging into the working (default LAN) interface will cause it to get an IP.

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

          Well kind of hard to hand out ip addresses if dhcp is not even running..

          I would suggest you shutdown all your dhcp servers on all your interfaces.  And then restart them..  that sort of error tells you could not bind to the opt or vlan your trying to run it on..

          So go to all your interfaces, uncheck dhcp.  Then make sure in services dhcpd is not showing running.  Then go back and enable your dhcp on your different interfaces.  Check your log to see that starts up, etc.

          You should see something more like 2nd pic where its listening and sending on all your different interfaces your running dhcp on.

          dhcpstatus.png
          dhcpstatus.png_thumb
          dhcpstartup.png
          dhcpstartup.png_thumb

          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
          • A
            AHOctet
            last edited by

            Thanks for your reply, I've just tried as you've suggested and have only turned back on the default, working LAN interface but it still logs that there is a conflict.

            Nov 19 12:44:36 dhcpd Internet Systems Consortium DHCP Server 4.3.4
            Nov 19 12:44:36 dhcpd Copyright 2004-2016 Internet Systems Consortium.
            Nov 19 12:44:36 dhcpd All rights reserved.
            Nov 19 12:44:36 dhcpd For info, please visit https://www.isc.org/software/dhcp/
            Nov 19 12:44:36 dhcpd Config file: /etc/dhcpd.conf
            Nov 19 12:44:36 dhcpd Database file: /var/db/dhcpd.leases
            Nov 19 12:44:36 dhcpd PID file: /var/run/dhcpd.pid
            Nov 19 12:44:36 dhcpd Internet Systems Consortium DHCP Server 4.3.4
            Nov 19 12:44:36 dhcpd Copyright 2004-2016 Internet Systems Consortium.
            Nov 19 12:44:36 dhcpd All rights reserved.
            Nov 19 12:44:36 dhcpd For info, please visit https://www.isc.org/software/dhcp/
            Nov 19 12:44:36 dhcpd Wrote 7 leases to leases file.
            Nov 19 12:44:36 dhcpd Listening on BPF/em4/00:01:69:00:ce:df/192.168.1.0/24
            Nov 19 12:44:36 dhcpd Sending on BPF/em4/00:01:69:00:ce:df/192.168.1.0/24
            Nov 19 12:44:36 dhcpd Can't bind to dhcp address: Address already in use
            Nov 19 12:44:36 dhcpd Please make sure there is no other dhcp server
            Nov 19 12:44:36 dhcpd running and that there's no entry for dhcp or
            Nov 19 12:44:36 dhcpd bootp in /etc/inetd.conf. Also make sure you
            Nov 19 12:44:36 dhcpd are not running HP JetAdmin software, which
            Nov 19 12:44:36 dhcpd includes a bootp server.
            Nov 19 12:44:36 dhcpd If you think you have received this message due to a bug rather
            Nov 19 12:44:36 dhcpd than a configuration issue please read the section on submitting
            Nov 19 12:44:36 dhcpd bugs on either our web page at www.isc.org or in the README file
            Nov 19 12:44:36 dhcpd before submitting a bug. These pages explain the proper
            Nov 19 12:44:36 dhcpd process and the information we find helpful for debugging..
            Nov 19 12:44:36 dhcpd exiting.

            1 Reply Last reply Reply Quote 0
            • A
              AHOctet
              last edited by

              Got it working.
              How silly of me, of course in typical IT fashion the trick to getting it to hand out IPs was to turn the unit off and back on.

              Thanks for your help johnpoz.

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

                Still looks like you have a problem to me

                Nov 19 12:44:36    dhcpd      Listening on BPF/em4/00:01:69:00:ce:df/192.168.1.0/24
                Nov 19 12:44:36    dhcpd      Sending on BPF/em4/00:01:69:00:ce:df/192.168.1.0/24
                Nov 19 12:44:36    dhcpd      Can't bind to dhcp address: Address already in use

                So looks like your only running on 192.168.1.0/24 and not your other itnerface/vlan..

                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
                • A
                  AHOctet
                  last edited by

                  Yep, still having a few issues but not related to the original post.

                  In the log I posted I had only turned on the DHCP server for the default LAN and it still reported this error despite this interface working.
                  Since physically powering off and back on the unit, I'm now able to get DHCP on my optional interface but I've hit a second predicament.

                  What I'm trying to do is setup my six NICs as follows;

                  WAN - WAN
                  Admin - Admin Only Interface, No LAN or WAN access
                  Lan1 through 4 - LAN and WAN access assigned by DHCP

                  I've bridged 1 through 4 and I can get internet access on all of them, and see other devices on the LAN but I can only get a DHCP address when plugged into Lan1.

                  I'm not too sure where I need to assign the DHCP server, would it be on Lan1 or do I need to assign the bridge to an interface and setup DHCP on this?

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

                    "I've bridged 1 through 4 and I can get internet access on all of them"

                    Dude if you need a switch get a switch…... There is ZERO reason to do what your trying to do..

                    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
                    • jahonixJ
                      jahonix
                      last edited by

                      @AHOctet:

                      Static IPv4: 10.10.0.1/24
                      DHCP for Lan1: 10.10.0.1 to 10.10.0.254

                      @AHOctet:

                      Nov 19 12:44:36 dhcpd Can't bind to dhcp address: Address already in use

                      Sort out your DHCP issues first.
                      You cannot assign the interface a static IP AND hand that one out via DHCP. Adjust your DHCP range.

                      After you fixed that you should look at your various interfaces. Each is an own subnet with IP, rules and DHCP server which you have to configure and enable before being usable.

                      If you bridge interfaces things are different than you think.
                      Basic rule is: don't do that, get a switch instead!
                      A router port is never a replacement for a switch.

                      1 Reply Last reply Reply Quote 0
                      • A
                        AHOctet
                        last edited by

                        Thanks for the help both of you, I'm beginning to get an understanding for how it all needs to be setup now.
                        The DHCP errors have stopped and I'm now using a switch.

                        Twas a late night last night, fresh eyes this morning and all that.

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