Re: New on cable. Bash prompt name changed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ron said:
>>
>> My
>>
> /etc/sysconfig/network-scripts/ifcfg-eth
>> 0 :
>>
>> # nVidia Corporation CK804 Ethernet
>> Controller
>> DEVICE=eth0
>> BOOTPROTO=bootp
>> HWADDR=00:11:D8:CF:C4:8C
>> ONBOOT=yes
>> DHCP_HOSTNAME=localhost.localdomain
>> USERCTL=yes
>> IPV6INIT=no
>> PEERDNS=yes
>> TYPE=Ethernet
>>
>> After rebooting  my shell domain name
>> is:
>>
>> [ron c-67-191-14-212 ~]$
>>
>> After using the System Configure
> Network
>>  Gui:
>>
>> [ron localhost ~]$
>>
>> But after reboot it reverts back to:
>>
>> [ron c-67-191-14-212 ~]$
>>
>> -ron-

Alexander said:
>
> Use a hostname which is not localhost or
> localhost.localdomain. Else (in
> your case actually) the DHCP client
> network scripts in these cases
> rewrite the hostname dynamically. Use
> something like "core5.lan" or
> similar.
>

Success. I overlooked the obvious again! Thank you so much,

[ron@core5 ~]$ uname -a
Linux core5 2.6.16-1.2080_FC5smp #1 SMP Tue Mar 28 03:55:15 EST 2006
i686 athlon i386 GNU/Linux
[ron@core5 ~]$

/etc/sysconfig/network-scripts/ifcfg-eth0 :

# nVidia Corporation CK804 Ethernet Controller
DEVICE=eth0
BOOTPROTO=bootp
HWADDR=00:11:D8:CF:C4:8C
ONBOOT=yes
DHCP_HOSTNAME=core5
USERCTL=yes
IPV6INIT=no
PEERDNS=yes
TYPE=Ethernet

/etc/dhclient-eth0.conf :

send host-name "core5";  # temporary RHL ifup addition

-ron-


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux