LinuxQuestions.org
Visit Jeremy's Blog.
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 08-03-2005, 05:43 AM   #1
justinr1
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Rep: Reputation: 0
DHCP server


Greetings
Simple question:
How can I check the ip address of the DHCP server from the DHCP client machine?
 
Old 08-03-2005, 06:44 AM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
It depends on the DHCP client you are using. With pump use -s:
Code:
# pump -s 
Device eth0
         IP: 192.168.xxx.yyy
         Netmask: 255.255.255.0
         Broadcast: 192.168.xxx.255
         Network: 192.168.123.0
         Boot server 192.168.xxx.zzz
         Next server 192.168.xxx.zzz
         Gateway: 192.168.xxx.zzz
         Gateways: 192.168.xxx.zzz
         Nameservers: 192.168.xxx.zzz 204.52.135.2
         Renewal time: Wed Aug  3 06:53:27 2005
         Expiration time: Wed Aug  3 07:08:27 2005
If you're using dhcpcd or dhclient, RT(F)M, I presume they have an equivalent option.
 
Old 08-03-2005, 07:09 AM   #3
justinr1
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Wink Thanks for your help

Looks like dhcpcd. I will try google that a little.
 
Old 08-03-2005, 08:33 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
DHCP clients

Start with:
Code:
$ man dhcpcd
BTW, if you don't know what DHCP client you're using, try:
Code:
$ dhc<TAB>
As long as tab completion is working, it will show dhclient or dhcpcd. If it does not complete to either of these, then you probably (99%) have pump.

Last edited by archtoad6; 09-03-2005 at 09:53 AM.
 
Old 04-20-2006, 09:48 AM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
DHCP client list

Update:

Yesterday I ran across a reference in a mailing list archive to "4 Linux DHCP clients in common use". "4?", I said to myself, "I only know 3, WTF is the 4th?"

I did a variety Gooles, the 1 that worked is:
"linux dhcp clients" dhcpcd dhclient pump

& the 4th is dhcpxd. Notice that dhc<tab> will still detect it. So the list, possibly in chronological order, is:
  • pump
  • dhcpcd
  • dhcpxd
  • dhclient

Notes
SimplyMEPIS now uses dhclient (was pump).

Obviously, I have never seen dhcpxd on a system, since I just heard about it today.

It, dhcpxd, may be a Mandriva creation.
 
  


Reply

Tags
dhcp



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
dhcp client not getting IP from dhcp server jkmartha Linux - Networking 2 06-17-2005 08:12 AM
how can a DHCP client get the DHCP server IP? AshesOfTime Linux - Networking 3 11-24-2004 06:50 AM
Setting up a DHCP server w/ the server on a wireless network Ionexchange Linux - Wireless Networking 0 05-08-2004 10:56 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
How do you make the ip masquerade server/dhcp server broadcast dns to lan cmisip Linux - Networking 6 01-25-2003 10:43 PM

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

All times are GMT -5. The time now is 03:55 AM.

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