实验四:路由器广域网协议配置.doc

上传人:ng****60 文档编号:3183072 上传时间:2019-05-24 格式:DOC 页数:8 大小:98KB
下载 相关 举报
实验四:路由器广域网协议配置.doc_第1页
第1页 / 共8页
实验四:路由器广域网协议配置.doc_第2页
第2页 / 共8页
实验四:路由器广域网协议配置.doc_第3页
第3页 / 共8页
实验四:路由器广域网协议配置.doc_第4页
第4页 / 共8页
实验四:路由器广域网协议配置.doc_第5页
第5页 / 共8页
点击查看更多>>
资源描述

1、上机报告姓名 学号 9 专业班级 计科普 1002 课程名称 网络系统集成 指导教师机房名称 (I520)上机日期 2012 年 11 月 1 日上机项目名称 实验四:路由器广域网协议配置上机步骤及内容:一、实验目的通过实验了解在路由器上配置广域网协议的方法,掌握通过 PPP 和 FR 的配置,实现广域网络的互联。二、实验要求1使用路由器完成 PPP 协议的配置并实现 PAP 认证功能2实现 FR 功能3理解每一步实验的作用,并记录在实验报告上4实验结束后上缴实验报告三、实验仪器设备和材料清单1具备以太网端口和广域网端口的路由器 2 台2两台具备以太网接口的 PC 机,分别连接路由器的以太网口

2、,路由器端口、PC 的 IP 地址可自己分配和设置,路由器之间用 V.35 线缆连接3. 参考组网图图 1.1 实验组网图四、实验内容1完成路由器的基本端口配置2实现 PAP 认证3完成 FR 功能五、实验步骤1作路由器的端口 IP 地址配置,代码如下:路由器 r2sysSystem View: return to User View with Ctrl+Z.H3Csysname r2r2int e0/1r2-Ethernet0/1ip add 192.168.11.1 24r2-Ethernet0/1%Nov 1 12:58:20:946 2012 r2 IFNET/4/UPDOWN:Lin

3、e protocol on the interface Ethernet0/1 is UP 路由器 r3sysSystem View: return to User View with Ctrl+Z.H3Csysname r3r3int e0/0r3-Ethernet0/0ip add 192.168.33.1 242配置 PPP 协议,PAP 认证路由器 r2r2int Serial 1/0r2-Serial1/0link-protocol pppr2-Serial1/0ppp authentication-mode papr2-Serial1/0quit r2local-user tang

4、liuNew local user added.r2-luser-tangliupassword simple 123456r2-luser-tangliuservice-type pppr2-luser-tangliuquitr2int Serial 1/0r2-Serial1/0ip add 192.168.22.1 24路由器 r3r3int Serial 2/0r3-Serial2/0link-protocol pppr3-Serial2/0ppp authentication-mode papr3-Serial2/0ppp pap local-user tangliu passwor

5、d simple 123456r3-Serial2/0ip add 192.168.22.2 24r3-Serial2/0%Nov 1 13:18:59:122 2012 r3 IFNET/4/UPDOWN:Protocol PPP IPCP on the interface Serial2/0 is UP 3. ppp 协议配置后我们可以让路由器能够 ping 通。效果如下:r2ping 192.168.22.2PING 192.168.22.2: 56 data bytes, press CTRL_C to breakReply from 192.168.22.2: bytes=56 Se

6、quence=1 ttl=255 time=27 msReply from 192.168.22.2: bytes=56 Sequence=2 ttl=255 time=27 msReply from 192.168.22.2: bytes=56 Sequence=3 ttl=255 time=28 msReply from 192.168.22.2: bytes=56 Sequence=4 ttl=255 time=27 msReply from 192.168.22.2: bytes=56 Sequence=5 ttl=255 time=28 ms- 192.168.22.2 ping s

7、tatistics -5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 27/27/28 ms4. 由于还没有配置路由,所以实验过程中,是不能够 ping 通路由器下面的 pc 机。而为了实验完整我们要配置静态路由,其配置代码以及效果如下所示:路由器 r2r2ip route-static 192.168.33.0 24 192.168.22.2r2ping 192.168.33.1PING 192.168.33.1: 56 data bytes, press CTRL_C

8、to breakReply from 192.168.33.1: bytes=56 Sequence=1 ttl=255 time=27 msReply from 192.168.33.1: bytes=56 Sequence=2 ttl=255 time=27 msReply from 192.168.33.1: bytes=56 Sequence=3 ttl=255 time=28 msReply from 192.168.33.1: bytes=56 Sequence=4 ttl=255 time=27 msReply from 192.168.33.1: bytes=56 Sequen

9、ce=5 ttl=255 time=28 ms- 192.168.33.1 ping statistics -5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 27/27/28 ms路由器 r3r3ip route-static 192.168.11.0 24 192.168.22.1r3ping 192.168.11.1PING 192.168.11.1: 56 data bytes, press CTRL_C to breakReply from 192.168.11.1

