實驗三、路由器的基本配置-_第1頁
實驗三、路由器的基本配置-_第2頁
實驗三、路由器的基本配置-_第3頁
實驗三、路由器的基本配置-_第4頁
實驗三、路由器的基本配置-_第5頁
已閱讀5頁,還剩14頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、實驗三、路由器的基本配置一、實驗?zāi)康?.掌握路由器配置前的準備2.掌握路由器的機器名的配置3.接口IP地址、基本封裝類型二、應(yīng)用環(huán)境1.在執(zhí)行配置之前,本節(jié)學(xué)習(xí)的基本配置,是其他任務(wù)的基礎(chǔ)。2.主要學(xué)習(xí)機器名、接口地址、特權(quán)模式密碼等方法三、實驗設(shè)備1.DCR-1751 兩臺2.CR-V35MT 一條3.CR-V35FC 一條4.網(wǎng)線兩條四、實驗拓撲 五、實驗要求配置表Router-A Router-B 接口類型 IP地址接口類型 IP地址S1/1 DCE 192.168.1.1 S0/0 DTE 192.168.1.2F0/0 192.168.2.1六、實驗步驟路由器A的基本配置:第一步:恢

2、復(fù)出廠設(shè)置Routerenable !進入特權(quán)模式Router#2004-1-1 00:32:10 User DEFAULT enter privilege mode from console 0, level = 15 running-config !查看當前配置Router#showBuilding configuration.Current configuration:!version 1.3.2ERouter#delete !刪除配置文件this file will be erased,are you sure?(y/nyRouter#reboot !重新啟動Do you want t

