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 |
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.
|
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 |
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.' |
There is, of course, always netwox
Code:
netwox 171 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. |
neat! thanks so much.
|
All times are GMT -5. The time now is 08:19 AM. |