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

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

《实验四:路由器广域网协议配置》由会员分享,可在线阅读,更多相关《实验四:路由器广域网协议配置(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 地址配置,代码如下:路由器 r2sys System View: return to User View with Ctrl+Z. H3Csysname r2 r2int e0/1 r2-Ethernet0/1ip add 192.168.11.1 24 r2-Ethernet0/1 %Nov 1 12:58:20:946 2012 r2 IFN

3、ET/4/UPDOWN:Line protocol on the interface Ethernet0/1 is UP 路由器 r3sys System View: return to User View with Ctrl+Z. H3Csysname r3 r3int e0/0 r3-Ethernet0/0ip add 192.168.33.1 242配置 PPP 协议,PAP 认证路由器 r2r2int Serial 1/0 r2-Serial1/0link-protocol ppp r2-Serial1/0ppp authentication-mode pap r2-Serial1/0

4、quit r2local-user tangliu New local user added. r2-luser-tangliupassword simple 123456 r2-luser-tangliuservice-type ppp r2-luser-tangliuquit r2int Serial 1/0 r2-Serial1/0ip add 192.168.22.1 24 路由器 r3r3int Serial 2/0 r3-Serial2/0link-protocol ppp r3-Serial2/0ppp authentication-mode pap r3-Serial2/0pp

5、p pap local-user tangliu password simple 123456 r3-Serial2/0ip add 192.168.22.2 24 r3-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 breakRe

6、ply from 192.168.22.2: bytes=56 Sequence=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=2

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

8、8.33.1: 56 data bytes, press CTRL_C 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 msRepl

9、y from 192.168.33.1: bytes=56 Sequence=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.1 r3ping 192.168.11.1PING 192.168.11.1: 56 data bytes, press C

10、TRL_C to breakReply from 192.168.11.1: 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

11、Sequence=5 ttl=255 time=28 ms- 192.168.11.1 ping statistics -5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 27/27/28 ms 5. 查看路由表路由器 r2r2display ip routing-table Routing Tables: PublicDestinations : 10 Routes : 10Destination/Mask Proto Pre Cost NextHop Interface1

12、27.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.0/24 Direct 0 0 192.168.1.1 Eth0/0 192.168.1.1/32 Direct 0 0 127.0.0.1 InLoop0 192.168.11.0/24 Direct 0 0 192.168.11.1 Eth0/1 192.168.11.1/32 Direct 0 0 127.0.0.1 InLoop0 192.168.22.0/24 Direct 0 0 192.168.22

13、.1 S1/0 192.168.22.1/32 Direct 0 0 127.0.0.1 InLoop0 192.168.22.2/32 Direct 0 0 192.168.22.2 S1/0 192.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 12

14、7.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 192.168.11.0/24 Static 60 0 192.168.22.1 S2/0 192.168.22.0/24 Direct 0 0 192.168.22.2 S2/0 192.168.22.1/32 Direct 0 0 192.168.22.1 S2/0 192.168.22.2/32 Direct 0 0 127.0.0.1 InLoop0 192.168.33.0/24 Direct 0 0 192.168.33.1 Eth0/0 192.168.33.1/32 Direct 0 0 127.0.0.1 InLoop06FR 配置路由器 r2r2int Serial 1/0r2-Serial1/0link-protocol fr r2-Serial1/0fr interface-type dce r2-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 frDL

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

当前位置:首页 > 生活休闲 > 科普知识

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号