LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP server (http://www.linuxquestions.org/questions/linux-networking-3/dhcp-server-349514/)

justinr1 08-03-2005 05:43 AM

DHCP server
 
Greetings
Simple question:
How can I check the ip address of the DHCP server from the DHCP client machine?

archtoad6 08-03-2005 06:44 AM

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.

justinr1 08-03-2005 07:09 AM

Thanks for your help
 
Looks like dhcpcd. I will try google that a little.

archtoad6 08-03-2005 08:33 AM

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.

archtoad6 04-20-2006 09:48 AM

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.


All times are GMT -5. The time now is 06:00 AM.