2011年11月29日 星期二

Cisco設備密碼遺失時的處理方式

1.  重新啟動設備
2.  在完成開機前接下「Ctrl+Break」或是「Ctrl+C
3.  查看在Rom Monotor Mode 下有什麼指令可以用。
rommon 1 > ?
boot                boot up an external process
confreg             configuration register utility
dir                 list files in file system
help                monitor builtin command help
reset               system reset
set                 display the monitor variables
tftpdnld            tftp image download
unset               unset a monitor variable
4.  2811機種上,可以使用confreg 指令來變更Configuration register
rommon 2 > confreg 2142
5.  重新啟動Router
rommon 3 > reset
6.  載入IOS完畢後就會進入Setup Mode,請輸入n,進行手動設定。 Continue with configuration dialog? [yes/no]: n
Press RETURN to get started!
Router>
7.  手動載入startup-config
Router#copy startup-config running-config
8.  找出舊密碼
Router#show running-config
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
line con 0
password cisco
login
line vty 0 4
password cisco
login
9.  更改Enable 密碼
Router(config)#enable password cisco
10.    還原Config-register設定
Router(config)#config-register 2102
11.    running-config寫回startup-config
Router#copy running-config startup-config
12.    重新啟動
Router-1#reload

Cisco當設備IOS損毀時的處理方式


當設備IOS損毀時的處理方式
當無法讀取在flash 中的檔案時,系統會在Rom Monotor Mode 下。
首先可以查看在Rom Monotor Mode 下有什麼指令可以用。
rommon 1 > boot                boot up an external process
confreg             configuration register utility
dir                 list files in file system
help                monitor builtin command help
reset               system reset
set                 display the monitor variables
tftpdnld            tftp image download
unset               unset a monitor variable
這裡會用到的指令為tftpdnld,但是在使用前必須先設定系統參數,
rommon 2 > DEFAULT_GATEWAY=192.168.1.254 rommon 3 > IP_ADDRESS=192.168.1.254 rommon 4 > IP_SUBNET_MASK=255.255.255.0 rommon 5 > TFTP_FILE=c1841-ipbase-mz.123-14.T7.bin rommon 6 > TFTP_SERVER=192.168.1.1
設定完全系統參數後再執行tftpdnld指令
rommon 7 > tftpdnld
          IP_ADDRESS: 192.168.1.254
      IP_SUBNET_MASK: 255.255.255.0
     DEFAULT_GATEWAY: 192.168.1.254
         TFTP_SERVER: 192.168.1.1
           TFTP_FILE: c1841-ipbase-mz.123-14.T7.bin
Invoke this command for disaster recovery only.
WARNING: all existing data in all partitions on flash will be lost!
Do you wish to continue? y/n:  [n]:  y

CISCO ASA 5505 回復出廠預設值

內容來自:http://noahchou.wordpress.com/ 

Enter enable mode:

enable
Enter terminal configuration  mode:
conf t
載入出廠預設值
config factory-default
重新啟動ASA 5505
reload save-config noconfirm
Cisco ASA 5505的預設 IP地址是192.168.1.1/24;使用 ASDM登入ASA 5505預設是不用用戶名及密碼。

Cisco ASA5500 防火牆基本設定

請參考
http://noahchou.wordpress.com/2011/07/07/cisco-asa5500-%E9%98%B2%E7%81%AB%E7%89%86%E8%A8%AD%E5%AE%9A/

2011年11月23日 星期三

Bytes Bit 換算

1byte = 8 bit

ADSL 所說的 512K , 1M ,2M 指的是bit

所以 要除以 8

256K 就是 最大 32K Byte 下載
512K bit = 64K Byte
1M bit = 128K byte
2M bit = 256K byte

但是因為線路的關係,傳輸率大概是80%,所以看到的數值大概是
512K bit = 50K Byte
1M bit = 100K byte
2M bit = 200K byte