使用distribute-list分发列表控制路由更新.docx

上传人:scccc 文档编号:12910861 上传时间:2021-12-07 格式:DOCX 页数:6 大小:145.07KB
返回 下载 相关 举报
使用distribute-list分发列表控制路由更新.docx_第1页
第1页 / 共6页
使用distribute-list分发列表控制路由更新.docx_第2页
第2页 / 共6页
使用distribute-list分发列表控制路由更新.docx_第3页
第3页 / 共6页
使用distribute-list分发列表控制路由更新.docx_第4页
第4页 / 共6页
使用distribute-list分发列表控制路由更新.docx_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《使用distribute-list分发列表控制路由更新.docx》由会员分享,可在线阅读,更多相关《使用distribute-list分发列表控制路由更新.docx(6页珍藏版)》请在三一文库上搜索。

1、使用distribute-list (分发列表)控制路由更新distribute list可以用来控制路由更新,它需要用到access list 。一般情况下,access list并不能控制由路由器自己生成的数据流,但是如果将access list应用到distribute list ,则可以用来允许、拒绝路由选择更新。下面是本实例用到的拓扑:loD;172.16.0. lol ; 172. 16.1.1q2;172.16.2.172. 16 3.4 4 4 42 2 2 2/ / / /1 1- 11 1110.1.2. 0/2410. 1.3. 0/24f0/0在K4上过滤掉1T2. 1

2、6. 0, 0/24172. 16. E 0/M两条路实验操作:R1:interface Loopback。ip address 172.16.0.1 255.255.255.0 interface Loopback1 ip address 172.16.1.1 255.255.255.0 !interface Loopback2ip address 172.16.2.1 255.255.255.0!interface Loopback3ip address 172.16.3.1 255.255.255.0!interface FastEthernet0/0ip address 10.1.1.

3、1 255.255.255.0!router eigrp 1network 10.1.1.0 0.0.0.255network 172.16.0.0 0.0.0.255network 172.16.1.0 0.0.0.255network 172.16.2.0 0.0.0.255network 172.16.3.0 0.0.0.255no auto-summaryR2:interface FastEthernet0/0ip address 10.1.1.2 255.255.255.0 !interface FastEthernet1/0ip address 10.1.2.2 255.255.2

4、55.0!interface FastEthernet2/0ip address 10.1.3.2 255.255.255.0!router eigrp 1network 10.1.1.0 0.0.0.255network 10.1.2.0 0.0.0.255network 10.1.3.0 0.0.0.255no auto-summaryR3:interface FastEthernet1/0ip address 10.1.2.1 255.255.255.0!router eigrp 1network 10.1.2.0 0.0.0.255 auto-summaryD10.1.2.0 90/3

5、0720 via 10.1.3.2, 00:25:06, FastEthernet2/0R4: interface FastEthernet2/0ip address 10.1.3.1 255.255.255.0!router eigrp 1network 10.1.3.0 0.0.0.255distribute-list 1 in FastEthernet2/0auto-summary!access-list 1 deny 172.16.0.0 0.0.1.255access-list 1 permit any这样比上种方法更另一种方法是在R2 的 f2/0 接口执行distribute-l

6、ist 1 out f2/0好,减少了路由条目在R2>R4 链路上的流动完成之后,在R4 上查看:R4#sh ip route172.16.0.0/24 is subnetted, 2 subnetsD172.16.2.0 90/158720 via 10.1.3.2, 00:18:52, FastEthernet2/0D172.16.3.0 90/158720 via 10.1.3.2, 00:18:52, FastEthernet2/010.0.0.0/24 is subnetted, 3 subnetsC 10.1.3.0 is directly connected, FastEt

7、hernet2/0D 10.1.1.0 90/30720 via 10.1.3.2, 00:25:06, FastEthernet2/0而 R3 与 R4 形成对比R3#sh ip route172.16.0.0/24 is subnetted, 4 subnetsD172.16.0.090/158720via10.1.2.2,00:19:04,FastEthernet1/0D172.16.1.090/158720via10.1.2.2,00:19:04,FastEthernet1/0D172.16.2.090/158720via10.1.2.2,00:19:04,FastEthernet1/

8、0D172.16.3.090/158720via10.1.2.2,00:19:04,FastEthernet1/010.0.0.0/24 is subnetted, 3 subnetsD 10.1.3.0 90/30720 via 10.1.2.2, 00:25:29, FastEthernet1/0C 10.1.2.0 is directly connected, FastEthernet1/0D 10.1.1.0 90/30720 via 10.1.2.2, 00:25:29, FastEthernet1/0总结:用分布控制列表过滤路由更新,分布控制列表只抑制某些特定的路由不被发送或接受。命令格式:A.应用于进入路由更新(config-router)#distribute-list access-list number in interfacenameB.应用于出口路由更新access-listnumber out(interface name(config-router)#distribute-list|routing pro|as-number)

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 社会民生


经营许可证编号:宁ICP备18001539号-1