IOS 連線模式>
Console Port:
Rollover線
RS232(DB9接頭)→RJ45
在PC中使用PuTTY軟體連線:
1.選擇Serial 2.選擇COM Port
<IOS Modes>
User EXEC Mode:使用者模式
>
enable↓
Privileged EXEC Mode:管理者模式
#
config terminal↓
Global Configuration Mode:組態模式
(config)#
interface XXX,line XXX,routers XXX↓
Other Configuration Mode:介面模式
(config-if)#
(config-line)#
(config-router)#
<IOS錯誤訊息>
使用者模式/管理者模式輸入錯誤:
會把錯誤指令當作主機名稱去搜尋DNS
使用"ctrl+shift+6"中斷搜尋
關閉搜尋伺服器,組態模式輸入:
no ip domain-lookup
<IOS 常用指令>
查詢軟硬體資訊:
#show version
組態暫存器(Configuration register):
0x2102正常啟動/0x2142忽略組入組態檔
修改主機名稱:
#hostname XXX
登入通知訊息(banner):
(config)#banner motd #test for motd#登入就顯示
(config)#banner login#test for login#有密碼登入就會顯示
(config)#banner exec#test for exec#登入使用者模式會顯示(PT目前不支援)
顯示從登入到現在曾執行過的指令:
#show history
IOS重開機:
#reload
密碼與加密:
console密碼:
(config)#line console 0
(config-line)#password ccna
(config-line)#login啟動密碼
修改console閒置時間:
預設10分鐘,若閒置超過時間則強制斷線
(config-line)#exec-timeout 0 5閒置時間5秒
exec-timeout 0 0沒時間上限
exec-timeout 0 1閒置時間1秒
管理者模式密碼:
(config)#enable password ccna12
查看組態檔:
#show running-config
加密管理者密碼:
show run無法看到
secret 5表示使用md5加密
(config)#enable secret ccna34
若兩種密碼同時設定,擇優先使用加密過的
其他加密:
所有存在組態檔中的密碼全部加密
之後設定的密碼也是
(config)#service password-encryption
password 7表示使用cisco type 7加密,已有人破解
google:cisco type 7 decrypt
留言列表