LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-12-2003, 01:13 PM   #1
elpot2
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
Redhat 7.2, Linksys Router, DCHP Problem


Hello everyone,

I have a small home network of Linux and Windows machines connected to a Linksys router (BEFSR81) for Internet access over DSL.

The router is setup as a DCHP server and all of my client machines can get IP addresses at startup.

My problem is that the Linux machines are not having their hostnames registered with the router and this causes several problems as the Linux network programs try to startup.

I can always set the Linux machines to use static addresses, but I'd prefer to keep everything under DCHP.

I'm hoping that it's just a matter of editing some configuration files and would appreciate any help.

Thank you,

Trevor

PS

One of the machines runs Redhat 7.2 and two others run Redhat 5.1, including an ancient 80486/33 with 32MB of RAM.

Laugh as you will, but that old relic still pulls its weight!
 
Old 10-12-2003, 03:35 PM   #2
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
I'm guessing this problem has not always existed, is the router the new addition to the mix?
 
Old 10-12-2003, 06:49 PM   #3
elpot2
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Hello,

The router is recent and the "first" time I've tried connecting everything via DHCP.

Prior to this, I had static addresses for everything and had to maintain /etc/hosts files on Linux (and Windows) machines.

Trevor
 
Old 10-12-2003, 07:46 PM   #4
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
So everything works fine, but your router does not register the hostnames of it's linux dhcp clients but it *does* register the hostnames of it's windows clients? What does /etc/sysconfig/network show?

btw, I'm not laughing, I still run slackware on a 486dx2/40 w/28mb of ram and 256mb drive.

Last edited by akaBeaVis; 10-12-2003 at 07:56 PM.
 
Old 10-12-2003, 10:19 PM   #5
elpot2
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Original Poster
Rep: Reputation: 0
/etc/sysconfig/network contains two lines:

NETWORKING=yes
HOSTNAME="webman"

The DCHP client table on the router shows an entry added as soon as the linux box brings up interface eth0, but the Client Hostname column is blank.

T
 
Old 10-13-2003, 04:48 PM   #6
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
Is this table on the router intended to allow you to assign a hostname via dhcp *from* the router to the machine?

If the answer is yes, take a look at the man page for dhcpcd, specifically, the -H and possibly the -D options, beginning around line 63. Actually, it's short so I'll post it:

-D Forces dhcpcd to set domainname of the host to the domainname
option supplied by DHCP server.

-H Forces dhcpcd to set hostname of the host to the hostname option
supplied by DHCP server. By default dhcpcd will NOT set host-
name of the host to the hostname option received from DHCP
server.

does this look like what you're trying to accomplish?
 
Old 10-13-2003, 09:10 PM   #7
elpot2
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

My belief is that the DHCP function of the router also provides a rudimentary nameserver function so that I can ping, telnet, and ftp to my machines using their hostnames instead of their (dynamic) addresses.

The DHCP client table on the router has three columns: hostname, IP address, and MAC address.

It looks as if the client computer supplies its hostname and MAC address, the router assigns the next allocatable IP address, and all three values are put into the table on the router.

If the hostnames of the Windows clients are showing up but not those of the Linux clients then one of two things is happening:

1) Linux is not passing the hostname as part of the DHCP request or,

2) the router is not accepting the value passed by Linux

Maybe static IP addresses for the Linux boxes is the way to go.

Thank you for responding,

Trevor
 
  


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
redhat 9 causing linksys router to stop working martygehrke Linux - Networking 1 11-13-2003 06:51 PM
redhat 8 and linksys router, dsl richardg Linux - Newbie 3 07-16-2003 03:52 PM
dchp dsl/router eth0 redhat 7.0 BlueKrystal22 Linux - Newbie 14 06-23-2003 08:29 PM
router problem with linksys router scheiße_comp Linux - Networking 10 08-20-2002 10:18 AM
I can not browse the internet using linksys router and redhat 7.3 hugosoto Linux - Networking 1 05-24-2002 07:17 PM

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

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