20.3 Tips and Tricks Cisco Forum FAQ| FAQ Revisions | Editors: skj, Covenant, aryoba, Phraxos Last modified on 2008-11-21 15:11:04 |
20.3 Tips and Tricks·Cisco CLI Handy Keys | ||||||||||||||||||||||||||||||||||||||||||||||
Cisco CLI Handy Keys (#9505) | ||||||||||||||||||||||||||||||||||||||||||||||
by Covenant edited by aryoba | ||||||||||||||||||||||||||||||||||||||||||||||
| lab_monkey>en lab_monkey#conf t Enter configuration commands, one per line. End with CNTL/Z. lab_monkey(config)#conf lab_monkey(config)#config-register 0x2101 lab_monkey(config)#end lab_monkey#sh ve Ascertain that it says this at the bottom of the "sh ve": Configuration register is 0x2102 (will be 0x2101 at next reload) Reload the router and it will ask you if you want to save the configuration settings, state YES, and it should boot in ROM memory (boot mode). lab_monkey(boot)#sh flash You should see something like this but in your case it will be 2 or more partitions with the IOS on one and possibly something else on the other partition(s). System flash directory: File Length Name/status 1 14598352 /c2500-ik8os-l.122-19a.bin [14598416 bytes used, 2178800 available, 16777216 total] 16384K bytes of processor board System flash (Read/Write) lab_monkey(boot)# Now, type this out: lab_monkey(boot)#erase flash It will ask you which partition to erase. Erase the one WITHOUT the IOS on it, usually its number 2. Repeat that for all the partitions except the one with the IOS on it. Then type: lab_monkey(boot)#config t lab_monkey(boot)(config)#no partition flash lab_monkey(boot)(config)#exit Afterwhich: lab_monkey(boot)#show version [verify flash partition has been eliminated] Once the flash paritition has been eliminated, change the config. register to 0x2102: lab_monkey(boot)#conf t Enter configuration commands, one per line. End with CNTL/Z. lab_monkey(boot)(config)#config lab_monkey(boot)(config)#config-register 0x2102 lab_monkey(boot)(config)#end lab_monkey(boot)#sh ve And again checking the last line to see if it states the config register will be 0x2102 at next reload by the sh ve command. Reboot and it should come online with no partitions: lab_monkey(boot)#reload It will ask you if you want to save the settings, state YES again. by Covenant edited by aryoba | ||||||||||||||||||||||||||||||||||||||||||||||
| Cisco ConfigMaker is an easy-to-use Microsoft Windows application used to configure a small network of Cisco routers (800, 1000, 1600, 1700, 2500, 2600, 3600, and 4000 series), switches, hubs, and other network devices from a single PC without requiring knowledge of Cisco IOS® software. Cisco ConfigMaker is designed for resellers and network administrators of small to medium-sized businesses who are proficient in LAN and WAN fundamentals and basic network design. InfoSource= Cisco ConfigMaker Software Download Note: Last time I check, Cisco no longer support ConfigMaker software. Therefore the software might only work for older Cisco equipments. Fortunately, new Cisco equipments are built with GUI (Graphical User Interface) feature. This way, any average Joe should be able to configure Cisco equipments via their existing Internet browser (i.e. Internet Explorer, Netscape) just like configuring SOHO equipments from (let's say) Linksys or Netgear. by nozero edited by aryoba | ||||||||||||||||||||||||||||||||||||||||||||||
| Because it can easily be decoded. Here is one such example of how this can be accomplished. Just look for a line like
If you cut and paste the sample hash above, 1500020F0C into the following site, and hit submit, you will see how easy it is to determine the correct password for hash 1500020F0C is rich. http://www2.tongzweb.com/tools/cisco.asp It is suggested to use the secret 5 instead that is based on MD5 (Message Digest 5). The secret 5 MD5 uses higher-bit encryption level which makes the secret is much more difficult to decrypt. In other words, using secret 5 is more secure than password 7. by nozero edited by aryoba | ||||||||||||||||||||||||||||||||||||||||||||||
| The simplest solution should be buying one. A console cable is basically an RS-232 serial cable. It depends on the cable model; one end could be having RJ-45 and another has DB-9 or DB-25. Console cable should be available at any local computer store. You can also check for "Cisco console kit" on ebay to buy online. When it is not feasible to buy online or from local computer store, you can consider to make one on your own. Keep in mind that when you are not used to make your own cable, the result could be unexpected. If you are more of "make-your-own-cable person" and need to have specification, then this should be a good start. Following is the instruction to make your own console cable. You can make a custom serial cable with an RJ45 on one end to connect directly to a Cisco console port. This is done by cutting one end of the serial cable off, stripping about 2” of the shielding, and pinning the individual wires to their correct locations in an RJ45 connector as shown in this FAQ. Things that you will need: A continuity tester A knife A paper clip Wire strippers RJ45 crimping tool A standard serial cable One RJ45 A pen or pencil A piece of paper for notes.
Steps: 1. Cut one end of your serial cable off. 2. Strip about 2” of the shielding off exposing the individual wires. 3. Expose about 1 centimeter of the end of each wire by stripping it with a knife for continuity testing. 4. Unfold your paperclip. 5. Write the numbers 1-8 down each on their own line on your paper. 6. Insert the unfolded paperclip into pin 8 on the remaining DB9 connector of your serial cable. 7. Using the continuity tester find that wire and write the color down next to number one on your paper. 8. Once you find what wire pin 8 is connected to note that that wire will go into pin 1 on the RJ45. 9. Repeat this step for pins 6, 2, 5, 3, 4, 7 on the DB9. 10. You should have one wire that you haven’t identified. This is your 2nd ground wire. It will go to pin 5 on your RJ45 so put it next to number 5 on your paper ensuring you have noted them correctly. 11. Now you should have a list of colors next to their corresponding numbers. Make up the RJ45 using the pin out pattern. If done correctly you will have a serial cable that you can use to directly connect to most Cisco devices. by yaplej edited by aryoba | ||||||||||||||||||||||||||||||||||||||||||||||
| Table C-1 T1/E1 Connector Pinouts using RJ45s Pin Number Signal Name 1 ----- RX ring 2 ----- RX tip 3 ----- RX Ground 4 ----- TX ring 5 ----- TX tip 6 ----- TX Ground 7 ----- Not used 8 ----- Not used Connect pin 1 to 4, 2 to 5, and 3 to 6. Courtesy of yaplej. by yaplej edited by aryoba | ||||||||||||||||||||||||||||||||||||||||||||||
| You try to console into a Cisco router but have unreadable output? Most of the time problem is the speed mismatch between your computer (terminal simulator software) serial port and the router console port. The idea to fix it is basically match them back. Therefore in general you should try to change baud speed of your terminal emulator software. Specifically for 2600 and 3600 series router, you also can reposition the router's jumper. Following is the Cisco link for details. Cisco 2600 and 3600 Console Baud Reset Jumper Check out the following thread for discussion. /forum/remark,14259843 »2600 issues with Hyperterminal When your router is neither 2600 nor 3600 series, then you might want to implement steps on the following FAQ. »Cisco Forum FAQ »Used wrong config-register and now the router does not boot! by aryoba | ||||||||||||||||||||||||||||||||||||||||||||||