动态路由配置实验
- 格式:pdf
- 大小:132.67 KB
- 文档页数:6
动态路由配置实验(学时数:4,分两次完成)一、实验目的
1、 掌握在一个网络系统中配置动态路由RIP二、实验设备及环境
Star-R2620路由器四台,计算机四台,Star-1926F+交换机一台网络拓朴结构S0DTES1DCERTBRTDRTCRTAS0DCES1DCES1DTES0DTEF0F0F0F0F1PC1PC2PC3192.168.7.0
192.168.1.0192.168.3.0
192.168.2.0 192.168.4.0 192.168.6.0 192.168.5.0 各主机和路由器接口的IP地址各路由器的接口IP地址分配如下:
RTARTBRTCRTDS0192.168.1.1/24192.168.1.2/24192.168.2.2/24 S1192.168.3.2/24192.168.2.1/24192.168.3.1/24
F0192.168.7.1/24192.168.4.1/24192.168.6.1/24192.168.4.2/24F1 192.168.5.1/24各主机的IP地址和缺省网关分配如下:
PC1PC2PC3IP192.168.7.2/24192.168.6.2/24192.168.5.2/24
Gateway192.168.7.1/24192.168.6.1/24192.168.5.1/24
三、知识点说明1、动态路由协议RIPRIP的概念RIP(Routing Information Protocol,路由信息协议)是一种有类别的、距离向量路由协议。RIP使用非常简单的度量值 一 跳数(HOPS),仅考虑到达目的网络要经过的路由器个数,不考虑路径的带宽和其他因素。跳数的计算是将指定路由器到达远程网络所有路由器的个数进行简单相加而完成的。每隔30秒广播一次路由表,维护相邻路由器的关系,同时根据收到的路由表计算自己的路由表。RIP运行简单,适用于小型网络。RIP的配置方法RIP路由协议原理看起来很复杂,然而配置RIP是相当简单的,主要有以下两个步骤:① 启动RIP路由进程。在全局配置模式下,使用“router rip”命令。② 在路由配置模式下配置路由器的那些接口参与RIP进程。使用“network主网络号”命令举例如下:RTA(config)#router ripRTA(config-router)#network 192.168.1.0RTA(config-router)#network 192.168.3.0RTA(config-router)#network 192.168.7.0使用“network”命令时,网络号应是路由器的直连接口的主网络号。RTA直连接网络192. 168.1.0/24的主网络号为192.168.1.0,而另外两个直连网络的主网络号分别为192.168.3.0,192.168.7.0。
四、实验内容1、配置动态路由协议RIPRTA的配置Red-Giant>enRed-Giant#config tRed-Giant (config)#hostname RTARTA(config)#int f0RTA(config-if)#ip address 192.168.7.1 255.255.255.0RTA(config-if)#no shutdownRTA(config-if)#exitRTA(config)#int s0RTA(config-if)#ip address 192.168.1.1 255.255.255.0RTA(config-if)#encapsulation pppRTA(config-if)#clock rate 2000000RTA(config-if)#no shutdownRTA(config-if)#exitRTA(config)#int s1RTA(config-if)#ip address 192.168.3.2 255.255.255.0RTA(config-if)#encapsulation pppRTA(config-if)#no shutdownRTA(config-if)#exitRTA(config)#router ripRTA(config-router)#network 192.168.1.0RTA(config-router)#network 192.168.3.0RTA(config-router)#network 192.168.7.0RTD(config-router)#exitRTA(config)#exitRTA#writeRTA#show runRTA# show ip route
RTB的配置Red-Giant>enRed-Giant#config tRed-Giant (config)#hostname RTBRTB(config)#int f0RTB(config-if)#ip address 192.168.4.1 255.255.255.0RTB(config-if)#no shutdownRTB(config-if)#exitRTB(config)#int s0RTB(config-if)#ip address 192.168.1.2 255.255.255.0RTB(config-if)#encapsulation pppRTB(config-if)#no shutdownRTB(config-if)#exitRTB(config)#int s1RTB(config-if)#ip address 192.168.2.1 255.255.255.0RTB(config-if)#clock rate 2000000RTB(config-if)#encapsulation pppRTB(config-if)#no shutdownRTB(config-if)#exitRTB(config)#router ripRTB(config-router)#network 192.168.1.0RTB(config-router)#network 192.168.2.0RTB(config-router)#network 192.168.4.0RTD(config-router)#exitRTB(config)#exitRTB#writeRTB#show runRTB# show ip route
RTC的配置Red-Giant>enRed-Giant#config tRed-Giant (config)#hostname RTCRTC(config)#int f0RTC(config-if)#ip address 192.168.6.1 255.255.255.0RTC(config-if)#no shutdownRTC(config-if)#exitRTC(config)#int s0RTC(config-if)#ip address 192.168.2.2 255.255.255.0RTC(config-if)#encapsulation pppRTC(config-if)#no shutdownRTC(config-if)#exitRTC(config)#int s1RTC(config-if)#ip address 192.168.3.1 255.255.255.0RTC(config-if)#clock rate 2000000RTC(config-if)#encapsulation pppRTC(config-if)#no shutdownRTC(config-if)#exitRTC(config)#router ripRTC(config-router)#network 192.168.2.0RTC(config-router)#network 192.168.3.0RTC(config-router)#network 192.168.6.0RTD(config-router)#exitRTC(config)#exitRTC#writeRTC#show runRTC# show ip route
RTD的配置Red-Giant>enRed-Giant#config tRed-Giant (config)#hostname RTDRTD(config)#int f0RTD(config-if)#ip address 192.168.4.2 255.255.255.0RTD(config-if)#no shutdownRTD(config-if)#exitRTD(config)#int f1RTD(config-if)#ip address 192.168.5.1 255.255.255.0RTD(config-if)#no shutdownRTD(config-if)#exit