LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP Client Configuration (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-client-configuration-262708/)

jpr9898 12-04-2004 10:35 PM

DHCP Client Configuration
 
Hi all,

I am in the process of setting up a Linux machine on my home network. I currently have two windows 2000 boxes connected to an SMC barricade router. The router is uplinked to a cable modem.

Once the linux install is complete, and the system is up and running, everything seems fine, except that the Linux box has no host name. The router assigns an ip to the system, and it can be pinged from the windows boxes easily enough. no troubvle with connecting to the internet either.

When I browse to the router, I can see the IP assignment, MAC address, but the hostname appears as 'hostname="".

The windows system names are listed along with IP assignment and MAC address.

I am currently fiddling with Mandrake Community 10.1, but had similar experience with Slackware. I am using the text install - low end machine barfs on graphical version. Nowhere am I asked to enter a host name - although I am getting an error message (SIOCETHTOOL: invalid argument).

Been looking through this site for a while now - found some pretty similar problems laid out, but no solutions that worked.

Any suggestions would be welcome.

Thanks in advance

EnigmaOne 12-04-2004 11:21 PM

Edit or create /etc/hostname with your preferred hostname in there.
Then edit /etc/hosts to reflect the change:
Code:

127.0.0.1        HOSTNAME        localhost
It should be picked-up when you restart the network service.

jpr9898 12-05-2004 12:54 AM

Thanks,

Worked like a charm


All times are GMT -5. The time now is 01:20 AM.