How to get the list of DHCP server's IP address in local network?

Hi,

* I am using the Debian Flavor of Linux. Currently. The kernel version is 2.6.18-4-686.
* My Requirement is that I want the DHCP server's IP address list which is running
in my local network.

* Is there any debian command or configuration is available for finding the DHCP server's ip list?.

No votes yet

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

How to get the list of DHCP

The list and other information is only available to the administrator of the DHCP server. Unless you care to attempt to crack the DHCP server or the daemon, there is no other way (well, maybe if the admin sets up a web page to show that info - but why would they). Of course you can use tools to broadcast messages and see what replies you get, but that will only work on the local subnet (or in some cases, bridged subnets) - since a DHCP server can run on numerous subnets, using broadcasts doesn't really give you a full list.

Reason for getting the different IP

Thank you for the reply.

* Somtimes, the windows machine is getting the ip address
in 169 series even though it is configured to get the Ip through DHCP.

* we are having only one DHCP server. Out Network range is configured in 192 series. But, windows machine is getting 169 series ip.

What may be the reason?

Reason for getting the different IP

If WinDos cannot negotiate with a DHCP server it will drop back to a 169 address. Possible problems are bad cable, bad NIC, and bad network topology.

Re: How to get the list of DHCP

The best way is just to sniff on (use Wireshark) the eth interface (the one that you want to get ip on),
if all ok from the DHCP Server side you will get your range in the DHCP offer packet,

if you do not get an offer from the server means that you have connectivity problem,
but since you get a 169.X.X.X ip that means that you do not get any offer,
so you fall back to default one.

Re: How to get the list of DHCP server's IP address in local net

hi.. netwag (gui) and netwox (command line with more) from debian repositories are the answers.

Syndicate content