LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-17-2012, 07:58 AM   #1
chinabenjamin66
Member
 
Registered: Mar 2012
Location: Shenzhen Chian
Posts: 73

Rep: Reputation: Disabled
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?
 
Old 11-17-2012, 08:28 AM   #2
freelinuxtutorials
Member
 
Registered: Oct 2009
Posts: 70

Rep: Reputation: 21
one way is to use sniffer tool such as tcpdump or wireshark, then send a DHCP request.
 
Old 11-17-2012, 10:37 AM   #3
agentsteel
Member
 
Registered: Oct 2012
Location: France
Distribution: Debian / Fedora / Ubuntu / OpenBSD
Posts: 46

Rep: Reputation: Disabled
use a network tool such as nmap

for example :
# nmap 192.168.1.0/16 -p 53

(port 53 is dns)
 
Old 11-17-2012, 11:05 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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?
 
Old 11-18-2012, 01:35 AM   #5
chinabenjamin66
Member
 
Registered: Mar 2012
Location: Shenzhen Chian
Posts: 73

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by catkin View Post
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.

Last edited by chinabenjamin66; 11-18-2012 at 01:43 AM.
 
Old 11-18-2012, 02:55 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP server and LAN setup in LINUX mangup Linux - Server 9 06-13-2010 01:55 AM
Problem on acquiring IP addr. on client from dhcp server through dhcp relay server haariseshu Linux - Server 5 08-10-2009 01:20 AM
Lan authontication-(win client, linux server) sixth_sense Linux - Networking 6 03-26-2004 07:42 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM
Win XP client on LAN can't find Linux server mournblade Linux - Networking 10 06-26-2003 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration