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

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

上机报告姓名学号9专业班级计科普1002课程名称网络系统集成指导教师机房名称(I520)上机日期2012年11月1日上机项目名称实验四:路由器广域网协议配置上机步骤及内容:一、实验目的通过实验了解在路由器上配置广域网协议的方法,掌握通过PPP和FR的配置,实现广域网络的互联。二、实验要求1.使用路由器完成PPP协议的配置并实现PAP认证功能2.实现FR功能3.理解每一步实验的作用,并记录在实验报告上4.实验结束后上缴实验报告三、实验仪器设备和材料清单1.具备以太网端口和广域网端口的路由器2台2.两台具备以太网接口的PC机,分别连接路由器的以太网口,路由器端口、PC的IP地址可自己分配和设置,路由器之间用V.35线缆连接3.参考组网图图1.1实验组网图四、实验内容1.完成路由器的基本端口配置2.实现PAP认证3.完成FR功能五、实验步骤1.作路由器的端口IP地址配置,代码如下:路由器r2H3CsysSystemView:returntoUserViewwithCtrl+Z.[H3C]sysnamer2[r2]inte0/1[r2-Ethernet0/1]ipadd192.168.11.124[r2-Ethernet0/1]%Nov112:58:20:9462012r2IFNET/4/UPDOWN:LineprotocolontheinterfaceEthernet0/1isUP路由器r3H3CsysSystemView:returntoUserViewwithCtrl+Z.[H3C]sysnamer3[r3]inte0/0[r3-Ethernet0/0]ipadd192.168.33.1242.配置PPP协议,PAP认证路由器r2[r2]intSerial1/0[r2-Serial1/0]link-protocolppp[r2-Serial1/0]pppauthentication-modepap[r2-Serial1/0]quit[r2]local-usertangliuNewlocaluseradded.[r2-luser-tangliu]passwordsimple123456[r2-luser-tangliu]service-typeppp[r2-luser-tangliu]quit[r2]intSerial1/0[r2-Serial1/0]ipadd192.168.22.124路由器r3[r3]intSerial2/0[r3-Serial2/0]link-protocolppp[r3-Serial2/0]pppauthentication-modepap[r3-Serial2/0]ppppaplocal-usertangliupasswordsimple123456[r3-Serial2/0]ipadd192.168.22.224[r3-Serial2/0]%Nov113:18:59:1222012r3IFNET/4/UPDOWN:ProtocolPPPIPCPontheinterfaceSerial2/0isUP3.ppp协议配置后我们可以让路由器能够ping通。效果如下:[r2]ping192.168.22.2PING192.168.22.2:56databytes,pressCTRL_CtobreakReplyfrom192.168.22.2:bytes=56Sequence=1ttl=255time=27msReplyfrom192.168.22.2:bytes=56Sequence=2ttl=255time=27msReplyfrom192.168.22.2:bytes=56Sequence=3ttl=255time=28msReplyfrom192.168.22.2:bytes=56Sequence=4ttl=255time=27msReplyfrom192.168.22.2:bytes=56Sequence=5ttl=255time=28ms---192.168.22.2pingstatistics---5packet(s)transmitted5packet(s)received0.00%packetlossround-tripmin/avg/max=27/27/28ms4.由于还没有配置路由,所以实验过程中,是不能够ping通路由器下面的pc机。而为了实验完整我们要配置静态路由,其配置代码以及效果如下所示:路由器r2[r2]iproute-static192.168.33.024192.168.22.2[r2]ping192.168.33.1PING192.168.33.1:56databytes,pressCTRL_CtobreakReplyfrom192.168.33.1:bytes=56Sequence=1ttl=255time=27msReplyfrom192.168.33.1:bytes=56Sequence=2ttl=255time=27msReplyfrom192.168.33.1:bytes=56Sequence=3ttl=255time=28msReplyfrom192.168.33.1:bytes=56Sequence=4ttl=255time=27msReplyfrom192.168.33.1:bytes=56Sequence=5ttl=255time=28ms---192.168.33.1pingstatistics---5packet(s)transmitted5packet(s)received0.00%packetlossround-tripmin/avg/max=27/27/28ms路由器r3[r3]iproute-static192.168.11.024192.168.22.1[r3]ping192.168.11.1PING192.168.11.1:56databytes,pressCTRL_CtobreakReplyfrom192.168.11.1:bytes=56Sequence=1ttl=255time=28msReplyfrom192.168.11.1:bytes=56Sequence=2ttl=255time=28msReplyfrom192.168.11.1:bytes=56Sequence=3ttl=255time=27msReplyfrom192.168.11.1:bytes=56Sequence=4ttl=255time=27msReplyfrom192.168.11.1:bytes=56Sequence=5ttl=255time=28ms---192.168.11.1pingstatistics---5packet(s)transmitted5packet(s)received0.00%packetlossround-tripmin/avg/max=27/27/28ms5.查看路由表路由器r2[r2]displayiprouting-tableRoutingTables:PublicDestinations:10Routes:10Destination/MaskProtoPreCostNextHopInterface127.0.0.0/8Direct00127.0.0.1InLoop0127.0.0.1/32Direct00127.0.0.1InLoop0192.168.1.0/24Direct00192.168.1.1Eth0/0192.168.1.1/32Direct00127.0.0.1InLoop0192.168.11.0/24Direct00192.168.11.1Eth0/1192.168.11.1/32Direct00127.0.0.1InLoop0192.168.22.0/24Direct00192.168.22.1S1/0192.168.22.1/32Direct00127.0.0.1InLoop0192.168.22.2/32Direct00192.168.22.2S1/0192.168.33.0/24Static600192.168.22.2S1/0路由器r3[r3]displayiprouting-tableRoutingTables:PublicDestinations:8Routes:8Destination/MaskProtoPreCostNextHopInterface127.0.0.0/8Direct00127.0.0.1InLoop0127.0.0.1/32Direct00127.0.0.1InLoop0192.168.11.0/24Static600192.168.22.1S2/0192.168.22.0/24Direct00192.168.22.2S2/0192.168.22.1/32Direct00192.168.22.1S2/0192.168.22.2/32Direct00127.0.0.1InLoop0192.168.33.0/24Direct00192.168.33.1Eth0/0192.168.33.1/32Direct00127.0.0.1InLoop06.FR配置路由器r2[r2]intSerial1/0[r2-Serial1/0]link-protocolfr[r2-Serial1/0]frinterface-typedce[r2-Serial1/0]frdlci30#Nov113:50:21:7792012r2FR/4/TRAP:1.3.6.1.2.1.10.32.0.1frDLCIStatusChangefrDLCIStatusChangesendalready!Interface2818096,DLCI30,Stateis3[r2-fr-dlci-Serial1/0-20]quit[r2-Serial1/0]frinarp[r2-Serial1/0]ipadd192.168.22.124[r2-Serial1/0]frmapip192.168.22.220路由器r3[r3]intSerial2/0[r3-Serial2/0]link-protocolfr[r3-Serial2/0]%Nov114:10:04:6052012r3IFNET/4/LINKUPDOWN:Serial2/0:linkstatusisUP#Nov114:10:04:6162012r3FR/4/TRAP:1.3.6.1.2.1.10.32.0.1frDLCIStatusChangefrDLCIStatusChangesendalready!Interface2818144,DLCI20,Stateis2%Nov114:10:04:6172012r3IFNET/4/UPDOWN:LineprotocolontheinterfaceSerial2/0isUP[r3-Serial2/0]frinterface-typedte[r3-Serial2/0]frdlci30#Nov114:10:35:3492012r3FR/4/TRAP:1.3.6.1.2.1.10.32.0.1frDLCIStatusChangefrDLCIStatusChangesendalready!Interface2818144,DLCI20,Stateis3[r3-fr-dlci-Serial2/0-30]quit[r3-Serial2/0]frinarp[r3-Serial2/0]ipadd192.168.22.224[r3-Serial2/0]frmapip192.168.22.130[r3-Serial2/0]quit4.配置默认路由[r2]iproute-static0.0.0.024192.168.22.2[r3]iproute-static0.0.0.024192.168.22.16.验证配置路由器r2查看端口S1/0的显示情况[r2]disints1/0Serial1/0currentstate:U

1 / 8
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功