Dave Sherman wrote:
Rolf Pedersen wrote:

Hi,

I was just provisioned with a cable modem/account, which uses dhcp, and
my bash prompt now looks like:

[EMAIL PROTECTED]

where the part starting with 00 is the HWaddr of eth0, according to

Yes. Your cable company's dhcp server knows your ethernet MAC address. It is assigning you a host name using your MAC address to ensure that the hostname is unique on its network.

You *might* be able to edit /etc/sysconfig/network-scripts/ifcfg-eth0 and make sure there is in entry that looks like:
NEEDHOSTNAME=no

Changed this from =yes to =no



You would also need to edit /etc/sysconfig/network, and set the following entry (if it's not already there):
HOSTNAME=localhost

added this



Both of these need to be done as root (or use sudo). Finally, as root (or using sudo) run the following command:
service network restart
to restart your network services without rebooting.

Went to runlevel 3 to do this so as to restart kde (which is needed to see a change in the konsole prompt when I use hostname to change the host)


However, depending upon how the cable company is set up, their systems might refuse you Internet access if you have a hostname that they don't recognize.

I still have internet connectivity but the prompt and echo $HOSTNAME are still the MAC address.


Good luck.



Thanks.




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to