Changing the IP address of Sauron

While it's not difficult to change the IP address of a Solaris box, it's not entirely obvious.
  1. Become root.
  2. Edit /etc/hosts. Find the line which specifies sauron's own ip address. It will look something like
    192.168.1.5 sauron      #this computer
    
    Comment this line out. Uncomment the similar corresponding line in the Experiment Room 3 section of the file. /etc/hosts is well-commented and it should be clear which lines to edit.
  3. Edit /etc/defaultrouter. Comment out the room 6 line and uncomment the room 3 line.
  4. Edit /etc/netmasks. Comment out the room 6 line and uncomment the room 3 line.
  5. That's it. You may now shutdown sauron (use "shutdown -h now" as root), move it to the other room, and it will boot up properly on that network.