TM-2000 Trunk Master ==================== Instructions for changing network addresses ------------------------------------------- These instructions provide a guideline for using the accompanying file "chg_ip.sh" to change the network settings for a TM-2000 computer. The following values can be changed: - the TM-2000's IP address - the subnet mask - the network address - the broadcast address - the address of a gateway computer (if any) - the IP address of the active/standby "partner", if any Note that if you have 2 TM-2000 computers running in an active/standby configuration, you must run this program separately on each computer. 1. Log on as root - - - - - - - - - At the computer console, type "root" at the login prompt. If a password has been set for root, enter it at the password prompt. You should then get the message "Linux 2.4.3", followed by a line ending with "# ". This is the login prompt. 2. Shut down the TM-2000 software - - - - - - - - - - - - - - - - - Enter the command /tm/stop_tm You should get 2 or 3 lines of output (not necessarily in this order): nvconfig: exiting Active/Standby: exiting Trunk Master: exiting (You will not get the "Active/Standby" line if the TM-2000 started up in stand-alone mode.) This should be followed by another "# " prompt. 3. Copy "chg_ip.sh" to /tm - - - - - - - - - - - - - This can be done in either of two ways: via a LAN, or via a floppy disk. 3a) Copying the file via a LAN Connect a computer running Windows (e.g. Win98, Win2000) to the same network as the TM-2000. Run "My Computer". Select the menu item Tools / Map Network Drive Select a suitable drive letter (this example assumes drive "Z"). For the folder, enter "\\tm1\tm" (assuming that the computer's name is "tm1". Click Finish. You will get a new window indicating that you need to enter a password. Enter tm_admin for "Connect As", along with the corresponding password. (Note: This is *not* the login password for tm_admin. It is a separate password, which can be set via the smbpasswd command. When the TM-2000 software is initially installed, both passwords are the same.) You should now be able to see the files in /tm on your Z: drive. (The first few files, alphabetically, should be "acces", "active_stdby", "data_logger".) Copy "chg_ip.sh" to this directory. Disconnect the network drive. 3b) Copying the files via a floppy disk Copy "chg_ip.sh" onto a DOS-formatted floppy disk. Put the disk into the floppy drive of the TM-2000 computer. Enter the following commands: insmod fat insmod vfat insmod msdos Each of these should respond with a line similar to: Using /lib/modules/2.4.3/kernel/fs/fat/fat.o Enter the command mount /floppy -r This should take several seconds, and then you should get another "# " prompt, but no other messages. Enter the command ls /floppy to get a list of the files on the floppy. You should see either "chg_ip.sh" or "CHG_IP.SH". (Note that, unlike DOS and Windows, Linux file names are case-sensitive.) Depending on which filename you see, enter ONE of the following two commands: cp /floppy/chg_ip.sh /tm OR cp /floppy/CHG_IP.SH /tm/chg_ip.sh Enter the command umount /floppy to indicate that you have finished with the floppy drive. (Note that this last command is "umount", not "unmount".) Remove the floppy disk from the drive. 4. Adjust the filename, if required - - - - - - - - - - - - - - - - - - If you transferred the file via LAN, check to see if the file was stored with its name in upper-case or lower-case. Enter the following command: ls /tm This will list the files stored in "/tm". Look for a filename of "chg_ip.sh" or "CHG_IP.SH". If the filename is in upper-case, enter the following command: mv /tm/CHG_IP.SH /tm/chg_ip.sh 5. Execute the update script - - - - - - - - - - - - - - - Enter the following command: sh /tm/chg_ip.sh The computer will check the local configuration files to determine what the current network settings are; it will then prompt you to enter the new settings. If you make a mistake when entering a value, don't worry. Just hit at each prompt. Eventually, it will show the following prompt: Ready to update the configuration files. Okay to proceed? (y/n) If you hit at this prompt, it will exit without touching the configuration files. Otherwise, (if you enter "y") it will update either of two files (/etc/hosts and /etc/rc.d/rc.inet1) as required, depending on what information changed. It is possible to use this program to change the network settings of the computer multiple times. 6. Reboot the computer - - - - - - - - - - - - You can either use the DOS reboot sequence (control-alt-delete), or you can enter the command shutdown -r now The computer should shut down and reboot itself, and automatically restart the TM-2000 software, using the new network settings.