C800-IOS-Restore
Материал из noname.com.ua
Версия от 18:28, 21 января 2024; Sirmax (обсуждение | вклад)
Восстановление IOS на Cisco 871
Это заметка что бы не забыть
Предистория
после команды
gw#erase startup-config Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] [OK] Erase of nvram: complete gw# *Nov 21 21:33:35.362: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram gw#reload
ЖЕлезка окирпичилась и не грузится, рушается на флеш
Filesystem "flash:" not checked -- I/O error rommon 10 > System Bootstrap, Version 12.3(8r)YI4, RELEASE SOFTWARE Technical Support: http://www.cisco.com/techsupport Copyright (c) 2006 by cisco Systems, Inc. C870 series (Board ID: 3-148) platform with 196608 Kbytes of main memory flashfs[0]: Checking block 1...bad block number (31551) flashfs[0]: erasing block 1...done. flashfs[0]: Checking block 3...bad block number (31551) flashfs[0]: erasing block 3...done.
Решение
С USB грузится не вышло (похоже огрангичение платформы)
format
Формат помог решить проблему с флешем - после форматирования стал доступен
rommon 2 > format flash: Are you sure you want to format "flash:" (all data will be lost) (y/n)?y Formatting filesystem, please wait 120 seconds Filesystem "flash:" formatted rommon 3 > dir List of filesystems currently registered: flash[0]: (read-write) rommon 4 >
Загрузка IOS из rommon
- Важно: кабель включить в 1 порт (Fa0)
- Выставить переменые
TFTP_FILE=c870-advipservicesk9-mz.124-24.T5.bin IP_ADDRESS=192.168.22.22 IP_SUBNET_MASK=255.255.255.0 DEFAULT_GATEWAY=192.168.22.1 TFTP_SERVER=192.168.1.223 TFTP_CHECKSUM=0
Запустить загррузку - tftpdnld
rommon 19 > tftpdnld IP_ADDRESS: 192.168.22.22 IP_SUBNET_MASK: 255.255.255.0 DEFAULT_GATEWAY: 192.168.22.1 TFTP_SERVER: 192.168.1.223 TFTP_FILE: c870-advipservicesk9-mz.124-24.T5.bin Do you wish to continue? y/n: [n]: y Performing tftpdnld over Fast Enet. Initializing interface. Interface link state up. ARPing for 192.168.22.1 ARP reply for 192.168.22.1 received. MAC address 00:02:2d:11:22:33 Receiving c870-advipservicesk9-mz.124-24.T5.bin from 192.168.1.223 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! File reception completed. Writing flash:/c870-advipservicesk9-mz.124-24.T5.bin Write operation will take approximately 133 to 400 seconds
rommon 21 > dir flash: Directory of flash:/ 2 -rwx 21877504 <date> c870-advipservicesk9-mz.124-24.T5.bin 5728256 bytes available (21882880 bytes used)
rommon 22 > boot flash:/c870-advipservicesk9-mz.124-24.T5.bin Booting flash:/c870-advipservicesk9-mz.124-24.T5.bin Self decompressing the image : ########################################################################################## [OK]