Cisco handy configs

From Ever changing code
Jump to navigation Jump to search

Cisco IOS commands

default interface atm0/1/0 - it brings interface to its defaults

Switch default gateway

sw1(config)#ip default-gateway 192.168.1.254

Cisco IOS MD5 File Validation

verify /md5 filesystem:filename md5-value
Router# verify /md5 flash0:c7200-js-mz 
router# verify /md5 disk1:c7200-js-mz 0f369ed9e98756f179d4f29d6e7755d3 
..................................
..................................
...............................Done!
Verified (disk1:c7200-js-mz) = 0f369ed9e98756f179d4f29d6e7755d3

Windows MD5 checker

Download from Ms Support Windows-KB841290-x86-ENU.exe file and run. It will extract tool fciv.exe which can be moved to C:\Windows\System32 and easy accessible from a command line.

fciv.exe c:\mydir\myfile.dll
C:\Users\user1\Downloads>fciv c3750-ipbasek9-mz.122-55.SE5.bin
//
// File Checksum Integrity Verifier version 2.05.
//
7204ae3a63a59f00b5b5a31bfdababf8 c3750-ipbasek9-mz.122-55.se5.bin

Copy files to Cisco device

ip tftp source-interface GigabitEthernet0/1 '<-- set source tftp interface'
conf t
r1-basic#copy tftp flash
Address or name of remote host []? 192.168.100.11
Source filename []? 8705_t1_0_3_2.tar
Destination filename [8705_t1_0_3_2.tar]?
Accessing tftp://192.168.100.11/8705_t1_0_3_2.tar...
Loading 8705_t1_0_3_2.tar from 192.168.100.11 (via GigabitEthernet0/1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 21821440 bytes]

21821440 bytes copied in 44.080 secs (495042 bytes/sec)

r1-basic#sh flash0: | inc 8705
243   21821440 Aug 29 2013 13:44:54 +00:00 8705_t1_0_3_2.tar

TFTP transfer progress characters

During the tftp, scp or ftp transfer the progress bar displays the exclamation marks but sometimes also other characters: TFTP Transfer Character Description

  • ! - for net transfers an exclamation point indicates that the copy process is taking place. Each exclamation point indicates the successful

transfer of ten packets (512 bytes each).

  • .. - for net transfers a period indicates the copy process timed out. Many periods in a row typically mean that the copy process may fail.
  • O - for net transfers an uppercase O indicates a packet was received out

of order and the copy process may fail.

  • e - for flash erasures, a lowercase e indicates a device is being erased.
  • E - an uppercase E indicates an error. The copy process may fail.

Upgrade modem Firmware

Cisco process guide on how to upgrade a modem

Syntax is microcode reload cellular pa-bay slot gsm modem-provision pa-bay — Use 0 for HWIC, slot — slot number where the HWIC is plugged in. Use command below for Cisco Router 1941 with EHWIC card in slot 0.

microcode reload cellular 0 0 gsm modem-provision

Here is a whole process recorded:

r1-basic#archive tar /xtract flash0:8705_t1_0_3_2.tar flash0: '<-- extracting firmware file'
extracting FWUpgradeConfigFile.txt (135 bytes)
extracting appl.cwe (21310948 bytes)
extracting boot.cwe (497164 bytes)
r1-basic#microcode reload cellular 0 0 gsm modem-provision '<-- initiates the firmware upgrade process'
Reload microcode? [confirm]
Log status of firmware download in router flash?[confirm]
Firmware download status will be logged in flash0:fwlogfile
Microcode Reload Process launched for hwic slot=0; hw type=0x51E
r1-basic#
*****************************************************
 The interface will be Shut Down for Firmware Upgrade
 This will terminate any active data connections.
 Do not make any config changes related to the interface.
*****************************************************
*****************************************************
 Modem will be upgraded!
 Upgrade process will take up to 15 minutes. During
 this time the modem will be unusable.
 Please do not remove power or reload the router during
 the upgrade process.
*****************************************************
Begin boot image download
Firmware [size:497164 bytes] will be downloaded in 486 segments

***** Boot File Upgrade OK *****

******************************************
The firmware file will be copied in blocks
from Compact Flash. Please DO NOT remove
Compact Flash during Upgrade Process. Doing
so will cause download failure and leave
modem in unusable state
*******************************************
Prepare modem for downloading application image
r1-basic#.
Begin application image download
Firmware [size:21310948 bytes] will be downloaded in 20892 segments
!
r1-basic#!! '<-- image download processing'
r1-basic#!!!
r1-basic#!!
r1-basic#!!
r1-basic#!!!

***** Application Firmware Upgrade OK *****

Modem Upgrade OK
r1-basic#
*Aug 29 13:51:36.871: %CELLWAN-2-MODEM_DOWN: Modem in HWIC slot 0/0 is DOWN
r1-basic#
*Aug 29 13:51:46.459: %CELLWAN-2-MODEM_UP: Modem in HWIC slot 0/0 is now UP
r1-basic#