10、: bytes=56 Sequence=1 ttl=255 time=28 msReply from 192.168.11.1: bytes=56 Sequence=2 ttl=255 time=28 msReply from 192.168.11.1: bytes=56 Sequence=3 ttl=255 time=27 msReply from 192.168.11.1: bytes=56 Sequence=4 ttl=255 time=27 msReply from 192.168.11.1: bytes=56 Sequence=5 ttl=255 time=28 ms- 192.16

11、8.11.1 ping statistics -5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 27/27/28 ms5. 查看路由表路由器 r2r2display ip routing-table Routing Tables: PublicDestinations : 10 Routes : 10Destination/Mask Proto Pre Cost NextHop Interface127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop

12、0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0192.168.1.0/24 Direct 0 0 192.168.1.1 Eth0/0192.168.1.1/32 Direct 0 0 127.0.0.1 InLoop0192.168.11.0/24 Direct 0 0 192.168.11.1 Eth0/1192.168.11.1/32 Direct 0 0 127.0.0.1 InLoop0192.168.22.0/24 Direct 0 0 192.168.22.1 S1/0192.168.22.1/32 Direct 0 0 127.0.0.1

13、InLoop0192.168.22.2/32 Direct 0 0 192.168.22.2 S1/0192.168.33.0/24 Static 60 0 192.168.22.2 S1/0路由器 r3r3display ip routing-table Routing Tables: PublicDestinations : 8 Routes : 8Destination/Mask Proto Pre Cost NextHop Interface127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1

14、 InLoop0192.168.11.0/24 Static 60 0 192.168.22.1 S2/0192.168.22.0/24 Direct 0 0 192.168.22.2 S2/0192.168.22.1/32 Direct 0 0 192.168.22.1 S2/0192.168.22.2/32 Direct 0 0 127.0.0.1 InLoop0192.168.33.0/24 Direct 0 0 192.168.33.1 Eth0/0192.168.33.1/32 Direct 0 0 127.0.0.1 InLoop06FR 配置路由器 r2r2int Serial

15、1/0r2-Serial1/0link-protocol frr2-Serial1/0fr interface-type dcer2-Serial1/0fr dlci 30#Nov 1 13:50:21:779 2012 r2 FR/4/TRAP:1.3.6.1.2.1.10.32.0.1 frDLCIStatusChange send already! Interface 2818096, DLCI 30, State is 3r2-fr-dlci-Serial1/0-20quit r2-Serial1/0fr inarp r2-Serial1/0ip add 192.168.22.1 24

16、r2-Serial1/0fr map ip 192.168.22.2 20路由器 r3r3int Serial 2/0r3-Serial2/0link-protocol frr3-Serial2/0%Nov 1 14:10:04:605 2012 r3 IFNET/4/LINK UPDOWN:Serial2/0: link status is UP #Nov 1 14:10:04:616 2012 r3 FR/4/TRAP:1.3.6.1.2.1.10.32.0.1 frDLCIStatusChange send already! Interface 2818144, DLCI 20, Sta

17、te is 2%Nov 1 14:10:04:617 2012 r3 IFNET/4/UPDOWN:Line protocol on the interface Serial2/0 is UP r3-Serial2/0fr interface-type dter3-Serial2/0fr dlci 30#Nov 1 14:10:35:349 2012 r3 FR/4/TRAP:1.3.6.1.2.1.10.32.0.1 frDLCIStatusChange send already! Interface 2818144, DLCI 20, State is 3r3-fr-dlci-Serial

18、2/0-30quitr3-Serial2/0fr inarp r3-Serial2/0ip add 192.168.22.2 24r3-Serial2/0fr map ip 192.168.22.1 30r3-Serial2/0quit4配置默认路由r2ip route-static 0.0.0.0 24 192.168.22.2r3ip route-static 0.0.0.0 24 192.168.22.16验证配置路由器 r2查看端口 S1/0 的显示情况r2dis int s1/0Serial1/0 current state: UP Line protocol current sta

19、te: UPDescription: Serial1/0 InterfaceThe Maximum Transmit Unit is 1500, Hold timer is 10(sec) Internet Address is 192.168.22.1/24 PrimaryLink layer protocol is FR IETFLMI DLCI is 0, LMI type is Q.933a, frame relay DCELMI status enquiry received 66, LMI status sent 66LMI status enquiry timeout 39, L

20、MI message discarded 0Output queue : (Urgent queuing : Size/Length/Discards) 0/100/0Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0 Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0Physical layer is synchronous, Baudrate is 64000 bpsInterface is DCE, Cable type is V35, Clo

21、ck mode is DCECLKLast clearing of counters: NeverLast 300 seconds input rate 1.29 bytes/sec, 10 bits/sec, 0.10 packets/secLast 300 seconds output rate 1.38 bytes/sec, 11 bits/sec, 0.10 packets/secInput: 160 packets, 2598 bytes0 broadcasts, 0 multicasts3 errors, 0 runts, 0 giants0 CRC, 3 align errors

