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 rl 配置使用者名為rl
router(config)# #banner welcome# 配置開機話語
router# show controllers serial0 檢視序列槽0的實體層資訊(主要是檢視DTE/DCE)
router# show ip interface 檢視端口的IP配置資訊
router# show hosts 檢視主機表
end or ctrl+z 從各種配置模式退到特權模式
rl(config)# no ip domain-lookup 關閉動态域名解析
rl(config)# ip domain-lookup 打開動态域名解析
rl(config)# ip name-server 202.106.0.20 打開動态域名解析之後便可以指定DNS服務
rl(config)# interface serial 0 進入serial 0的接口配置模式
rl(config-if)# no shutdown 路由器出廠預設所有端口關閉,使用此指令使它們打開
rl(config-if)# encapsulation ppp 封裝ppp
rl(config-if)# clockrate 64000 如果是DCE使需要設定時鐘速率,如果是DTE使不必設定
rl(config-if)# bandwidth 64 設定端口帶寬為64K
rl(config-if)# ctrl+c 或者ctrl+z 快捷鍵退出到特權模式
rl# show interface serial 0 檢視s0資訊,如果看到serial和line protocol都顯示up,說明鍊路兩端都設定成功
注意:如果出現serial down, line down 可能對方的端口沒有打no shutdown或者電纜沒有插好;如果出現serial up, line down 可能是DCE端沒有設定clock rate, 也可能是封裝格式不對
rl# show cdp neighbors 檢視CDP鄰居資訊
rl# show cdp entry *
rl(config-if)# ip add 10.0.0.1 255.0.0.0 進入相應的接口,配置相應的IP位址
rl# ping 10.0.0.2 使用ping指令檢視鄰居的連通性
rl# show ip route 檢視路由表,可以看到以C打頭的路由資訊,這是直連的路由資訊; 可以看到R開頭的路由資訊,是從rip學來的路由資訊;可看到以I開頭的路由資訊取代了以R開頭的路由資訊,這是因為igrp 的管理距離是100,小于rip的120
rl(config-if)# router rip 啟動RIP路由協定
rl(config-router)# network 10.0.0.0 釋出網段(注意network後面是接的網絡号而不是IP位址)
rl# show ip protocol 檢視配置的路由協定
rl(config)# router igrp 300 一定要注意在IGRP後面加自治系統号,考試的時候題目 會告訴你AS NUMBER,照敲就是
rl(config-router)# network 10.0.0.0 宣告10.0.0.0 網段的路由
rl(config)# line vty0 4 進入虛拟線程配置模式,在此模式可對telnet功能進行配置
rl(config-line)# login
rl(config-line)# password cisco 配置telnet密碼,預設的網絡裝置telnet的功能是關閉的,配了密碼之後會自動打開
rl(config)# enable password cisco 配置進入enable模式的密碼, 區分大小寫
rl(config)# enable secret ciscocisco 配置進入enable模式的密碼,是加密的密碼,show run是看不見的
rl(config)# line console 0
rl(config-line)# login
rl(config-line)# password cisco 配置進入使用者模式的密碼
rl(config-line)# logging synchronous 輸入同步
rl(config-line)# exec-timeout 0 0 禁止因為一段時間沒有輸入而跳出
rl# copy running-config startup-config 儲存配置,考試的時候注意題目的要求,如果題目裡要求你儲存配置就一定不能少了這一項