You can set your $HOSTNAME in /etc/sysconfig/network to whatever you
want and then set a different name in
/etc/sysconfig/network-scripts/ifcfg-eth0.  You get to have your
hostname of choice and your internet works.


On Sat, 2003-08-16 at 14:45, Rolf Pedersen wrote:
> James T. Nelson III wrote:
> > Try adding a DHCP_HOSTNAME= entry to the
> > /etc/sysconfig/network-scripts/ifcfg-eth0 file with the hostname Comcast
> > is providing you.  The ifup script will send this when it does the DHCP
> > negotiation instead of the hostname you've selected for your machine.
> > 
> > JN
> 
> I am not following this suggestion.  My problem is that dhcp or some
> other script is changing $HOSTNAME to the name Comcast, evidently, is
> using.  Internet is functional; it's just disturbing to see the prompt
> changed to
> [EMAIL PROTECTED]
> and not being able to change it.  I was able to change $HOSTNAME with
> the hostname command, but it does not persist across a reboot.  Can you
> clarify for me?  Thanks.
> 
> Rolf
> > 
> > On Sat, 2003-08-16 at 13:44, Rolf Pedersen wrote:
> > 
> >>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
> > 
> > 
> > 
> > 
> > ------------------------------------------------------------------------
> > 
> > Want to buy your Pack or Services from MandrakeSoft? 
> > Go to http://www.mandrakestore.com
> 
> 
> 
> 
> ______________________________________________________________________
> 
> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com


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

Reply via email to