【文章內(nèi)容簡介】
10 實(shí)驗(yàn)二 以太網(wǎng)基礎(chǔ) : 實(shí)驗(yàn)內(nèi)容與目標(biāo) 完成本實(shí)驗(yàn),應(yīng)該能夠達(dá)到以下目標(biāo)。 本實(shí)驗(yàn)按照實(shí)驗(yàn)圖 21 進(jìn)行組網(wǎng)。 P C AE 1 / 0 / 5S W A電 腦交 換 機(jī)實(shí) 驗(yàn) 2 1 以 太 網(wǎng) 基 礎(chǔ) 圖 實(shí)驗(yàn)內(nèi)容及步驟 配置以太網(wǎng)雙工與速率 步驟一: 建立物理連接并運(yùn)行超級終端 將 PC(或終端)的串口通過標(biāo)準(zhǔn) Console 電纜與交換機(jī)的 Console 口連接。電纜的 RJ45 頭一端連接交換機(jī)的 Console 口; 9 針 RS232 接口一端連接計(jì)算機(jī)的串行口 。 步驟二: 查看端口雙工與速率 按照組網(wǎng)圖,將 PCA與 SWA的端口 E1/0/5 相連,連接后,在 SWA上通過 display interface Ether 1/0/5查看接口顯示狀態(tài),根據(jù)該命令輸出請補(bǔ)充如下的空格: (我們在交換機(jī)是的借口是 e1/0/2) Ether1/0/2 current state: UP IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 3ce5a648d7f1 11 Description: Ether1/0/2 Interface Loopback is not set Media type is twisted pair, Port hardware type is 100_BASE_TX 100Mbpsspeed mode, fullduplex mode Link speed type is autonegotiation, link duplex type is autonegotiation 從如上顯示信息可以看到端口的狀態(tài)、物理 MAC 地址、連 接的線纜類型以及端口的雙工與速率。 步驟三:修改端口速率 在 SWA上將端口 E1/0/5 的速率修改為 100M,請?jiān)谌缦碌目崭裰刑顚懲暾呐渲妹睿? [SWAEther1/0/5]speed 100 修改完成后,再次通過命令 display interface Ether 1/0/5 查看端口 Ether1/0/5 的狀態(tài),根據(jù)該命令輸出請補(bǔ)充如下的空格: [SWAEther1/0/2]display interface Ether 1/0/2 Ether1/0/2 current state: UP IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 3ce5a648d7f1 Description: Ether1/0/2 Interface Loopback is not set Media type is twisted pair, Port hardware type is 100_BASE_TX 100Mbpsspeed mode, fullduplex mode Link speed type is force link, link duplex type is autonegotiation 從如上顯示信息可以看到,雖然端口的速率仍然是 100M,但是速率模式已經(jīng)是強(qiáng)制模式,而不是自協(xié)商模式,而此時(shí)雙工的工作模式依然是自協(xié)商。 步驟四: 修改端口雙工模式 在 SWA上將端口 E1/0/5 的的雙工模式配置為全雙工模式,請?jiān)谌缦碌目崭裰刑顚懲暾呐渲妹睿? [SWAEther1/0/5]duplex full 修改完成后,再次通過命令 display interface Ether 1/0/5 查看端口 Ether1/0/5 的狀態(tài),根據(jù)該命令輸出請補(bǔ)充如下的空格: [SWAEther1/0/2]display int e1/0/2 Ether1/0/2 current state: UP IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 3ce5a648d7f1 Description: Ether1/0/2 Interface Loopback is not set Media type is twisted pair, Port hardware type is 100_BASE_TX 100Mbpsspeed mode, fullduplex mode Link speed type is force link, link duplex type is force link 100Mbpsspeed mode, fullduplex mode Link speed type is force link, link duplex type is force link 從如上顯示信息可以看到,端口雖然依然是全雙工模式,但是其協(xié)商模式已經(jīng)是強(qiáng)制模式,而不是自協(xié)商模式。 步驟五: 同時(shí)修改端口的速率與雙工 在 SWA上將端口 Ether1/0/5 的速率修改為 10M,雙工模式修改為半雙工,請?jiān)谌缦碌目崭裰醒a(bǔ)充完整的配置命令: [SWAEther1/0/5]speed 10 [SWAEther1/0/5]duplex half 修改完成后,再次通過命令 display interface Ether 1/0/5 查看端口 Ether1/0/5 的狀 Ether1/0/2 current state: UP IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 3ce5a648d7f1 12 Description: Ether1/0/2 Interface Loopback is not set Media type is twisted pair, Port hardware type is 100_BASE_TX 100Mbpsspeed mode, fullduplex mode Link speed type is force link, link duplex type is force link 步驟六: 關(guān)閉端口 在 SWA上通過在 接口 視圖下執(zhí)行 shutdown 命令可以將端口 Ether1/0/5 關(guān)閉, 配置完成后, 再次通過命令 display interface Ether 1/0/5 查看端口 Ether1/0/5 的狀態(tài),根據(jù)該命令輸出請補(bǔ)充如下的空格: Ether1/0/10: link status is DOWN [SWAEther1/0/2]display int e1/0/2 Ether1/0/2 current state: Administratively DOWN IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 3ce5a648d7f1 Description: Ether1/0/2 Interface Loopback is not set Media type is twisted pair, Port hardware type is 100_BASE_TX 10Mbpsspeed mode, halfduplex mode Link speed type is force link, link duplex type is force link 可以看到端口被關(guān)閉,但是步驟五配置的雙工模式和速率模式?jīng)]有改變。該命令只是影響了端口的物理狀態(tài)。 可以通過在 接口 視圖下配置 undo shutdown 命令將端口 Ether1/0/5 開啟。 實(shí)驗(yàn)出現(xiàn)的錯(cuò)誤和解決方法: 將 ppp 上的 e1/0/5 當(dāng)成是本機(jī)的交換機(jī)接口,后來問老師,在老師的指導(dǎo)下,明白了,那個(gè)交換機(jī)的接口必須是自己電腦當(dāng)前的顯示 e1/0/2。還有修改端口速率和修改端口雙工模式時(shí)候要清楚的知道做的方法,最后關(guān)閉端口要 shutdown。 : 本實(shí)驗(yàn)做完后,能清楚的了解端 口的狀態(tài),物理 MAC 地址。連接線纜類型一集端口的雙工與速率。也掌握修改端口速率和修改端口雙工模式,還有懂事修改端口的速率和雙工。最后做完以后記得要改回原來的配置。 13 實(shí)驗(yàn)三 廣域網(wǎng)接口和線纜 實(shí)驗(yàn)內(nèi)容與目標(biāo) 完成本實(shí)驗(yàn),應(yīng)該能夠達(dá)到以下目標(biāo) 本實(shí)驗(yàn)按照實(shí)驗(yàn)圖 31 進(jìn)行組網(wǎng)。 S 1 / 0 S 1 / 0R T AR T B路 由 器路 由 器實(shí) 驗(yàn) 3 1 廣 域 網(wǎng) 借 口 和 線 纜 圖 : 實(shí)驗(yàn)任務(wù)一: 廣域網(wǎng)接口線纜 步驟一: 連接廣域網(wǎng)接口線纜 通過 電纜將路由器 RTA 和 RTB 廣域網(wǎng)接口 S1/0 實(shí)現(xiàn)互聯(lián),其中連接 RTA的 電纜外接網(wǎng)絡(luò)側(cè)為 34 孔插座,而連接 RTB 的 電纜外接網(wǎng)絡(luò)側(cè)為 34 針插頭(雖然通常只保留在用的針),由此可以得知路由器 RTB 的接口 S1/0 是 DTE 端,而路由器 RTA的接口 S1/0 是 DCE 端 步驟二: 查看廣域網(wǎng)接口信息 在 RTA上通過 display interface Serial 1/0 命令查看接口 Serial 1/0 的信息,根據(jù)其輸出信息可以看到: [RTA]display interface serial 5/0 Serial5/0 current state: UP Line protocol current state: UP Description: Serial5/0 Interface The Maximum Transmit Unit is 1500, Hold timer is 10(sec) Inter protocol processing : disabled 14 Link layer protocol is PPP LCP opened Output queue : (Urgent queuing : Size/Length/Discards) 0/100/0 Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0 Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0 Physical layer is synchronous, Baudrate is 64000 bps Interface is DCE, Cable type is V35, Clock mode is DCECLK1 在 RTB 上通過 display interface Serial 1/0 命令查看接口 Serial 1/0 的信息,根據(jù)其輸出信息可以看到: 實(shí)驗(yàn) 5 [RTB]display interface serial 5/0 Serial5/0 current state: UP Line protocol current state: UP Description: Serial5/0 Interface The Maximum Transmit Unit is 1500, Hold timer is 10(sec) Inter protocol processing : disabled Link layer protocol is PPP LCP opened Output queue : (Urgent queuing : Size/Length/Discards) 0/100/0 Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0 Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0 Physical layer is synchronous, Baudrate is 64000 bps Interface is DTE, Cable type is V35, Clock mode is DCECLK1 由以上信息可以看到, RTA和 RTB 的廣域網(wǎng) 電纜接口工作在 同步 模式下,目前的傳輸速率是 64000 bps 或者 64K bps 步驟三: 配置廣域網(wǎng)接口參數(shù) 配置將 RTB 的接口 S1/0 的傳輸速率修改為 2Mbps,請?jiān)谌缦碌目崭裰醒a(bǔ)充完整的配置命令: [RTBSerial1/0]baudrate 2048000 在 RTB上執(zhí)行該命令后,有信息提示: Serial1/0: Baudrate can only be set on the DCE,意思即為只能在DCE 側(cè)修改接口的波特率即傳輸速率 然后配置將 RTA的接口 S1/0 的傳輸速率修改為 2Mbps,請?jiān)谌缦碌目崭裰醒a(bǔ)充完整的配置命令: [RTASerial1/0]baudrate 204800