пятница, 13 января 2012 г.

Cisco 2600: minicom + сброс пароля

Устанавливаем minicom
# 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

Циска ругается на пароль.