RIP&OSPF重分布例子(路由过渡)
2013-02-01 22:55
411 查看
拓扑图:
无配置分发列表前:
R2:
router ospf 1
redistribute rip metric 100 metric-type 1
subnets
network 192.168.12.0 0.0.0.255 area 0
router rip
version 2
redistribute ospf 1 metric 3
network 200.168.23.0
no
auto-summary
R3:
r3#sh ip rou
R 192.168.12.0/24 [120/3] via 200.168.23.1,
00:00:08, Ethernet0/1
C
200.168.23.0/24 is directly connected, Ethernet0/1
192.168.110.0/32 is subnetted, 1 subnets
R 192.168.110.1 [120/3] via 200.168.23.1,
00:00:08, Ethernet0/1
C
192.168.200.0/24 is directly connected, Loopback0
192.168.100.0/32 is subnetted, 1 subnets
R 192.168.100.1 [120/3] via 200.168.23.1,
00:00:08, Ethernet0/1
r3#
可以看出R3学习到了所有的OSPF网络中的路由,现在配置路由过渡,只允许192.168.100.0/24这条路由被R3学习到,其它的不允许!
R2:加上:
router rip
distribute-list 10 out ospf 1
access-list 10 permit 192.168.100.0
0.0.0.255
R3:可能要等时间久一点才会有反应:
r3#sh ip rou
C
200.168.23.0/24 is directly connected, Ethernet0/1
C
192.168.200.0/24 is directly connected, Loopback0
192.168.100.0/32 is subnetted, 1 subnets
R 192.168.100.1 [120/3] via 200.168.23.1,
00:00:01, Ethernet0/1
r3#
可以看出只有192.168.100.0/24这条路由被R3学习到,配置成功!!!
无配置分发列表前:
R2:
router ospf 1
redistribute rip metric 100 metric-type 1
subnets
network 192.168.12.0 0.0.0.255 area 0
router rip
version 2
redistribute ospf 1 metric 3
network 200.168.23.0
no
auto-summary
R3:
r3#sh ip rou
R 192.168.12.0/24 [120/3] via 200.168.23.1,
00:00:08, Ethernet0/1
C
200.168.23.0/24 is directly connected, Ethernet0/1
192.168.110.0/32 is subnetted, 1 subnets
R 192.168.110.1 [120/3] via 200.168.23.1,
00:00:08, Ethernet0/1
C
192.168.200.0/24 is directly connected, Loopback0
192.168.100.0/32 is subnetted, 1 subnets
R 192.168.100.1 [120/3] via 200.168.23.1,
00:00:08, Ethernet0/1
r3#
可以看出R3学习到了所有的OSPF网络中的路由,现在配置路由过渡,只允许192.168.100.0/24这条路由被R3学习到,其它的不允许!
R2:加上:
router rip
distribute-list 10 out ospf 1
access-list 10 permit 192.168.100.0
0.0.0.255
R3:可能要等时间久一点才会有反应:
r3#sh ip rou
C
200.168.23.0/24 is directly connected, Ethernet0/1
C
192.168.200.0/24 is directly connected, Loopback0
192.168.100.0/32 is subnetted, 1 subnets
R 192.168.100.1 [120/3] via 200.168.23.1,
00:00:01, Ethernet0/1
r3#
可以看出只有192.168.100.0/24这条路由被R3学习到,配置成功!!!
相关文章推荐
- RIP与OSPF路由重分布例子
- RIP&OSPF重分布例子(路由图)
- RIP&OSPF重分布例子(路由图)
- RIP与OSPF路由重分布例子
- 路由重分布之(rip&ospf)
- 在Juniper olive中实现RIP和OSPF路由互重分布
- 路由重分布 rip,eigrp,和ospf
- 简单的路由重分布实验(rip和ospf重分布)
- RIP与OSPF路由重分布
- NSSA RIP&OSPF 路由重分布
- rip与ospf路由重分布
- 路由重分布 rip,eigrp,和ospf
- EIGRP和OSPF的双向双点路由重分布
- 路由协议:RIP OSPF BGP
- OSPF多区域路由双向重分布
- Cisco packet tracer 5.3--RIP和OSPF协议的路由重分布
- IP 路由 内部网关协议 常见的三种协议RIP、OSPF、EIGRP学习认识
- 静态、rip、eigrp与ospf路由重发布
- OSPF、EIGRP、RIP、静态路由的重分布综合试验
- CCNP-双向重分布-OSPF&rip实验