2019/07/19

Pemu에서 PIX flashfs error 문제 해결방법

Dynamips에서 PIX를 실습해 보려고 하면 꼭 예상치 못한 문제가 발생하곤 합니다.
국내외 사이트를 다 뒤져도 해결방법은 나오질 않고,
관련 서적에서는 언급하지도 않아서, 하나하나 실험해 보고 결과가 나와서 공개합니다.

해결방법
① PIX 시뮬에서는 절대로 WR MEM 하지 말것!
② format flash: 명령 + activation-key  명령을 매번 입력해서 사용.
③ Pemu에서 생성한 폴더를 몽땅 지우고 처음부터 다시 시도.

Write memory 명령을 하면, 플래시 메모리 자체를 읽어오지도, 기록하지도 못하는 문제가 발생합니다.
이 때문에 Activation-key 입력 후에도 다시 초기화 되어버리곤 합니다.
당연히 ASDM도 안되겠지요. 이 때는 ①번 방법이 적당합니다.

그리고 간혹 Activation은 되어 있으나, mode multiple 과 같이 방화벽의 모드를
바꾸어야 할 경우에 플래시쪽 에러가 나는 경우가 있습니다.
이때에는 ②번 방법을 사용하는 경우가 적당합니다.

무슨 방법을 해도 잘 안되는 경우에는 ③번 말고는 답이 없습니다.
그리고 pix803.bin이 최신 버전 중에서는 잘 되는 편이니 그것을 사용하시기 바랍니다.

그럼. Config 저장은 어떻게 하냐구요? 어차피  PIX 시뮬에는 그런거 안해도 자동으로 저장되므로
Reload, Reboot 후에도 설정이 유지됩니다.

버전에 상관없이 똑같이 적용되는 사항입니다.

아래는 참고로 플래시 에러가 난 상황에서의 화면입니다.
키 값은 임의로 되어 있으니, 값에 신경쓰지 마세요.
---------------------------------------------------------------

pixfirewall# sh ver

Cisco PIX Security Appliance Software Version 8.0(3)

Compiled on Tue 06-Nov-07 19:50 by builders
System image file is "Unknown, monitor mode tftp booted image"
Config file at boot was "startup-config"

pixfirewall up 43 secs

Hardware:   PIX-525, 128 MB RAM, CPU Pentium II 1 MHz
Flash E28F128J3 @ 0xfff00000, 16MB
BIOS Flash AM29F400B @ 0xfffd8000, 32KB

 0: Ext: Ethernet0           : address is 0000.ab8b.8800, irq 9
 1: Ext: Ethernet1           : address is 0000.ab8b.8801, irq 11
 2: Ext: Ethernet2           : address is 0000.ab8b.8802, irq 11
 3: Ext: Ethernet3           : address is 0000.abcd.ef03, irq 11
 4: Ext: Ethernet4           : address is 0000.abcd.ef04, irq 11
The Running Activation Key is not valid, using default settings:

Licensed features for this platform:
Maximum Physical Interfaces  : 6
Maximum VLANs                : 25
Inside Hosts                 : Unlimited
Failover                     : Disabled
VPN-DES                      : Disabled
VPN-3DES-AES                 : Disabled
Cut-through Proxy            : Enabled
Guards                       : Enabled
URL Filtering                : Enabled
Security Contexts            : 0
GTP/GPRS                     : Disabled
VPN Peers                    : Unlimited

This platform has a Restricted (R) license.

Serial Number: 123456789
Running Activation Key: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
Configuration has not been modified since last system restart.




pixfirewall# activation-key 0x1234abcd 0x1234abcd 0x1234abcd 0x1234abcd
The following features available in flash activation key are NOT
available in new activation key:
Failover is different.
   flash activation key: Restricted(R)
   new activation key: Unrestricted(UR)
Proceed with update flash activation key? [confirm]
Failed to update the flash activation key
ERROR: Failed to update flash activation key



pixfirewall# wr
Building configuration...
Cryptochecksum: ffedfa02 af7d5eb6 99aeb01f 227c1551

%Error opening flash:/.private/startup-config (Invalid argument)
Error executing command
[FAILED]


pixfirewall# wr
Building configuration...
Cryptochecksum: b987e571 eaaf2fbf cd352185 e4397976

flashfs[7]: writing to flash handle 0x1da6410, device 0, offset 0xfc0000, length 0x208: Operation Failed
flashfs[7]: sector ptr: {0x7c, 0x25}
flashfs[7]: filesystem marked down.  Use "fsck" to recover.
%Error opening flash:/.private/startup-config (I/O error)
Error executing command
[FAILED]



출처: https://murzim.tistory.com/entry/Pemu에서-PIX-flashfs-error-문제-해결방법?category=690684 [Connect everything]

No comments:

Post a Comment