본문 바로가기
Network/Router&Swtich

[Router&Swtich] 라우터 복구

by JINJINC 2023. 3. 17.
728x90
반응형

CISCO 라우터 구성요소

Cisco 라우터는 ROM, RAM, NVRAM, Flash 4종류의 메모리를 내장하고 있다.

 

ROM RAM NVRAM FLASH
일기전용, 전원을 내려도 지워지지 않음 읽고 쓰기 가능, 전원을 내리면 내용이 삭제 읽고 쓰기 가능,
전원을 내려도 지워지지 않는다.
일고 쓰기 가능, 전원을 내려도지워지지 않는다.
IOS가 담겨있음
Mini IOS POST Bootstrap running-conifg copy run startup-config config-register
copy[복사해올파일] start [ 옮길 장소]
IOS
  삭제시
no [원래 명령어]
삭제시
erase start-config
삭제시
delete flash
ios 백업
copy tftp flash ⇒ tftp 에서 flash 로 저장해라

<RAM>(→ NVRAM, PC에 저장할 수 있다.)
-copy runnig-conifg startup-config = write
-copy running-config tftp <참고<PC ‘ip’? pc에 저장할 이름? 을 물어봄

<NVRAM>
-copy sartup-config runnig-config
-copy startup-config tftp <참고> pc’ip?,pc에 저장할 이름

<FLASH>
-copy flash tftp <참고> pc’ip?pc에 저장할 이름

<TFT>
copy tftp running-config
copy tftp startup-conig
copy tftp flash
Router#show startup-config 
startup-config is not present
Router#show flash

System flash directory:
File  Length   Name/status
  3   5571584  c2600-i-mz.122-28.bin
  2   28282    sigdef-category.xml
  1   227537   sigdef-default.xml
[5827403 bytes used, 58188981 available, 64016384 total]
63488K bytes of processor board System flash (Read/Write)

Router#copy running-config tftp
Address or name of remote host []? 1.1.1.1
Destination filename [Router-confg]? R1.RAM

Writing running-config....!!
[OK - 840 bytes]

840 bytes copied in 3.066 secs (0 bytes/sec)
Router#copy startup-config tftp
Address or name of remote host []? 1.1.1.1
Destination filename [Router-confg]? R1.NVRAM

Writing startup-config...!!
[OK - 840 bytes]

840 bytes copied in 0.062 secs (13000 bytes/sec)

Router#show flash

System flash directory:
File  Length   Name/status
  3   5571584  c2600-i-mz.122-28.bin
  2   28282    sigdef-category.xml
  1   227537   sigdef-default.xml
[5827403 bytes used, 58188981 available, 64016384 total]
63488K bytes of processor board System flash (Read/Write)

c2600-i-mz.122-28.bin

Router#copy flas tftp
Source filename []? c2600-i-mz.122-28.bin
Address or name of remote host []? 1.1.1.1
Destination filename [c2600-i-mz.122-28.bin]? R1.FLASH

Writing c2600-i-mz.122-28.bin...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 5571584 bytes]

5571584 bytes copied in 3.394 secs (1641000 bytes/sec)

=> tftp에 백업하기 

백업한 내용 다시 불러오기 

Router#copy tftp flash
Address or name of remote host []? 1.1.1.1
Source filename []? R1.FLASH
Destination filename [R1.FLASH]? 

Accessing tftp://1.1.1.1/R1.FLASH...
Loading R1.FLASH from 1.1.1.1: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 5571584 bytes]

5571584 bytes copied in 3.322 secs (384291 bytes/sec)
Router#show flash

System flash directory:
File  Length   Name/status
  4   5571584  R1.FLASH
  3   5571584  c2600-i-mz.122-28.bin
  2   28282    sigdef-category.xml
  1   227537   sigdef-default.xml
[11398987 bytes used, 52617397 available, 64016384 total]
63488K bytes of processor board System flash (Read/Write)

<Delete>

Router#delete flash
Delete filename []?R1.FLASH
Delete flash:/R1.FLASH? [confirm]

728x90
반응형

'Network > Router&Swtich' 카테고리의 다른 글

[Router /Switch ] notion 정리 내용  (0) 2023.04.19
[Router&Switch] 라우터 패스워드 복구  (0) 2023.03.20

댓글