# apt-get install minicom Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: lrzsz The following NEW packages will be installed: lrzsz minicom 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. Need to get 432 kB of archives. After this operation, 1,266 kB of additional disk space will be used. Do you want to continue [Y/n]? Y
Подключаем циску по консольному шнурку (COM-RJ45)
Определяем на каком tty у нас сериальник
# dmesg | grep tty [ 0.000000] console [tty0] enabled [ 0.888199] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 0.888542] 00:0d: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Соответственно у нас это ttyS0
Настраиваем minicom
# minicom -s
выбераем пункт
Serial port setup
далее нажимаем A и меняем устройство
A - Serial Device /dev/ttyS0
Нажимаем E и тоже меняем
E - Bps/Par/Bits C: 9600 (нажать C) Q: 8-N-1 (Нажать Q)
Далее сохранем настройку и выходим
Save setup as dfl Exit
После выхода сразу получаем консоль
Welcome to minicom 2.4 OPTIONS: I18n Compiled on Sep 5 2010, 08:31:32. Port /dev/ttyS0 User Access Verification Password: % Password: timeout expired! Password: % Bad passwords
СБРОС ПАРОЛЯ
Перезагружаем циску и в minicom-е жмем CTRL-A F (Break)
System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1) Copyright (c) 1999 by cisco Systems, Inc. TAC:Home:SW:IOS:Specials for info PC = 0xfff0a530, Vector = 0x500, SP = 0x680127c8 PC = 0xfff0a530, Vector = 0x500, SP = 0x680127b0 C2600 platform with 65536 Kbytes of main memory PC = 0xfff0a530, Vector = 0x500, SP = 0x80004684 monitor: command "boot" aborted due to user interrupt
Получаем консоль rommon 1 >
и вводим следующее:
rommon 1 > confreg 0x2142 You must reset or power cycle for new config to take effect rommon 2 > reset
Циска перезагружается уже в обычном режиме и пароль уже не спрашивает
Would you like to enter the initial configuration dialog? [yes/no]: no Press RETURN to get started! Router>
Завершающий этап - сбрасываем циску в дефолт следующими командами:
Router>en Router#conf t Router(config)#config-register 0x2142 Router(config)#end Router# Router#reload
После перезагрузки мы получаем "сброшеную" циску
Would you like to enter the initial configuration dialog? [yes/no]: n Press RETURN to get started!
На вопрос всегда говорить n
Would you like to enter the initial configuration dialog? [yes/no]: