CPU、RAM、ROM、Flash、NVRAM、系統匯流排、介面控制器——與 PC 架構同源,差異在於專用軟體(IOS)與網路介面優化。
15.7(3)M4 → 主版本.次版本(維護版本)修訂版本。| 模式 | 提示符 | 進入指令 | 退出指令 | 權限範圍 |
|---|---|---|---|---|
| 用戶 EXEC | Router> | 登入預設 | exit/logout | 唯讀監控、基礎測試 |
| 特權 EXEC | Router# | enable | disable/exit | 完整監控、檔案操作、除錯、進入配置 |
| 全域配置 | Router(config)# | configure terminal | end/Ctrl+Z | 全域參數、功能啟用、進入子模式 |
| 介面配置 | Router(config-if)# | interface type num | exit | 單一介面屬性 |
| 子介面配置 | Router(config-subif)# | interface type num.sub | exit | VLAN/Frame Relay/Dialer 子介面 |
| 路由協議配置 | Router(config-router)# | router protocol [as] | exit | 動態路由參數 |
| 線路配置 | Router(config-line)# | line con/vty/aux num | exit | 管理存取控制 |
| VLAN 資料庫 | Router(vlan)# | vlan database (舊) / vlan config (新) | exit | VLAN 建立/刪除(舊式) |
導航鍵:Ctrl+Z/end 直達特權;exit 逐層返回;do show ... 在配置模式執行 EXEC 指令。
9600 bps, 8 data bits, 1 stop bit, no parity, no flow control, VT100 emulation
screen /dev/ttyUSB0 9600、minicom、picocom。Router> enable
Router# configure terminal
Router(config)# hostname R1-TPE
R1-TPE(config)# enable secret C1$coEn@ble!
R1-TPE(config)# service password-encryption
R1-TPE(config)# no ip domain-lookup
R1-TPE(config)# ip domain-name corp.local
R1-TPE(config)# ip name-server 192.168.1.10 8.8.8.8
R1-TPE(config)# line console 0
R1-TPE(config-line)# password Con$olePwd!
R1-TPE(config-line)# login
R1-TPE(config-line)# logging synchronous
R1-TPE(config-line)# exec-timeout 10 0
R1-TPE(config-line)# exit
R1-TPE(config)# line vty 0 4
R1-TPE(config-line)# password VtyP@ss!
R1-TPE(config-line)# login local
R1-TPE(config-line)# transport input ssh
R1-TPE(config-line)# exec-timeout 15 0
R1-TPE(config-line)# exit
R1-TPE(config)# username admin privilege 15 secret Adm1n$tr0ng!
R1-TPE(config)# aaa new-model
R1-TPE(config)# aaa authentication login default local
R1-TPE(config)# banner motd # Unauthorized Access Prohibited! #
R1-TPE(config)# end
R1-TPE# write memory
| 密碼類型 | 指令 | 加密演算法 | 安全性 | 用途 |
|---|---|---|---|---|
| Enable Password | enable password | Type 7 (可逆弱加密) | 低 | 舊版相容,不建議使用 |
| Enable Secret | enable secret | MD5 (Type 5) / SHA-256 (Type 8) / PBKDF2 (Type 9) | 高 | 特權模式主要密碼,必設 |
| Line Password | line ... password | Type 7 / Type 8/9 (IOS 15.3+) | 中 | Console/AUX/VTY 登入密碼 |
| Username Secret | username ... secret | Type 5/8/9 | 高 | AAA 本地認證、SSH 公開金鑰 |
最佳實務:全面使用secret(Type 8/9),啟用service password-encryption,停用enable password,部署 AAA+TACACS+/RADIUS 集中認證。
show running-config:當前運行配置(RAM)。show startup-config:NVRAM 啟動配置。copy running-config startup-config / write memory:存檔。copy running-config tftp://server/file:遠端備份。erase startup-config + reload:恢復出廠預設(慎用)。掌握 IOS 架構、CLI 模式導航、Console 連線、基礎安全配置(主機名、密碼分級、SSH、AAA、Banner、時間、日誌)、配置備份,是思科網管的入門必修課。建議在模擬器(Packet Tracer、GNS3、EVE-NG、CML)建立個人實驗拓撲,反覆練習至指令行雲流水,再進入生產環境操作。