22、, 0 overruns0 dribbles, 0 aborts, 0 no buffers 0 frame errorsOutput:137 packets, 2321 bytes0 errors, 0 underruns, 0 collisions0 deferredDCD=UP DTR=UP DSR=UP RTS=UP CTS=UP 用 ping 命令验证配置成功与否r2ping 192.168.22.2PING 192.168.22.2: 56 data bytes, press CTRL_C to breakReply from 192.168.22.2: bytes=56 Sequ

23、ence=1 ttl=255 time=27 msReply from 192.168.22.2: bytes=56 Sequence=2 ttl=255 time=27 msReply from 192.168.22.2: bytes=56 Sequence=3 ttl=255 time=28 msReply from 192.168.22.2: bytes=56 Sequence=4 ttl=255 time=27 msReply from 192.168.22.2: bytes=56 Sequence=5 ttl=255 time=28 ms- 192.168.22.2 ping sta

24、tistics -5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 27/27/28 ms路由器 r3查看端口 S2/0 的显示情况r3dis int s2/0Serial2/0 current state: UP Line protocol current state: UPDescription: Serial2/0 InterfaceThe Maximum Transmit Unit is 1500, Hold timer is 10(sec) Internet Add

25、ress is 192.168.22.2/24 PrimaryLink layer protocol is FR IETFLMI DLCI is 0, LMI type is Q.933a, frame relay DTELMI status enquiry sent 78, LMI status received 78LMI status timeout 0, LMI message discarded 0Output queue : (Urgent queuing : Size/Length/Discards) 0/100/0Output queue : (Protocol queuing

26、 : Size/Length/Discards) 0/500/0 Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0Physical layer is synchronous, Virtual baudrate is 64000 bpsInterface is DTE, Cable type is V35, Clock mode is DTECLK1Last clearing of counters: NeverLast 300 seconds input rate 1.38 bytes/sec, 11 bits/sec, 0

27、.10 packets/secLast 300 seconds output rate 1.29 bytes/sec, 10 bits/sec, 0.10 packets/secInput: 141 packets, 2378 bytes0 broadcasts, 0 multicasts2 errors, 0 runts, 0 giants0 CRC, 2 align errors, 0 overruns0 dribbles, 0 aborts, 0 no buffers 0 frame errorsOutput:167 packets, 2698 bytes0 errors, 0 unde

28、rruns, 0 collisions0 deferredDCD=UP DTR=UP DSR=UP RTS=UP CTS=UP 用 ping 命令查看配置成功与否r3ping 192.168.22.1PING 192.168.22.1: 56 data bytes, press CTRL_C to breakReply from 192.168.22.1: bytes=56 Sequence=1 ttl=255 time=27 msReply from 192.168.22.1: bytes=56 Sequence=2 ttl=255 time=28 msReply from 192.168.

29、22.1: bytes=56 Sequence=3 ttl=255 time=27 msReply from 192.168.22.1: bytes=56 Sequence=4 ttl=255 time=28 msReply from 192.168.22.1: bytes=56 Sequence=5 ttl=255 time=27 ms- 192.168.22.1 ping statistics -5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 27/27/28 ms六、

30、思考题在路由器上做 PPP 配置,还有哪些认证方式?如何实现?在路由器上做 ppp 配置,还有 chap 认证方式。配置代码如下:路由器 r2sysSystem View: return to User View with Ctrl+Z.H3Csysname r2r2int e0/1r2-Ethernet0/1ip add 192.168.11.1 24r2-Ethernet0/1%Nov 1 12:58:20:946 2012 r2 IFNET/4/UPDOWN:Line protocol on the interface Ethernet0/1 is UP r2-Ethernet0/1qu

31、itr2int Serial 1/0r2-Serial1/0link-protocol pppr2-Serial1/0ppp authentication-mode chapr2-Serial1/0ppp chap user tangliur2-Serial1/0quit r2local-user tangliuNew local user added.r2-luser-tangliupassword simple 123456r2-luser-tangliuservice-type pppr2-luser-tangliuquitr2int Serial 1/0r2-Serial1/0ip a

32、dd 192.168.22.1 24r2-Serial1/0quit路由器 r3H3Csysname r3r3int e0/0r3-Ethernet0/0ip add 192.168.33.1 24r3-Ethernet0/0quitr3int Serial 2/0r3-Serial2/0link-protocol pppr3-Serial2/0ppp authentication-mode chapr3-Serial2/0ppp chap user tangliur3-Serial2/0local-user tangliur3-Serial2/0password simple 123456r

33、3-Serial2/0service-type pppr3-Serial2/0ip add 192.168.22.2 24结果分析与体会:本次实验主要就是叫我们去配置 ppp 协议,fr(帧中继)协议。在配置 ppp 协议的时候,实验中叫我们配置的是 pap 验证,可是 ppp 协议不仅仅只有 pap 验证这种方式,还有就是 chap 验证,他们之间的不同,在我们看了他们各自的实验原理,以及实验配置方法,才可以更加仔细的去了解。而在实验开始都有路由器的基本配置,所以这是很熟练的操作,对我来说已经是习惯操作了。通过这次实验,我了解在操作过程中,一定要自己去亲自探索才能有所收获。上机成绩、评语指导教师签名 批改日期

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 实用文档资料库 > 策划方案

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。