思科模拟器路由器组网(思科模拟器-路由重分发实验)

思科模拟器路由器组网(思科模拟器-路由重分发实验)


在大型的企业中,可能在同一网内使用到多种路由协议,为了实现多种路由协议的协同工作,路由器可以使用路由重分发(route redistribution)将其学习到的一种路由协议的路由通过另一种路由协议广播出去,这样网络的所有部分都可以连通了。


一、配置静态路由与RIP重分发 R1运行静态路由 R3运行RIP协议

1、配置R1、 R2 、R3

Router>en

Router#conf

Router(config)#hostname R1

R1(config)#int gigabitEthernet 0/1

R1(config-if)#ip address 192.168.1.1 255.255.255.0

R1(config-if)#no shutdown

R1(config-if)#e

R1(config)#int gigabitEthernet 0/0

R1(config-if)#ip address 192.168.2.1 255.255.255.0

R1(config-if)#no shutdown


Router>en

Router#conf

Router(config)#hostname R2

R2(config)#int gigabitEthernet 0/0

R2(config-if)#ip address 192.168.2.2 255.255.255.0

R2(config-if)#no shutdown

R2(config-if)#e

R2(config)#int gigabitEthernet 0/1

R2(config-if)#ip address 192.168.4.2 255.255.255.0

R2(config-if)#no shutdown


Router>en

Router#conf

Router(config)#hostname R3

R3(config)#int gigabitEthernet 0/0

R3(config-if)#ip address 192.168.4.1 255.255.255.0

R3(config-if)#no shutdown

R3(config-if)#e

R3(config)#int gigabitEthernet 0/1

R3(config-if)#ip address 192.168.3.1 255.255.255.0

R3(config-if)#no shutdown

R3(config-if)#exit


2、在路由器R1上配置静态路由到兼并公司

R1(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2

R1(config)#ip route 192.168.4.0 255.255.255.0 192.168.2.2


3、配置R2路由,在G0/0这一侧使用静态路由, 在G0/1接口使用RIP路由协议

R2(config)#IP ROUTE 192.168.1.0 255.255.255.0 192.168.2.1

R2(config)#ROUTEr Rip

R2(config-router)#Version 2

R2(config-router)#NETwork 192.168.4.0


4、在路由器R3上配置RIP路由协议

R3(config)#router rip

R3(config-router)#version 2

R3(config-router)#network 192.168.3.0

R3(config-router)#network 192.168.4.0


5、查看路由表

R3 #show ip route



R1 #show ip route



6、在路由器R2上添加重分发路由

R2(config)# router rip

R2(config-router)# redistribute static

R2(config-router)# redistribute connected

R2(config-router)#exit

相关文章

预装win11的电脑也可以安装win7系统,本文详细介绍了具体操作...
Win11和Win7双系统可以兼顾新系统的功能和旧系统的兼容性,但...
Win7无法直接升级Win11,需要全新安装。升级前请备份重要数据...
这篇win7改win11详细教程,带你一步步完成系统升级,包括备份...
Win7和Win11跑分对比结果出人意料,Win7在某些场景下性能表现...
Win7之家显卡天梯图为您提供最全面的显卡性能对比和选择指南...