LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to detect DHCP server in a LAN under a Ubuntu linux client (https://www.linuxquestions.org/questions/linux-server-73/how-to-detect-dhcp-server-in-a-lan-under-a-ubuntu-linux-client-4175437565/)

chinabenjamin66 11-17-2012 07:58 AM

How to detect DHCP server in a LAN under a Ubuntu linux client
 
Hello friends

As I remember, there is tool called dhcpd-test in Suse Linux, it can detect the DHCP server in LAN, but I don't know what it is under Ubuntu. Can anyone tell me there are some tools can be used for detecting DHCP server in LAN under Ubuntu?

freelinuxtutorials 11-17-2012 08:28 AM

one way is to use sniffer tool such as tcpdump or wireshark, then send a DHCP request.

agentsteel 11-17-2012 10:37 AM

use a network tool such as nmap

for example :
# nmap 192.168.1.0/16 -p 53

(port 53 is dns)

catkin 11-17-2012 11:05 PM

Do you want to find out the IP address of the DHCP server that granted your computer a lease or do you want to scan the network for DHCP servers?

chinabenjamin66 11-18-2012 01:35 AM

Quote:

Originally Posted by catkin (Post 4831761)
Do you want to find out the IP address of the DHCP server that granted your computer a lease or do you want to scan the network for DHCP servers?


Hi catkin,

That is what I want to know , do you know some similar tool like dhcpd-test under Ubuntu? so I can detect how many dhcp server working in the LAN.

catkin 11-18-2012 02:55 AM

There's a solution at http://www.unix.com/ip-networking/17...-discover.html


All times are GMT -5. The time now is 10:19 AM.