host name for DHCP

Does any linux guru out there know how to change the DHCP client name from TEST?

I followed the instruction to use system-config-network and suceeded in changing the shell prompt to the host name I want, but my router still says the node name is TEST.

Some internet searching came up with the "dhclient" command - which works - but after the next lease renewal it is back to TEST again. That name must be buried someplace in the linux configuration.

Ken

Is this a centos/ACID box?

TRY adding or editing the "HOSTNAME=" line in:
/etc/sysconfig/network

Was almost able to do this from memory but had to google it
by searching for "centos change hostname"
Not everyone is going to know exactly what to search for.
:slight_smile: so I won't griping "google is your friend" anytime soon :slight_smile:

Tested here and works :slight_smile:

[root@N8LBV-R ~]#

-Steve

Does any linux guru out there know how to change the DHCP client name
from TEST?

I followed the instruction to use system-config-network and suceeded in
changing the shell prompt to the host name I want, but my router still
says the node name is TEST.

Some internet searching came up with the "dhclient" command - which
works - but after the next lease renewal it is back to TEST again.
That name must be buried someplace in the linux configuration.

Ken

_______________________________________________
App_rpt-users mailing list
App_rpt-users@qrvc.com
http://qrvc.com/mailman/listinfo/app_rpt-users

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Michigan Broadband Systems Inc.
"Always Connected"

(734)527-7150

Steve's cellphone: (734)904-1811

···

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Ken wrote:

Does any linux guru out there know how to change the DHCP client name
from TEST?

I followed the instruction to use system-config-network and suceeded in
changing the shell prompt to the host name I want, but my router still
says the node name is TEST.

Some internet searching came up with the "dhclient" command - which
works - but after the next lease renewal it is back to TEST again.
That name must be buried someplace in the linux configuration.

Ken

_______________________________________________
App_rpt-users mailing list
App_rpt-users@qrvc.com
http://qrvc.com/mailman/listinfo/app_rpt-users

It is usually very beneficial to search app-rpt.qrvc.com first:

http://app-rpt.qrvc.com/node/163

Steve
WA6ZFT

Thanks!
Good suggestion.
Better to do it this way :slight_smile:

-Steve

Ken wrote:

Does any linux guru out there know how to change the DHCP client name
from TEST?

I followed the instruction to use system-config-network and suceeded in
changing the shell prompt to the host name I want, but my router still
says the node name is TEST.

Some internet searching came up with the "dhclient" command - which
works - but after the next lease renewal it is back to TEST again.
That name must be buried someplace in the linux configuration.

Ken

_______________________________________________
App_rpt-users mailing list
App_rpt-users@qrvc.com
http://qrvc.com/mailman/listinfo/app_rpt-users

It is usually very beneficial to search app-rpt.qrvc.com first:

http://app-rpt.qrvc.com/node/163

Steve
WA6ZFT
_______________________________________________
App_rpt-users mailing list
App_rpt-users@qrvc.com
http://qrvc.com/mailman/listinfo/app_rpt-users

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Michigan Broadband Systems Inc.
"Always Connected"

(734)527-7150

Steve's cellphone: (734)904-1811

···

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Hi Ken,

I don't know if this is ok for your distribution, but it's ok for me with CentOS.

Fix the station name in the file /etc/sysconfig/network :
HOSTNAME=asterisk.yourdomain.net

Add the machine name (HOSTNAME) in /etc/hosts :
127.0.0.1 asterisk.yourdomain.net localhost.localdomain localhost

This must be ok.
Feedback, please.

73,
F6HQZ
Francois

Le 07/01/2010 16:03, Ken a �crit :

···

Does any linux guru out there know how to change the DHCP client name
from TEST?

I followed the instruction to use system-config-network and suceeded in
changing the shell prompt to the host name I want, but my router still
says the node name is TEST.

Some internet searching came up with the "dhclient" command - which
works - but after the next lease renewal it is back to TEST again.
That name must be buried someplace in the linux configuration.

Ken

_______________________________________________
App_rpt-users mailing list
App_rpt-users@qrvc.com
http://qrvc.com/mailman/listinfo/app_rpt-users

yes I found that item in the QRVC site and as I mentioned , while it works to change the host name within the program; it does not change the hostname to the outside world (DHCP server).

I guess I am now one small step towards guru-hood.
I found this:

etc/sysconfig/network-scripts/ifcfg-eth0
mine looks like this (after I changed the last line from TEST to the name I wanted)

# Broadcom Corporation NetXtreme BCM5701 Gigabit Ethernet
DEVICE=eth0
BOOTPROTO=dhcp
DHCPCLASS=
HWADDR=00:06:5B:F7:28:DF
ONBOOT=yes
DHCP_HOSTNAME=Asterisk1

and - after a reboot - it works. The router now shows the name

so there are two names

     the host name used by the computer internally
     the host name used externally on the network

Ken
27021

···

-----Original Message-----
From: Steve Gladden <steve@michiganbroadband.com>
To: Ken <ke2n@cs.com>
Cc: app_rpt-users@qrvc.com
Sent: Thu, Jan 7, 2010 10:23 am
Subject: Re: [App_rpt-users] host name for DHCP

Is this a centos/ACID box?

TRY adding or editing the "HOSTNAME=" line in:
/etc/sysconfig/network

Was almost able to do this from memory but had to google it
by searching for "centos change hostname"
Not everyone is going to know exactly what to search for.
:slight_smile: so I won't griping "google is your friend" anytime soon :slight_smile:

Tested here and works :slight_smile:

[root@N8LBV-R ~]#

-Steve

Does any linux guru out there know how to change the DHCP client name
from TEST?

I followed the instruction to use system-config-network and suceeded

in

changing the shell prompt to the host name I want, but my router still
says the node name is TEST.

Some internet searching came up with the "dhclient" command - which
works - but after the next lease renewal it is back to TEST again.
That name must be buried someplace in the linux configuration.

Ken

_______________________________________________
App_rpt-users mailing list
App_rpt-users@qrvc.com
http://qrvc.com/mailman/listinfo/app_rpt-users

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Michigan Broadband Systems Inc.
"Always Connected"

(734)527-7150

Steve's cellphone: (734)904-1811

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.