【正文】
配置串口 進(jìn)入全局配置模式 Router(config)interface serial 0 Router(configif) Routerconfigure term Router(config) 指定某個(gè)端口 配置串口 進(jìn)入全局配置模式 Router(configif)clock rate 64000 Router(configif) Router(config)interface serial 0 Router(configif) Routerconfigure term Router(config) Router(configif)bandwidth 64 Router(configif)exit Router(config)exit Router 指定某個(gè)端口 設(shè)置時(shí)鐘頻率 (只在 DCE端 ) 調(diào)協(xié)波特率 (建議 ) Routershow interface serial 0 Serial0 is up, line protocol is up Hardware is HD64570 Inter address is MTU 1500 bytes, BW 64 Kbit, DLY 20230 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input 00:00:09, output 00:00:04, output hang never Last clearing of show interface counters never Input queue: 0/75/0 (size/max/drops)。 Total output drops: 0 Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec (output omitted) 確認(rèn)參數(shù)修改情況 以太網(wǎng)的 mediatype 命令 Router(config)interface ether 2 Router(configif)mediatype 10baset 為以太網(wǎng)端口選擇適當(dāng)?shù)慕橘|(zhì)類型 開啟或關(guān)閉端口 Routerconfigure term Router(config)interface serial 0 Router(configif)no shutdown %LINK3UPDOWN: Interface Seria0, changed state to up %LINEPROTO5UPDOWN: Line Protocol on Interface Serial0, changed state to up 開啟已經(jīng)關(guān)閉的端口 Routerconfigure term Router(config)interface serial 0 Router(configif)shutdown %LINK5CHANGED: Interface Serial0, changed state to administratively down %LINEPROTO5UPDOWN: Line protocol on Interface Serial0, changed state to down 人工關(guān)閉端口 路由器的 show interfaces 命令 Routershow interfaces Ether0 is up, line protocol is up Hardware is Lance, address is (bia ) Inter address is MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255 Encapsulation ARPA, loopback not set, keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:07, output 00:00:08, output hang never Last clearing of show interface counters never Queueing strategy: fifo Output queue 0/40, 0 drops。 input queue 0/75, 0 drops 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 81833 packets input, 27556491 bytes, 0 no buffer Received 42308 broadcasts, 0 runts, 0 giants, 0 throttles 1 input errors, 0 CRC, 0 frame, 0 overrun, 1 ignored, 0 abort 0 input packets with dribble condition detected 55794 packets output, 3929696 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 4 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out Routershow interfaces serial 1 Serial1 is up, line protocol is up Hardware is HD64570 Description: 64Kb Line to San Jose :: :: :: :: :: :: :: :: :: Operational.................. Connection problem... Interface problem........ Disabled ...................... Serial1 is up, line protocol is up Serial1 is up, line protocol is down Serial1 is down, line protocol is down Serial1 is administratively down, line protocol is down 存活信息 載波監(jiān)測 解讀端口狀態(tài) 串口上用 show controller 命令 Routershow controller serial 0 HD unit 0, idb = 0x121C04, driver structure at 0x127078 buffer size 1524 HD unit 0, DTE cable . . . 顯示串口線的線纜類型 core_ server wg_sw_a wg_sw_l wg_pc_a wg_pc_l ... console e0/2 fa0/26 (port A) e0/2 e0 e0 fa0/26 (port A) fa0/1 fa0/12 fa0/24 core_sw_a wg_ro_l A/B A/B wg_ro_a console console console pod sw ro’s e0 A B C D E F G H I J K L 可視化目標(biāo) 通過本章的學(xué)習(xí),您應(yīng)該掌握以下內(nèi)容 : ? 開啟交換機(jī)和路由器并觀察其啟動(dòng)過程 ? 注意交換機(jī)的出廠初始配置情況,完成路由器的初始參數(shù)配置 ? 在網(wǎng)絡(luò)設(shè)備上進(jìn)入并辨識不同的命令模式 ? 在不同的用戶界面下應(yīng)用各種幫助和命令行編輯功能 ? 查看并確認(rèn)并于各網(wǎng)絡(luò)設(shè)備的基本信息 本章總結(jié) 問題回顧 1. 交換機(jī)開機(jī)自檢時(shí)出現(xiàn)什么現(xiàn)象 ? 通過什么辦法來確定出現(xiàn)了什么問題 ? 2. 路由器在什么情況下和怎樣用到 Setup配置模式 ? 3. 運(yùn)行 Cisco IOS軟件的設(shè)備在特權(quán)模式下提示符是怎樣的 ? 4. 列出在交換機(jī)和路由器上的 Cisco IOS軟件的所能提供的幫助機(jī)制內(nèi)容 .