PDA

View Full Version : How do I get IP of DHCP Server ?



bhavin
04-10-2004, 07:04 AM
Can anybody please tell me where the IP of DHCP Server is stored or are there any commands to get it ??

Harry Kuhman
04-10-2004, 08:14 AM
Can anybody please tell me where the IP of DHCP Server is stored or are there any commands to get it ??
What a strange question. You do understand that a client certainly does not need to know a DHCP server's address to use it, don't you? In pratice the DHCP server is always (as far as I know) on a device that has an IP address, but on reflecting on it I don't think it has to have an IP address. But if you're trying to talk to a DHCP server you can always talk to the broadcast address (255.255.255.255) with a DHCP request and you should get a response. You might want to look at RFC 1531 for more details (likely more than you want).

Turning this into a Knoppix discussion, if you don't come across an easier way (and I certainly expect that there is an easier way), you could always run ethereal and watch the packets while you do a netcardconfig or other command that uses DHCP.