Difference between revisions of "Common Cisco IOS Issues"
Line 11: | Line 11: | ||
<pre> | <pre> | ||
delete /force /recursive [filename] | delete /force /recursive [filename] | ||
</pre> | |||
== Forgotten Password Deletion - Routers == | == Forgotten Password Deletion - Routers == | ||
When working with labs on Routers, sometimes students enter their console passwords incorrectly or they simply forget. The following documentation will describe the procedure to erase any passwords needed to enter the networking device. | When working with labs on Routers, sometimes students enter their console passwords incorrectly or they simply forget. The following documentation will describe the procedure to erase any passwords needed to enter the networking device. |
Revision as of 18:59, 8 November 2018
File Deletion
Sometimes, files just don't want to go. They cling on to dear life. Generally, you would use the following command to delete files:
erase [filename]
However, sometimes Cisco IOS will spit back an error if it doesn't want to delete said file, for whatever reason. If you run into an issue, use the following command:
delete [filename]
If that doesn't work, usually with the "Is a directory" error, use the following command to force the deletion:
delete /force /recursive [filename]
Forgotten Password Deletion - Routers
When working with labs on Routers, sometimes students enter their console passwords incorrectly or they simply forget. The following documentation will describe the procedure to erase any passwords needed to enter the networking device.
1. Turn the power switch on the router to the off position and unplug the power cable from the router. 2. Please ensure that a computer is plugged into the console port and that the computer has a terminal emulator opened. (TeraTerm or PuTTY) 3. Plug in the power cable to the router and quickly press '''Break'''(PuTTY) or Alt+b(TeraTerm) repeatedly until the rommon 1> prompt appears. 4. When the rommon 1> script appears type and enter the following command: confreg 0x2142 5. After entering the previous command, enter the reset command to reload the router while ignoring the startup-config. 6. After entering the new config, delete the startup-config by typing: delete startup-config 7. After deleting the startup-config, reload the router using the '''reload''' command.
Forgotten Password Deletion - Switches
The procedure for deletion of line-level passwords outside of the running-config is done differently on switches as compared to routers. Switches require entry through Password Recovery Mode in order to delete passwords as well as corrupted IOS images.