ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved How do you find dhcp servers on network?

    IT Discussion
    dhcp
    8
    11
    635
    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.
    • 1
      1337
      last edited by

      Is it possible to scan for dhcp servers on the network (using linux)?

      I suspect there might be more than one.

      travisdh1T 1 Reply Last reply Reply Quote 0
      • travisdh1T
        travisdh1 @1337
        last edited by

        @Pete-S said in How do you find dhcp servers on network?:

        Is it possible to scan for dhcp servers on the network (using linux)?

        I suspect there might be more than one.

        The first thing that comes to my mind is scanning for open port 67.

        nmap -p 67 x.x.x.*
        
        1 1 Reply Last reply Reply Quote 1
        • 1
          1337 @travisdh1
          last edited by

          @travisdh1 said in How do you find dhcp servers on network?:

          @Pete-S said in How do you find dhcp servers on network?:

          Is it possible to scan for dhcp servers on the network (using linux)?

          I suspect there might be more than one.

          The first thing that comes to my mind is scanning for open port 67.

          nmap -p 67 x.x.x.*
          

          Good idea. But what if they are not in the same ip range? Which I don't think they are.

          travisdh1T 1 Reply Last reply Reply Quote 0
          • gjacobseG
            gjacobse
            last edited by

            I wonder if Wireshark would do this, if you applied the right filter.

            dafyreD 1 Reply Last reply Reply Quote 0
            • travisdh1T
              travisdh1 @1337
              last edited by

              @Pete-S said in How do you find dhcp servers on network?:

              @travisdh1 said in How do you find dhcp servers on network?:

              @Pete-S said in How do you find dhcp servers on network?:

              Is it possible to scan for dhcp servers on the network (using linux)?

              I suspect there might be more than one.

              The first thing that comes to my mind is scanning for open port 67.

              nmap -p 67 x.x.x.*
              

              Good idea. But what if they are not in the same ip range? Which I don't think they are.

              Then run a scan for each range. With multiple ranges, you should have 1 responding on each network segment (that you want to be assigning ip addresses automatically of course.)

              1 Reply Last reply Reply Quote 1
              • dafyreD
                dafyre @gjacobse
                last edited by

                @gjacobse said in How do you find dhcp servers on network?:

                I wonder if Wireshark would do this, if you applied the right filter.

                Wireshark could do it. If VLANs are in use, he'd have to make sure his device is on a port on the same VLAN.

                1 Reply Last reply Reply Quote 0
                • black3dynamiteB
                  black3dynamite
                  last edited by

                  sudo dhcping -s 255.255.255.255 -r -v
                  But I get a no answer response.

                  sudo nmap --script broadcast-dhcp-discover -e eth0

                  1 Reply Last reply Reply Quote 2
                  • black3dynamiteB
                    black3dynamite
                    last edited by

                    Another option using nmap.
                    The following scans can take awhile since no targets (hosts) were specified.

                    Scan 10.0.0.0/8
                    sudo nmap -sU 10.0.0.0-254 -p 67-68

                    Scan 172.16.0.0/12
                    sudo nmap -sU 172.16.0.0-254 -p 67-68

                    Scan 192.168.0.0/16
                    sudo nmap -sU 192.168.0.0-254 -p 67-68

                    1 Reply Last reply Reply Quote 3
                    • DashrenderD
                      Dashrender
                      last edited by

                      I would think that running wireshark - then release your IP, then send a DHCP request out to the network and see who responds. The NIC will of course grab the first one it sees, but wireshark should see any responses that are sent to it.

                      1 Reply Last reply Reply Quote 3
                      • Reid CooperR
                        Reid Cooper
                        last edited by

                        Try DHCPing.

                        1 Reply Last reply Reply Quote 0
                        • JaredBuschJ
                          JaredBusch
                          last edited by JaredBusch

                          @Pete-S click the menu (three stacked dots) by the post that had the answer so others know which solution worked best for you.

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post