LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP client tool (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-client-tool-585413/)

Hewson 09-17-2007 07:55 PM

DHCP client tool
 
Greetings LQers,

I need a tool for sending dhcp discoveries and requests to a dhcp server. Googling around I found 'pump-devel' package, but not a bit of documentation. I did find some one who recommended using dhcpcd for this, but i'm not really sure how. I do not want to actually make any changes to my system. I just need to assure that the DHCP server is correctly responding to my messages.

Thanks in advance.

Steve

XavierP 09-18-2007 08:25 AM

Issue the command (possibly as root) dhcpcd eth<number> - the response will tell you whether you are receiving an ip address. If you feel like it's worth it, take the card down, bring it back up and then issue the command. Then issuing ifconfig eth<number> will tell you if the card has received an address.

juergen 09-18-2007 10:15 AM

dhcping (http://www.mavetju.org/download/dhcping-1.2.tar.gz) ought to do the trick.

Something like
Code:

dhcping -s 192.168.1.1
should at least tell you whether the server replies to queries.

Hewson 09-18-2007 12:06 PM

juergen,

Thanks for the reply. dhcping is almost what I need. I need a tool to send both 'discovery' and 'request,' apperently dhcping only does 'request.'

juergen 09-18-2007 12:52 PM

There is, of course, always netwox
Code:

netwox 171
sends a DHCP DISCOVER without changing your IP address.

Using it, I just found out that my DHCP server silently discards DISCOVER requests that come from the IP address that would be assigned to the MAC address that sent the request. Being that netwox lets you spoof your MAC address, that wasn't really a biggie, though.

Hewson 09-19-2007 07:22 PM

neat! thanks so much.


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