Sometimes it can be useful to bring PacketShaper back to its factory defaults and start from scratch. For example, setting to factory default is recommended when PacketShaper boots with a "configuration corrupted" message.
The problem with using the setup reset all command is that it also clears the IP address of the unit.
This is not a problem when you are next to the unit and can connect to the console port. But what if the unit is in a remote location where you have no access and nobody to set the IP address for you?
This article describes two ways around this problem, allowing you to reset a unit to factory defaults.
Note : This requires you to have the 'touch' password
1. Using a text editor, create a file called startup.cmd. This text file should contain the following two lines:
setup ipaddress <ip>
setup gateway <ip>
Substitute the appropriate IP address and subnet mask for the variables above. Also, make sure there is a blank line after the second command.
2. FTP the startup.cmd file to the root of PacketShaper's flash disk (9.256/).
3. If desired, save your configuration using the setup capture complete backup.cmd command.
4. Type setup reset all and acknowledge. The unit will now flush its entire configuration (including its address) and reboot. After rebooting, it will automatically run the startup file that sets the IP address and default gateway. The unit can now be accessed from anywhere in the network via Telnet, FTP, or a web browser. Make sure you delete the startup.cmd file.
5. If you backed up the configuration and want to restore it, enter run backup.cmd.
If you made a mistake somewhere, you can try the second method.
You can always access an unconfigured PacketShaper with the default PacketShaper address, 126.96.36.199. The problem is that the address is non-routable. You must find a host in a subnet from where you can set up a local Telnet session. A Cisco router will typically work.
1. If desired, save your configuration using the setup capture complete backup.cmd command.
2. Use the setup reset all command to reset all settings.
3. Open a Telnet session to a Cisco router in the same subnet.
4. In the Cisco CLI, enter telnet 188.8.131.52 to connect to PacketShaper.
You should now have access to the unit and can restore the configuration you saved locally by entering run backup.cmd.