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

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

在大型的企业中,可能在同一网内使用到多种路由协议,为了实现多种路由协议的协同工作,路由器可以使用路由重分发(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

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

相关文章:

你感兴趣的文章:

标签云: