实验四动态路由协议

上传人:m**** 文档编号:472392214 上传时间:2024-02-20 格式:DOC 页数:14 大小:282.50KB
返回 下载 相关 举报
实验四动态路由协议_第1页
第1页 / 共14页
实验四动态路由协议_第2页
第2页 / 共14页
实验四动态路由协议_第3页
第3页 / 共14页
实验四动态路由协议_第4页
第4页 / 共14页
实验四动态路由协议_第5页
第5页 / 共14页
点击查看更多>>
资源描述

《实验四动态路由协议》由会员分享,可在线阅读,更多相关《实验四动态路由协议(14页珍藏版)》请在金锄头文库上搜索。

1、实验四 动态路由协议实验4.1 RIP V1 基本配置【实验名称】RIP V1 基本配置【实验目的】掌握在路由器上配置RIP V1 。【背景描述】假设校园网通过一台路由器连接到校园外的另一台路由器上,现要在路由器上做适当配置,实现校园网内部主机与校园网外部主机的相互通信。本实验以2 台R2624 路由器为例,路由器分别命名为Router1 和Router2 ,路由器之间通过串口采用V35 DCE/DTE 电缆连接,DCE 端连接到Router1 (R2624 )上。PC1 的IP 地址和缺省网关分别为172.16.1.11 和172.16.1.1 ,PC2 的IP 地址和缺省网关分别为172.

2、16.3.22 和172.16.3.2 ,网络掩码都是255.255.255.0 。【实现功能】实现网络的互连互通,从而实现信息的共享和传递。【实验拓扑】 172.16.1.0/24 172.16.2.0/24 172.16.3.0/24 outer1 Router2 PC1 11 1 1 2 2 22 PC2 【实验设备】R2624 路由器(2 台)、V35DCE (1 根)、V35DTE (1 根)【实验步骤】第一步:在路由器Router1 上配置接口的IP 地址和串口上的时钟频率Router1(config)# interface fastethernet 0 !进入接口F0 的配置模式

3、Router1(config-if)# ip address 172.16.1.1 255.255.255.0 !配置路由器接口F0 的IP 地址Router1(config-if)# no shutdown !开启路由器fastethernet0 接口!Router1(config)# interface serial 0 !进入接口S0 配置模式Router1(config-if)# ip address 172.16.2.1 255.255.255.0 !配置路由器接口S0 的IP 地址Router1(config-if)#clock rate 64000 !配置Router1 的时钟频

4、率(DCE )Router1(config-if)# no shutdown !开启路由器serial 0 接口验证测试:验证路由器接口的配置和状态Router1#show ip interface briefInterface IP-Address OK? Method Status ProtocolFastEthernet0 172.16.1.1 YES manual up upFastEthernet1 unassigned YES unset administratively down downFastEthernet2 unassigned YES unset administrat

5、ively down downFastEthernet3 unassigned YES unset administratively down downSerial0 172.16.2.1 YES manual down downSerial1 unassigned YES unset administratively down down注:串口Serial0 的链路层状态是down ,这是因为对端接口还没有配置。第二步:在路由器Router1 上配置RIP V1 路由协议Router1(config)# router rip !创建RIP 路由进程Router1(config-router)

6、#network 172.16.0.0 !定义关联网络(必须是直连的主类网络地址)验证测试:验证Router1 上的RIP V1 路由表Router1#show ip routeCodes: C - connected, S - static, R - RIPO - OSPF, IA - OSPF inter areaE1 - OSPF external type 1, E2 - OSPF external type 2Gateway of last resort is not set172.16.0.0/24 is subnetted, 2 subnetsC 172.16.1.0 is di

7、rectly connected, FastEthernet0C 172.16.2.0 is directly connected, Serial0第三步:在路由器Router2 上配置接口的IP 地址Router2(config)# interface fastethernet 0 !进入接口F0 的配置模式Router2(config-if)# ip address 172.16.3.2 255.255.255.0 !配置路由器接口F0 的IP 地址Router2(config-if)# no shutdown !开启路由器fastethernet0 接口!Router2(config)#

8、 interface serial 0 !进入接口S0 配置模式Router2(config-if)# ip address 172.16.2.2 255.255.255.0 !配置路由器接口S0 的IP 地址Router2(config-if)# no shutdown !开启路由器serial 0 接口验证测试:验证路由器接口的配置和状态Router2#show ip interface briefInterface IP-Address OK? Method Status ProtocolFastEthernet0 172.16.3.2 YES manual up upFastEther

9、net1 unassigned YES unset administratively down downFastEthernet2 unassigned YES unset administratively down downFastEthernet3 unassigned YES unset administratively down downSerial0 172.16.2.2 YES manual up upSerial1 unassigned YES unset administratively down down第四步:在路由器Router2 上配置RIP V1 路由协议Router

10、2(config)# router rip !创建RIP 路由进程Router2(config-router)#network 172.16.0.0 !定义关联网络(必须是直连的主类网络地址)验证测试:验证Router2 和Router1 上的RIP V1 路由表Router2#show ip routeCodes: C - connected, S - static, R - RIPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaE1 - OSPF external type 1, E2 - OSPF externa

11、l type 2Gateway of last resort is not set172.16.0.0/24 is subnetted, 3 subnetsR 172.16.1.0 120/1 via 172.16.2.1, 00:00:16, Serial0 !Router2 通过RIP 协议获得的路由C 172.16.2.0 is directly connected, Serial0C 172.16.3.0 is directly connected, FastEthernet0Router1#sh ip routeCodes: C - connected, S - static, R

12、- RIPO - OSPF, IA - OSPF inter areaE1 - OSPF external type 1, E2 - OSPF external type 2Gateway of last resort is not set172.16.0.0/24 is subnetted, 3 subnetsC 172.16.1.0 is directly connected, FastEthernet0C 172.16.2.0 is directly connected, Serial0R 172.16.3.0 120/1 via 172.16.2.2, 00:00:08, Serial

13、0 !Router1 通过RIP 协议获得的路由第五步:测试网络的连通性。C: ping 172.16.3.22 !从PC1 ping PC2C: ping 172.16.1.11 !从PC2 ping PC1【注意事项】1 在串口上配置时钟频率时,一定要在电缆DCE 端的路由器上配置,否则链路不通;2 定义关联网络时,命令network 后面必须是与该路由器直连的主类网络地址。【参考配置】Router1#show running-config ! 显示路由器Router1 的全部配置Building configuration.Current configuration:!version 6

14、.14(2)!hostname Router1!enable secret 5 $1$CT43$gMntVy1ViUeKqRfmWanw/0!ip subnet-zero! endRouter2#show running-config ! 显示路由器Router2 的全部配置Building configuration.Current configuration:!hostname Red-Giant!enable secret 5 $1$TK6E$V8xIZJ40aN1LYoUd27U45/!ip subnet-zero!interface FastEthernet0ip address 172.16.3.2 255.255.255.0!interface FastEthernet1no ip addressshutdown!interface FastEthernet2no ip addressshutdown!interface FastEthernet3no ip addressshutdown!interface Serial0ip addr

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

当前位置:首页 > 商业/管理/HR > 商业合同/协议

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