LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   blank hostname (https://www.linuxquestions.org/questions/linux-networking-3/blank-hostname-52146/)

mindcry 03-28-2003 01:47 AM

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?

Paul Johnson 03-28-2003 04:22 AM

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.

mindcry 03-28-2003 12:26 PM

I dont have that file /etc/system/network

SlickWilly 03-28-2003 01:41 PM

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.

mindcry 03-29-2003 02:47 PM

where whould I put that for slackware?

SlickWilly 03-30-2003 07:44 PM

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.


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