On Fri, Aug 13, 1999 at 11:02:12AM -0400, Denis Voitenko wrote:
> This might sound silly. This is a the first time I ever had to change the IP
> of my Linux box and I ran into a small problem. I changed it in /etc/hosts
> but when I restarted the machine it had the old IP. Where else would I have
> to change it?
> 
> Denis

Changing it in /etc/hosts is only to avoid unneeded DNS lookups.
Furthermore, under Linux, rebooting is unnecessary when changing 
your IP address (and for that matter, everything else except when
you wish to change your kernel or save electricity).

How you set up and change your IP address is somewhat distribution
specific (if you want to change to last past a reboot).

For RedHat based systems, use linuxconf (or manually edit
/etc/sysconfig/network and /etc/sysconfig/network-scripts and then run
/etc/rc.d/init.d/network restart ).

For Debian based systems, edit /etc/init.d/network and then run
'ifconfig eth0 down' and then '/etc/init.d/network'.

Further details about your problems, and your system will generate more
specific assistance.  Good luck,

 -Erik

--
Erik B. Andersen   Web:    http://www.xmission.com/~andersen/ 
                   email:  [EMAIL PROTECTED]
--This message was written using 73% post-consumer electrons--
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to