The content of this document may be incorrect or outdated.
Print this article Edit this article
Moving a Linux Machine
WARNING: DEPRECATED DOCUMENT
You want this instead:
https://engineering.purdue.edu/ECN/Support/KB/Docs/ecn-supported-linux-rename-procedure?_authenticator=e99bfc8447a7927ade905a0028cb51faa4bfd790
Moving a Linux machine is fairly simple, but it requires that the IP address on the machine be changed in several locations. This has been automated. Register a new IP address for a Linux machine then log onto the machine in question and run (as root):
/home/fjord/a/redhat/changeip <new address>
So, for example, if you wanted to give a machine a new IP of 128.46.154.76
you would run:
/home/fjord/a/redhat/changeip 128.46.154.76
Once changeip
is run you can shut down the Linux machine (poweroff
or shutdown now -h
work nicely, but you should know this already) and physically move it. When the machine is next booted it will have the new address and correct routing info for the new subnet.
Similarly, there is a changename
script. Run it (as root) with the desired new hostname (not fully qualified domain name, just the hostname):
/home/fjord/a/redhat/changename <new hostname>
March 13, 2002
Last Modified:
Jan 3, 2023 2:09 pm US/Eastern
Created:
Oct 31, 2007 12:30 pm GMT-4
by
admin
JumpURL: https://eng.purdue.edu/jump/5323c