Wednesday, April 15, 2015

Cisco Router: How To Get An IOS On A Flash Card When There Is Nothing On It, When You Have Nothing But The Router

What do you do when you have a blank flash card for a router and nothing to get the image on with?  Well, you use the router and TFTP.  You boot up the router, with the flash card in, and you put the IP information on the router (as seen below) and get the image on the flash card.  Below is how you do it.  Then you boot up to the IOS.

rommon 1 > IP_ADDRESS=192.168.1.2
rommon 2 > IP_SUBNET_MASK=255.255.255.0
rommon 3 > DEFAULT_GATEWAY=192.168.1.1
rommon 4 > TFTP_SERVER=192.168.1.6
rommon 5 > TFTP_FILE=c2800nm-ipvoicek9-mz.124-24.T8.BIN
rommon 6 > set
PS1=rommon ! >
FE_PORT=0
?=0
WARM_REBOOT=FALSE
RET_2_RTS=20:46:35 UTC Mon Jan 26 2015
BSI=0
RET_2_RCALTS=
RANDOM_NUM=637180415
IP_ADDRESS=192.168.1.2
IP_SUBNET_MASK=255.255.255.0
DEFAULT_GATEWAY=192.168.1.1
TFTP_SERVER=192.168.1.6
TFTP_FILE=c2800nm-ipvoicek9-mz.124-24.T8.BIN

rommon 7 > tftpdnld

          IP_ADDRESS: 192.168.1.2
      IP_SUBNET_MASK: 255.255.255.0
     DEFAULT_GATEWAY: 192.168.1.1
         TFTP_SERVER: 192.168.1.6
           TFTP_FILE: c2800nm-ipvoicek9-mz.124-24.T8.BIN
        TFTP_VERBOSE: Progress
    TFTP_RETRY_COUNT: 18
        TFTP_TIMEOUT: 7200
       TFTP_CHECKSUM: Yes
        TFTP_MACADDR: 00:23:5e:46:fc:68
             FE_PORT: Fast Ethernet 0
       FE_SPEED_MODE: Auto

Invoke this command for disaster recovery only.
WARNING: all existing data in all partitions on flash: will be lost!
Do you wish to continue? y/n:  [n]:  y
.
Receiving c2800nm-ipvoicek9-mz.124-24.T8.BIN from 192.168.1.6 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

No comments:

Post a Comment

Your comment will be reviewed for approval. Thank you for submitting your comments.