LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 05-30-2005, 09:13 PM   #1
wyohman
Member
 
Registered: Aug 2003
Location: Texas
Distribution: Mandrake 2006
Posts: 66

Rep: Reputation: 16
Laptop doesn't get hostname from DHCP server


I'm using Mandrake 10.1 official with a Netgear WGT624 as my AP/firewall. For some reason it won't get a hostname from the DHCP server built into the AP. All of the Windows clients get the proper hostname but the Linux laptop won't.

Help!
 
Old 06-01-2005, 10:37 AM   #2
hell_carnage
LQ Newbie
 
Registered: Aug 2004
Distribution: Crux 2.1
Posts: 23

Rep: Reputation: 15
From what I understand ... the computer requesting an IP address can send it's hostname to the DHCP server. It doesn't pull a hostname from the server. Try using `dhcpcd -h whateverhostname wlan0`.
 
Old 06-01-2005, 06:12 PM   #3
wyohman
Member
 
Registered: Aug 2003
Location: Texas
Distribution: Mandrake 2006
Posts: 66

Original Poster
Rep: Reputation: 16
Quote:
Originally posted by hell_carnage
From what I understand ... the computer requesting an IP address can send it's hostname to the DHCP server. It doesn't pull a hostname from the server. Try using `dhcpcd -h whateverhostname wlan0`.
I'm not running the DHCP server on a Linux system. I'm using dhclient on a Linux box to communicate with my wireless AP. I did manage to get it to accept a hostname by creating a dhclient.conf file. The AP now accepts the hostname but I still cannot ping the Linux box from the Windows systems although each of the Windows systems can ping each other. Do I need to turn on Samba and add the Linux client to the XP Workgroup.

Cheers.
 
Old 06-01-2005, 07:47 PM   #4
hell_carnage
LQ Newbie
 
Registered: Aug 2004
Distribution: Crux 2.1
Posts: 23

Rep: Reputation: 15
dhcpcd is a DHCP client ... not a server.

Anyway, you are actually trying to send a ping request using a NetBIOS name. For that you want to set up Samba


[Edited for grammar and spelling]

Last edited by hell_carnage; 06-01-2005 at 09:16 PM.
 
Old 06-01-2005, 08:02 PM   #5
wyohman
Member
 
Registered: Aug 2003
Location: Texas
Distribution: Mandrake 2006
Posts: 66

Original Poster
Rep: Reputation: 16
Quote:
Originally posted by hell_carnage
dhcpcd is a DHCP client ... not a server.

Anway, What you are trying to ping is actually a NetBIOS name. For that you want to set up Samba.
Actually, dhclient is the client, dhcpd is the server. Apparently to do the ping I have to setup samba (which I'm doing now) although I did want the AP to know the hostname of the Linux client.

Cheers.
 
Old 06-01-2005, 09:02 PM   #6
hell_carnage
LQ Newbie
 
Registered: Aug 2004
Distribution: Crux 2.1
Posts: 23

Rep: Reputation: 15
Quote:
Originally posted by wyohman
Actually, dhclient is the client, dhcpd is the server.
That may be, but I stand by my statement that dhcpcd is a DHCP client

http://freshmeat.net/projects/dhcpcd/

"dhcpcd is an RFC2131-, RFC2132-, and RFC1541-compliant DHCP client daemon. It gets an IP address and other information from the DHCP server, automatically configures the network interface, and tries to renew the lease time according to RFC2131 or RFC1541.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 hostname ahz10 Linux - Networking 1 05-06-2005 03:40 PM
Get hostname from DHCP microft Linux - Networking 2 07-18-2004 03:31 PM
DHCP Hostname Celestial Linux - Newbie 1 06-30-2004 06:50 PM
PB with DHCP and HostName jp515 *BSD 1 11-21-2003 04:57 AM
dhcp server will not connect to laptop after laptop OS upgrade phamnewan Linux - Networking 0 06-21-2003 10:47 AM


All times are GMT -5. The time now is 10:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration