quarta-feira, 22 de maio de 2019

Reset de fábrica access-points Cisco



Fala galera beleza?

Segue um tutorial básico de como resetar os access-points Cisco em modo de fabrica, o primeiro passo é ligar o access-point com o botão mode pressionado (e com o cabo console conectado):



Radio0  present 8764 8000 0 A8000000 A8010000 0
IOS Bootloader - Starting system.
flash is writable
Tide XL MB - 40MB of flash
Xmodem file system is available.
flashfs[0]: 81 files, 8 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 41158656
flashfs[0]: Bytes used: 29009920
flashfs[0]: Bytes available: 12148736
flashfs[0]: flashfs fsck took 11 seconds.
Base Ethernet MAC address: f4:0f:1b:59:04:4c
Ethernet speed is 1000 Mb - FULL Duplex
button is pressed, wait for button to be released...
button pressed for 20 seconds
process_config_recovery: set IP address and config to default 10.0.0.1
process_config_recovery: image recovery
image_recovery: Download default IOS tar image tftp://255.255.255.255/ap3g2-k9w7-tar.defaultexamining image...
DPAA Set for Independent Mode
 tide_boot_speed = 1000
DPAA_INIT = 0x0

%Error opening tftp://255.255.255.255/ap3g2-k9w7-tar.default (connection timed out)

Após o boot, utilize o comando dir flash: para localizar o arquivo private-multiple-sf conforme abaixo:

ap:
ap: dir flash:
Directory of flash:/

2    -rwx  286       <date>               info
60   drwx  2496      <date>               ap3g2-k9w8-mx.153-3.JC15
3    -rwx  85        <date>               env_vars
57   -rwx  137085    <date>               event.r1
58   drwx  448       <date>               configs
4    -rwx  64        <date>               sensord_CSPRNG0
5    -rwx  100       <date>               capwap-saved-config
62   -rwx  270       <date>               r1.rcore.info
6    -rwx  74675     <date>               event.log
18   -rwx  136002    <date>               event.r0
9    -rwx  64        <date>               sensord_CSPRNG1
12   -rwx  14467240  <date>               r1.rcore
17   -rwx  100       <date>               capwap-saved-config-bak
21   -rwx  64232     <date>               event.capwap
19   -rwx  12312     <date>               private-multiple-fs
25   -rwx  8         <date>               sensord_crashVer1
26   -rwx  1         <date>               ce
28   -rwx  32793     <date>               sensord_crashFile1
29   -rwx  95008     <date>               lwapp_reap.cfg.bak

12148736 bytes available (29009920 bytes used)

Delete esse arquivo e realize o boot novamente do AP:

ap: delete flash:private-multiple-fs
Are you sure you want to delete "flash:private-multiple-fs" (y/n)?y
File "flash:private-multiple-fs" deleted
ap: reset
Are you sure you want to reset the system (y/n)?y
System resetting...

IOS Bootloader - Starting system.
flash is writable
Tide XL MB - 40MB of flash
Xmodem file system is available.
flashfs[0]: 80 files, 8 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 41158656
flashfs[0]: Bytes used: 28996608
flashfs[0]: Bytes available: 12162048
flashfs[0]: flashfs fsck took 11 seconds.
Base Ethernet MAC address: f4:0f:1b:59:04:4c
Ethernet speed is 1000 Mb - FULL Duplex
Loading "flash:/ap3g2-k9w8-mx.153-3.JC15/ap3g2-k9w8-mx.153-3.JC15"...#########################

File "flash:/ap3g2-k9w8-mx.153-3.JC15/ap3g2-k9w8-mx.153-3.JC15" uncompressed and installed, entry point: 0x2003000
executing...

Secondary Bootloader - Starting system.
Montserrat Board
40MB format
Tide XL MB - 40MB of flash
Xmodem file system is available.
flashfs[0]: 80 files, 8 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 41158656
flashfs[0]: Bytes used: 28996608
flashfs[0]: Bytes available: 12162048
flashfs[0]: flashfs fsck took 11 seconds.
flashfs[1]: 0 files, 1 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 12257280
flashfs[1]: Bytes used: 1024
flashfs[1]: Bytes available: 12256256
flashfs[1]: flashfs fsck took 1 seconds.
Base Ethernet MAC address: f4:0f:1b:59:04:4c
Unable to locate IOS image with name **xx**.
Boot CMD: 'boot  flash:/ap3g2-k9w8-mx.153-3.JC15/ap3g2-k9w8-xx.153-3.JC15'
Loading "flash:/ap3g2-k9w8-mx.153-3.JC15/ap3g2-k9w8-xx.153-3.JC15"...################################################
File "flash:/ap3g2-k9w8-mx.153-3.JC15/ap3g2-k9w8-xx.153-3.JC15" uncompressed and installed, entry point: 0x1003000
executing...

Após o boot completo, acesso a cli usando o usuário e senha abaixo:

Usuário: Cisco
senha: Cisco

Obs. A senha de enable também é Cisco.

Pronto, você pode agora adicionar o seu AP de volta para a controller com os comandos abaixo:

3702#capwap ap controller ip address <IP_Controller>

3702#capwap ap primary-base <Nome_controller> <IP_Controller>

Pode variar de um modelo para outro, mas na grande maioria dos APs Cisco o processo é o mesmo.

Abraços

Nenhum comentário:

Postar um comentário