路由器實驗:
router>enable 從用戶模式進入特權模式
router#disable or exit 從特權模式退出到用戶模式
router#show sessions 查看本機上的TELNET會話
router#disconnect 關閉所有的TELNET會話
router#show users查看本機上的用戶
router#erase startup-config刪除NVRAM中的配置
router#reload 重啟路由器
router#config terminal從用戶模式進入特權模式
router(config)#hostname r1 配置用戶名為r1
router(config)banner welcome#配置開機話語
router#show controllers serial0 查看串口0的物理層信息,主要是查看DTE/DCE
router#show ip interface查看端口的IP配置信息
router#show hosts查看主機表
end or ctrl+z 從各種配置模式退出到特權模式
r1(config)#no ip domain-lookup
r1(config)#ip domain-lookup
r1(config)#ip name-server 202.106.0.20打開動態域名解析之后指定DNS服務
r1(config)#interface serial 0 進入serial 0 的接口配置模式
r1(config)# no shutdown路由器出廠默認所有端口關閉,使用此命令打開
r1(config-if)#encapsulation ppp 封裝PPP
r1(config-if)#clockrate 64000如果是DCE使需要設置時鍾速率,如果是DTE不必設置
r1(config-if)#bandwidth 64 設置端口帶寬為64K
r1(config-if)#ctrl+c 或者ctrl+z快捷鍵退出特權模式
r1#show interface serial 0 查看s0信息,如果考到serial和line protocol 都顯示up,說明鏈路兩端設置成功
r1#show cdp neighbors查看CDP鄰居信息
r1(config-if)#ip add 10.0.0.1 255.0.0.0 進入相應的接口,配置相應的IP地址
r1#ping 10.0.0.2 使用ping命令查看鄰居的連通性
r1#show ip route查看路由表
r1(config-if)#route rip啟動RIP路由協議
r1(config-router)#network 10.0.0.0發布網段。
r1#show ip protocol查看配置的路由協議
r1(config)#router igrp 300 要注意在IGRP后面加自治系統號
r1(config)#line vty0 4 進入虛擬線程配置模式,在這個模式里可對telnet功能進行配置
r1(config-line)#password cisco 配置telnet密碼,默認的網絡設備telnet的功能是關閉的,配置密碼后自動打開
r1(config)#enable password cisco 配置進入enable模式的密碼,區分大小寫
r1(config)#enable serect ciscocisco配置進入enable模式的密碼,加密,show run 看不見
r1(config)#line console 0
r1(config-line)#login
r1(config-line)#password cisco配置進入用戶模式的密碼
r1(config-line)#logging sysnchronous輸入同步
r1(config-line)#exec-timeout 0 0 禁止因為一段時間沒有輸入而跳出
r1#copy running-config startup-config 保存配置