LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-28-2003, 02:47 AM   #1
mindcry
Member
 
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118

Rep: Reputation: 15
blank hostname


I have a kind of interesting problem. I have a linksys router and it acts as a DHCP server as well. Well I have the networking set up on my machine and I can ping outside to any site. But the problem is that in the DHCP server on the router is shows a blank name and I also cannot ping myself using the name thats set as the machine name 'trashbox'. I also cannot ping any machines on my network and cannot ping 'trashbox' from any other machines. When I type in hostname to get my hostname it comes back with my FQDN which I have set 'trashbox.boxnet.cc' Any ideas why I get the blank name in the router or why I cannot ping anything local?
 
Old 03-28-2003, 05:22 AM   #2
Paul Johnson
LQ Newbie
 
Registered: Mar 2003
Location: Chelmsford, Essex, UK.
Distribution: Red Hat
Posts: 15

Rep: Reputation: 0
Look at the network setup scripts in /etc/system/network. Find the place where HOSTNAME is set, and add a line to set DHCP_HOSTNAME to the same value.
 
Old 03-28-2003, 01:26 PM   #3
mindcry
Member
 
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118

Original Poster
Rep: Reputation: 15
I dont have that file /etc/system/network
 
Old 03-28-2003, 02:41 PM   #4
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
Close, but no cigar :

What Paul meant to say was...

[If you're running under Redhat]

look at /etc/sysconfig/network - change the

HOSTNAME=binky

then look in /etc/sysconfig/network-scripts/ifcfg-eth0
where eth0 is your interface.

add :

DHCP_HOSTNAME=binky.slickwilly.com

where, binky and slickwilly.com are your machine/domain.

This may, or may not solve your problem... ho hum.

Slick.
 
Old 03-29-2003, 03:47 PM   #5
mindcry
Member
 
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118

Original Poster
Rep: Reputation: 15
where whould I put that for slackware?
 
Old 03-30-2003, 08:44 PM   #6
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
Unfortunately I have no idea.

It's been quite some time since I last used Slackware (1997). You might have better luck asking in the Slackware (distribution) forum..

Or.. if I bump this, some kind soul who knows in this forum will step in

Slick.
 
  


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
Hostname GibsonDL Linux - Newbie 5 09-06-2005 05:24 PM
Replace blank/almost blank lines in file Wynd Linux - General 3 01-27-2004 05:49 PM
hostname ddzc Linux - Networking 5 11-01-2003 04:42 PM
Hostname jpauls104 Slackware 5 07-28-2003 01:16 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 06:01 PM

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

All times are GMT -5. The time now is 01:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration