On Mon, 15 Jul 2002, John Dalbec wrote:

> Is it feasible to change the hostname and IP address of a system without
> rebooting it?  What services would need to be restarted?

Absolutely. My laptop only ever gets rebooted when I upgrade the kernel
and I plug it into several different network locations and even use
different network cards with it.

To change the hostname the command (as root) is simply:

hostname <new hostname>

To change the network settings, simply run:

netconfig

then

/etc/init.d/network restart

If it it's a laptop, I find it's usually best to stop pcmcia services
first:

/etc/init.d/pcmcia stop

then start them again

/etc/init.d/pcmcia start

before running netconfig and restarting network.

Finally, you should check your route by typing "route" to see if your
gateway is configured correctly.

If not, you can add it manually by issuing:

route add default gw <ip address of gateway>

Personally, I only need to do the latter in one of the 5 network locations
I plug my machine in to.

I hope that helps.

Ian




_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to