3、o reboot the router(y/n?yPlease wait.第二步:設(shè)置接口IP地址、DCE的時鐘頻率以及驗證Routerenable !進入特權(quán)模式Router #config !進入全局配置模式Router-A !修改機器名Router _config#hostnameRouter-A_config#interface s1/1 !進入接口模式Router-A_config_s1/0#ip address 192.168.1.1 255.255.255.0 !配置IP地址Router-A_config_s1/0#physical-layer speed 64000 !配置DC

4、E時鐘頻率shutdownRouter-A_config_s1/0#noRouter-A_config_s1/0#Z !按ctrl + z進入特權(quán)模式s1/1 !查看接口狀態(tài)Router-A#showinterfaceSerial1/0 is up, line protocol is down!對端沒有配置,所以協(xié)議是DOWN Mode=Sync DCE Speed=64000 !查看DCEDTR=UP,DSR=UP,RTS=UP,CTS=DOWN,DCD=UPInterface address is 192.168.1.1/24!查看IP地址MTU 1500 bytes, BW 64 kbi

5、t, DLY 2000 usecEncapsulation prototol HDLC, link check interval is 10 sec !查看封裝協(xié)議Octets Received0, Octets Sent 0Frames Received 0, Frames Sent 0, Link-check Frames Received0Link-check Frames Sent 89, LoopBack times 0Frames Discarded 0, Unknown Protocols Frames Received 0, Sent failuile 0Link-check

6、Timeout 0, Queue Error 0, Link Error 0,60 second input rate 0 bits/sec, 0 packets/sec!60 second output rate 0 bits/sec, 0 packets/sec!0 packets input, 0 bytes, 8 unused_rx, 0 no buffer0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort8 packets output, 192 bytes, 0 unused_tx, 0 underrunser

7、ror:0 clock, 0 gracePowerQUICC SCC specific errors:0 recv allocb mblk fail 0 recv no buffer0 transmitter queue full 0 transmitter hwqueue_fullRouter-A#configRouter-A_config#interface f0/0Router-A_config_f0/0#ip address 192.168.2.1 255.255.255.0Router-A_config_f0/0#no shutdownRouter-A_config_f0/0#ZRo

8、uter-A#show interface f0/0FastEthernet0/0 is up, line protocol is upaddress is 00e0.0f18.1a70Interface address is 192.168.2.1/24MTU 1500 bytes, BW 100000 kbit, DLY 10 usecEncapsulation ARPA, loopback not setKeepalive not setARP type: ARPA, ARP timeout 04:00:0060 second input rate 0 bits/sec, 0 packe

9、ts/sec!60 second output rate 6 bits/sec, 0 packets/sec!Full-duplex, 100Mb/s, 100BaseTX, 1 Interrupt0 packets input, 0 bytes, 200 rx_freebufReceived 0 unicasts, 0 lowmark, 0 ri, 0 throttles0 input errors, 0 CRC, 0 framing, 0 overrun, 0 long1 packets output, 46 bytes, 50 tx_freebd, 0 underruns0 output

10、 errors, 0 collisions, 0 interface resets0 babbles, 0 late collisions, 0 deferred, 0 err6000 lost carrier, 0 no carrier 0 grace stop 0 bus error0 output buffer failures, 0 output buffers swapped out第三步:設(shè)置特權(quán)模式密碼Router-A_config#enable password 0 digitalchina !0表示明文Router-A_config#ZRouter-A#2004-1-1 16

11、:38:49 Configured from console 0 by DEFAULTRouter-A#exitRouter-Aenable !再次進入特權(quán)模式Password: !需要輸入密碼Access deny !Router-AenablePassword: !注意輸入時不顯示Router-A#2004-1-1 16:39:14 User DEFAULT enter privilege mode from console 0, level = 15Router-A#第四步:保存Router-A#write !保存配置Saving current configuration.OK!第五步

12、:查看配置序列Router-A#show running-configBuilding configuration.Current configuration:!version 1.3.2Eservice timestamps log dateservice timestamps debug dateno service password-encryption!hostname Router-A !查看機器名!enable password 0 digitalchina level 15 !注意到密碼可以顯示!interface FastEthernet0/0255.255.255.0 !查看

13、IP地址ip address 192.168.2.1no ip directed-broadcast!interface Serial1/1255.255.255.0 !查看IP地址ip address 192.168.1.1no ip directed-broadcastphysical-layer speed 64000!interface Async0/0no ip addressno ip directed-broadcast!路由器B的配置(命令解釋參照路由器A的配置第一步:恢復(fù)出廠設(shè)置Routerenable !進入特權(quán)模式Router#2004-1-1 00:32:10 User

14、 DEFAULT enter privilege mode from console 0, level = 15running-config !查看當前配置Router#showBuilding configuration.Current configuration:!version 1.3.2ERouter#delete !刪除配置文件this file will be erased,are you sure?(y/nyRouter#reboot !重新啟動Do you want to reboot the router(y/n?yPlease wait.第二步:設(shè)置IP地址及驗證Route

15、renableRouter#2004-1-1 01:04:14 User DEFAULT enter privilege mode from console 0, level = 15Router#configRouter_config#hostname Router-BRouter-B_config#interface s1/0Router-B_config_s1/0#ip address 192.168.1.2 255.255.255.0Router-B_config_s1/0#no shutdownRouter-B_config_s1/0#ZRouter-B#show interface

16、 s1/0Serial1/0 is up, line protocol is up !此時接口和協(xié)議都是up狀態(tài) Mode=Sync DTEDTR=UP,DSR=UP,RTS=DOWN,CTS=UP,DCD=UPInterface address is 192.168.1.2/24MTU 1500 bytes, BW 64 kbit, DLY 2000 usecEncapsulation prototol HDLC, link check interval is 10 secOctets Received0, Octets Sent 0Frames Received 0, Frames Sen

17、t 0, Link-check Frames Received0Link-check Frames Sent 391, LoopBack times 0Frames Discarded 0, Unknown Protocols Frames Received 0, Sent failuile 0Link-check Timeout 0, Queue Error 0, Link Error 0,60 second input rate 0 bits/sec, 0 packets/sec!60 second output rate 0 bits/sec, 0 packets/sec!0 packe

18、ts input, 0 bytes, 8 unused_rx, 0 no buffer0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort8 packets output, 192 bytes, 0 unused_tx, 0 underrunserror:0 clock, 0 gracePowerQUICC SCC specific errors:0 recv allocb mblk fail 0 recv no buffer0 transmitter queue full 0 transmitter hwqueue_ful

19、l 第三步:保存Router-B#writeSaving current configuration.OK!第四步:查看配置序列Router-B#show running-configBuilding configuration.Current configuration:!version 1.3.2Eservice timestamps log dateservice timestamps debug dateno service password-encryption!hostname Router-B!interface FastEthernet0/0ip address 192.168

20、.3.1 255.255.255.0no ip directed-broadcast!interface Ethernet1/1no ip addressno ip directed-broadcastduplex half!interface Serial1/0ip address 192.168.1.2 255.255.255.0no ip directed-broadcast!interface Async0/0no ip addressno ip directed-broadcast!第五步:測試連通性192.168.1.1 !PING Router-A的地址Router-B#ping

21、PING 192.168.1.1 (192.168.1.1: 56 data bytes!- 192.168.1.1 ping statistics -5 packets transmitted, 5 packets received, 0% packet lossround-trip min/avg/max = 20/22/30 ms七、注意事項和排錯1.CR-V35FC所連的接口為DCE,需要配置時鐘頻率,CR-V35MT所連的接口為DTE。2.查看接口狀態(tài),如果接口是DOWN,通常是線纜故障;如果協(xié)議是DOWN,通常是時鐘頻率沒有配,或者是兩端封裝協(xié)議不一致(封裝的實驗參看實驗四八、配置

22、序列在步驟中已經(jīng)列出九、共同思考1.如果要將特權(quán)模式密碼用密文顯示,用什么參數(shù)?(請用?查看2.如果在插槽2上的第2個快速以太網(wǎng)接口怎么表示?(f1/1十、課后練習(xí)請將所有地址改為10.0.0.0/24這個網(wǎng)段,重復(fù)以上配置。十一、相關(guān)命令詳解。show interface使用show interface全局配置命令配置接口狀態(tài)。show interfaceshow interface type interface-numbershow interface type slot/port(用于帶有非信道化E1的物理接口的路由器show interface serial slot/port:cha

23、nnel-group(用于顯示非信道化E1的物理接口show interface serial slot/port.subinterface-number(用于顯示子接口參數(shù)參數(shù)參數(shù)說明type指定要配置的接口類型。interface-number邏輯接口序號。slot插槽或插卡編號。port 插槽或插卡端口編號。channel-group范圍為0-30的E1信道組號,使用channel-group配置命令定義。subinterface-number 范圍為1-32767的子接口號。缺省無命令模式管理態(tài)使用說明若show interface命令后面不帶任何參數(shù),則顯示所有接口的信息 路由器C的

24、基本配置(命令解釋參照路由器A的配置第一步:恢復(fù)出廠設(shè)置Routerenable !進入特權(quán)模式Router#2004-1-1 00:32:10 User DEFAULT enter privilege mode from console 0, level = 15 running-config !查看當前配置Router#showBuilding configuration.Current configuration:!version 1.3.2ERouter#delete !刪除配置文件this file will be erased,are you sure?(y/nyRouter#re

25、boot !重新啟動Do you want to reboot the router(y/n?yPlease wait.第二步:設(shè)置IP地址及驗證Router#configRouter_config#hostname Router-CRouter-C_config#interface f0/0Router-C_config_f0/0#ip address 192.168.2.2 255.255.255.0Router-C_config_f0/0#no shutdownRouter-C_config_f0/0#interface e1/0Router-C_config_e1/0#ip addre

26、ss 192.168.3.2 255.255.255.0Router-C_config_e1/0#no shutdownRouter-C_config_e1/0#ZRouter-C#show interfaceFastEthernet0/0 is up, line protocol is upaddress is 00e0.0f20.0368Interface address is 192.168.2.2/24MTU 1500 bytes, BW 100000 kbit, DLY 10 usecEncapsulation ARPA, loopback not setKeepalive not

27、setARP type: ARPA, ARP timeout 04:00:0060 second input rate 0 bits/sec, 0 packets/sec!60 second output rate 0 bits/sec, 0 packets/sec!Full-duplex, 100Mb/s, 100BaseTX, 1 Interrupt0 packets input, 0 bytes, 200 rx_freebufReceived 0 unicasts, 0 lowmark, 0 ri, 0 throttles0 input errors, 0 CRC, 0 framing,

28、 0 overrun, 0 long1 packets output, 46 bytes, 50 tx_freebd, 0 underruns0 output errors, 0 collisions, 0 interface resets 0 babbles, 0 late collisions, 0 deferred, 0 err600 0 lost carrier, 0 no carrier 0 grace stop 0 bus error 0 output buffer failures, 0 output buffers swapped out Ethernet1/0 is up,

29、line protocol is up address is 00e0.0f20.0369 Interface address is 192.168.3.2/24 MTU 1500 bytes, BW 10000 kbit, DLY 100 usec Encapsulation ARPA, loopback not set Keepalive not set ARP type: ARPA, ARP timeout 04:00:00 60 second input rate 0 bits/sec, 0 packets/sec! 60 second output rate 0 bits/sec,

30、0 packets/sec! Half-duplex, 10Mb/s, 10BaseTX, 0 Interrupt 0 packets input, 0 bytes, 100 rx_freebuf Received 0 unicasts, 0 lowmark, 0 ri, 0 rx_busy 0 input errors, 0 CRC, 0 framing, 0 overrun 0 long, 0 i_collisions, 0 discard, 0 no buffer 0 packets output, 0 bytes, 50 tx_freebd, 0 underruns 0 output errors, 0 o_collisions, 0 late collisions 0 lost carrier, 0 output buffer failures Async0/0 is down, line protocol is down Hardware is Aux(PC16x50 Mode=Async Speed=9600 DTR=UP,DSR=DOWN,RTS=UP,CTS=DOWN,DCD=DOWN MTU 1500 bytes, BW 9 kbit, DLY 10000 usec Encapsulation PPP

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論