|
Home > Archive > Red Hat Configuration > January 2004 > dhcp client
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Troy Piggins 2004-01-23, 7:28 pm |
| Hi. My gateway is running RH9, external interface is DHCP address
while internal is static. Both interfaces work fine and perform
well enough.
One little thing annoys me - the dhcp server must determine my
hostname. Is there a way of accepting all the dhcp information
(such as dns, gateways, time servers, ip address) but not accepting
or over-riding the hostname that I want (eg - gateway1). I believe
there is something I should be able to put in a dhcp client conf
file, but not found any good web sites with the information I want.
Thanks.
--
T R O Y P I G G I N S
e : troy@piggo.com
| |
| Lenard 2004-01-23, 7:28 pm |
| On Tue, 20 Jan 2004 06:24:14 +0000, Troy Piggins typed:
quote:
> Hi. My gateway is running RH9, external interface is DHCP address while
> internal is static. Both interfaces work fine and perform well enough.
> One little thing annoys me - the dhcp server must determine my hostname.
> Is there a way of accepting all the dhcp information (such as dns,
> gateways, time servers, ip address) but not accepting or over-riding the
> hostname that I want (eg - gateway1). I believe there is something I
> should be able to put in a dhcp client conf file, but not found any good
> web sites with the information I want. Thanks.
/etc/sysconfig/networking/devices/ifcfg-ethX ;where X is your external
interface(i.e. eth0, eth1 etc).
Add a line like;
HOSTNAME=The_name_I_want_here
--
SCO + RICO Act = Justice
Hi! I'm a .sig virus! Copy me to your .sig!
| |
| Troy Piggins 2004-01-23, 7:28 pm |
| * Lenard <lenard@127.0.0.1> [Tue, 20 Jan 2004 10:57 pm] :
quote:
> On Tue, 20 Jan 2004 06:24:14 +0000, Troy Piggins typed:
>
>
> /etc/sysconfig/networking/devices/ifcfg-ethX ;where X is your external
> interface(i.e. eth0, eth1 etc).
>
> Add a line like;
> HOSTNAME=The_name_I_want_here
>
>
Thanks.
I think you mean /etc/sysconfig/network-scripts/ifcfg-eth0 (well, at least
for my distro)
I seem to remeber doing that once before, but when the dhcp lease renewed,
hostname was overwritten. Was thinking there may be a config file as
dhclient that ignored dhcp server's hostname. Maybe the ISP needs hostname
to be something or other for authentication?
--
T R O Y P I G G I N S
e : troy@piggo.com
|
|
|
|
|