网络协议分析实验报告

2026/4/28 13:29:48

《网络协议分析》实验报告

2011至2012学年第1学期 姓 名 学 号 系 别 计算机系 年级、班 实验地点 E1A406 实验时间 2011年 11月 30日 实验项目 实验十一OSPF路由重分布及路由汇总分析实验 一、实验目的 实验目的: 掌握OSPF的OSPF与RIP间的路由重分布的配置方法及RIP路由信息在OSPF区域中的LSA的类型与泛洪特点;掌握区域间路由汇总及外部路由汇总后LSA分发的特点。 二、实验环境 dynamips,windows平台,PC机 三、实验内容及步骤: 配置OSPF和RIP,使其能全网通信,并跟踪路由重分布的重新分发过程与特点。 在如上图所示的拓朴中,先为各路由器配置接口IP,然后在各路由器上配置RIPv2路由协议,使得PC1、PC2相互之间可以连通。并在R3与R4之间的串口配置RIPv2认证。同时验证认证配置起了作用。 在对R1进行配置之前,在R3的S0/0端口和R4的S0/0端口上抓包: Dynagen=>capture R3 S0/0 rip1.pcap hdlc Dynagen=>capture R4 S0/0 rip2.pcap hdlc 1、对于各串行链路,如R3,配置接口如下: R3#conf t R3(config)#int s0/0 R3(config-if)#ip add 192.168.1.153 255.255.255.252 R3(config-if)#clock rate 252000 R3(config-if)#no sh R3(config-if)#end 对于各快速以太网接口,如R1,配置接口IP地址如下: R1#conf t R1(config)#int f1/0 R1(config-if)#no switchport R1(config-if)#ip add 192.168.3.112 255.255.255.224 R1(config-if)#no sh R1(config-if)#end 2、配置RIP路由协议: 在R1上配置RIP路由协议如下: R1#conf t R1(config)#router rip R1(config)#version 2 R1(config)#network 192.168.3.0 R1(config)#network 192.168.2.0 R1(config)#end 3、在对4台路由器都配置了RIPv2协议之后,查看R1的路由表: R1#show ip route 并粘贴各路由器的路由表: R1 R1#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set R 192.168.1.0/24 [120/1] via 192.168.2.66, 00:00:22, FastEthernet1/1 192.168.2.0/24 is variably subnetted, 4 subnets, 2 masks R 192.168.2.96/28 [120/1] via 192.168.2.67, 00:00:08, FastEthernet1/1 C 192.168.2.64/28 is directly connected, FastEthernet1/1 R 192.168.2.0/24 [120/2] via 192.168.2.66, 00:00:22, FastEthernet1/1 R 192.168.2.128/28 [120/1] via 192.168.2.67, 00:00:08, FastEthernet1/1 192.168.3.0/27 is subnetted, 1 subnets C 192.168.3.96 is directly connected, FastEthernet1/0 查看R4的路由表,结果为: R4#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks R 192.168.1.176/28 [120/1] via 192.168.1.153, 00:00:07, Serial0/0 C 192.168.1.152/30 is directly connected, Serial0/0 192.168.2.0/24 is variably subnetted, 4 subnets, 2 masks R 192.168.2.96/28 [120/1] via 192.168.2.129, 00:00:03, Serial0/1 R 192.168.2.64/28 [120/1] via 192.168.2.129, 00:00:03, Serial0/1 R 192.168.2.0/24 [120/1] via 192.168.1.153, 00:00:07, Serial0/0 C 192.168.2.128/28 is directly connected, Serial0/1 192.168.3.0/27 is subnetted, 1 subnets C 192.168.3.64 is directly connected, FastEthernet1/0 4、在R2的串口上配置RIPv2认证: 1)配置RIPv2认证步骤如下:(1)定义一个带名字的钥匙链;(2)定义在钥匙上的钥匙;(3)在接口上启动认证并指定使用的钥匙链;(4)指定这个接口使用明文认证还是密文认证;(5)可选地配置钥匙的管理。 按上述步骤,在R3。R4的串口上配置RIPv2认证如下: R3#conf t R3(config)# key chain mykey R3(config-keychain)# key 1 R3(config-keychain-key)# key-string 123456


网络协议分析实验报告.doc 将本文的Word文档下载到电脑
搜索更多关于: 网络协议分析实验报告 的文档
相关推荐
相关阅读
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 10

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:xuecool-com QQ:370150219