您的位置:首页 > 其它

34、重分布配置实验之分发列表distribute-list

2015-12-04 14:26 597 查看
1、分发列表distribute-list解析







2、实验拓扑



3、实验配置
R1配置interface Serial0/0 ip address 12.1.1.1 255.255.255.0interface Serial0/1 ip address 13.1.1.1 255.255.255.0interface Serial0/2 ip address 14.1.1.1 255.255.255.0router eigrp 90 redistribute ospf 110 metric 1500 100 255 1 1500 network 14.1.1.0 0.0.0.255 no auto-summaryrouter ospf 110 router-id 1.1.1.1 log-adjacency-changes redistribute rip subnets network 13.1.1.0 0.0.0.255 area 0router rip version 2 network 12.0.0.0 no auto-summary
R2配置interface Loopback0 ip address 2.2.2.2 255.255.255.0interface Serial0/0 ip address 12.1.1.2 255.255.255.0router rip version 2 network 2.0.0.0 network 12.0.0.0 no auto-summary
R3配置interface Loopback0 ip address 3.3.3.3 255.255.255.0interface Serial0/0 ip address 13.1.1.3 255.255.255.0router ospf 110 router-id 3.3.3.3 log-adjacency-changes network 3.3.3.0 0.0.0.255 area 0 network 13.1.1.0 0.0.0.255 area 0
R4配置interface Loopback0 ip address 4.4.4.4 255.255.255.0interface Serial0/0 ip address 14.1.1.4 255.255.255.0router eigrp 90 network 4.4.4.0 0.0.0.255 network 14.1.1.0 0.0.0.255 no auto-summary

4、分发列表应用


此时我们可以看到R4可以学到3.3.3.3/32和13.1.1.0/24这两条路由,这里我们希望通过分发列表让R4只学到13.1.1.0/24这条路由。
R1配置

access-list 3 permit 3.3.3.3
router eigrp 90
distribute-list 3 out ospf 110


此时R4只学到13.1.1.0/24这条路由。
本文出自 “开源殿堂” 博客,请务必保留此出处http://kaiyuandiantang.blog.51cto.com/10699754/1719545
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: