Cisco ios命令

出自 qingwei personal wiki
於 2017年12月6日 (三) 02:45 由 Qingwei (對話 | 貢獻) 所做的修訂 (copy image)
前往: 導覽搜尋

一些命令

copy image

  • 從NG03上copy EO9 harddisk上的image
NG03#copy scp: harddisk:                               
Address or name of remote host [20.6.6.2]? 
Source username [admin]? 
Source filename [cbrsup-universalk9.2017-11-21_05.39_peili2.SSA.bin]? harddisk:cbrsup-universalk9.2017-11-21_05.39_peili2.SSA.bin  
Destination filename [harddisk:cbrsup-universalk9.2017-11-21_05.39_peili2.SSA.bin]? cbrsup-universalk9.2017-11-21_05.39_peili2.SSA.bin
Password: 

監控CPU

show processes cpu monitor

登入

telnet 不使用用戶名/密碼

aaa new-model
aaa authentication login default none
aaa authentication enable default none

SSH 用戶名/密碼

username lab priv 15 pass 0 lab
ip domain name cisco.com
crypto key generate rsa general-keys label ssh_key modulus 2048
ip ssh rsa keypair-name ssh_key
ip ssh version 2

line vty  0 20
 transport input telnet 
line vty  21 99
 transport input ssh 
  • C02不起作用
crypto key generate rsa usage-keys label jifu-ssh-key modulus 768
ip ssh rsa keypair-name jifu-ssh-key 

雜七雜八

替換running config

C02#copy harddisk:qingwyan_20171204.cfg startup-config
Destination filename [startup-config]?
14198 bytes copied in 0.777 secs (18273 bytes/sec)
Router#reload
Proceed with reload? [confirm]

C02 換image

0x2的方式

telnet 80.3.1.12
C02(config)#no boot system
C02(config)#boot system harddisk:cbrsup-universalk9.BLD_POLARIS_DEV_LATEST_20171123_002433.SSA.bin
C02(config)#config-register 0x2
C02(config)#end
C02#wr