LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-17-2007, 07:55 PM   #1
Hewson
Member
 
Registered: Feb 2007
Location: /home
Distribution: Kubuntu and CentOS
Posts: 214

Rep: Reputation: 32
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
 
Old 09-18-2007, 08:25 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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.
 
Old 09-18-2007, 10:15 AM   #3
juergen
Member
 
Registered: Sep 2001
Posts: 40

Rep: Reputation: 16
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.
 
Old 09-18-2007, 12:06 PM   #4
Hewson
Member
 
Registered: Feb 2007
Location: /home
Distribution: Kubuntu and CentOS
Posts: 214

Original Poster
Rep: Reputation: 32
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.'
 
Old 09-18-2007, 12:52 PM   #5
juergen
Member
 
Registered: Sep 2001
Posts: 40

Rep: Reputation: 16
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.
 
Old 09-19-2007, 07:22 PM   #6
Hewson
Member
 
Registered: Feb 2007
Location: /home
Distribution: Kubuntu and CentOS
Posts: 214

Original Poster
Rep: Reputation: 32
neat! thanks so much.
 
  


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
Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address blackfish Linux - Server 3 08-17-2007 12:54 AM
DHCP server and DHCP client in same box Eicos Linux - Networking 3 03-03-2007 01:28 PM
dhcp client not getting IP from dhcp server jkmartha Linux - Networking 2 06-17-2005 08:12 AM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:05 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