Difference between revisions of "Common Cisco IOS Issues"

From 24PinTech Wiki
Jump to navigation Jump to search
Line 17: Line 17:
1. Turn the power switch on the router to the off position and unplug the power cable from the router.  
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)
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.
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
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.
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  
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.
7. After deleting the startup-config, reload the router using the "reload" command.
</pre>
</pre>
== Forgotten Password Deletion - Switches ==
== 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.
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.
<pre>
<pre>
 
1. Open a terminal emulator and ensure your computer is connected to the console port. (Make sure no power is supplied to the switch)
2. Plug the power cable into the switch; meanwhile, press and hold the mode button until the terminal displays the switch: config text.
3. Use the following commands to reset the running-config with a password:
switch: flash_init
switch: dir flash:
switch: delete flash:[config.text]
4. Answer with "y" to delete the file.
5. Use the reset command to reboot the switch:
switch: reset
6. Answer with "y" again to reset the switch.
7. When the switch boots into the normal startup-config, erase the startup-config and reload the switch again to be safe.
Switch# erase startup-config
Switch# reload
</pre>
</pre>

Revision as of 19:23, 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.

1. Open a terminal emulator and ensure your computer is connected to the console port. (Make sure no power is supplied to the switch)
2. Plug the power cable into the switch; meanwhile, press and hold the mode button until the terminal displays the switch: config text.
3. Use the following commands to reset the running-config with a password:
switch: flash_init
switch: dir flash:
switch: delete flash:[config.text]
4. Answer with "y" to delete the file.
5. Use the reset command to reboot the switch:
switch: reset
6. Answer with "y" again to reset the switch.
7. When the switch boots into the normal startup-config, erase the startup-config and reload the switch again to be safe.
Switch# erase startup-config
Switch# reload