使用distribute-list(分发列表)控制路由更新_第1页
使用distribute-list(分发列表)控制路由更新_第2页
使用distribute-list(分发列表)控制路由更新_第3页
使用distribute-list(分发列表)控制路由更新_第4页
使用distribute-list(分发列表)控制路由更新_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、10. k 1.OZ24f 1/010-1.2. 0/2410_ 1_ 3. 0/24fl/Of2/0使用distribute-list (分发列表)控制路由更新distribute list可以用来控制路由更新,它需要用到access list。一般情况下,access list并不能控制由路由器自己生成的数据流,但是如果将access list应用到distribute list ,则可以用来允许、拒绝路由选择更新。下面是本实例用到的拓扑:在R4上过港掉1 丁跟16. 0, 0/24172- 16- E W24两条路实验操作:R1:in terface LoopbackO ip addre

2、ss 172.16.0.1 255.255.255.0interface 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.1 255.255.255.0!router eigrp 1network 10.1.1.0 0.0.0.255netwo

3、rk 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/0 ip address 10.1.1.2 255.255.255.0 !interface FastEthernet1/0ip address 10.1.2.2 255.255.255.0 !interface FastEthernet2/0ip address 10.1.3.2 255.255.2

4、55.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-summaryR4: interface FastEthernet2/0ip address 10.1.3.1 255.255.255.0!router e

5、igrp 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-list 1 out f2/0好,减少了路由条目在 R2R4 链路上的流动完成之后,在 R4 上查看:R4#sh ip route172.16.0.0/24 is subnetted, 2 subnetsD172.16.2.0

6、 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, FastEthernet2/010.1.2.0 90/30720 via 10.1.3.2, 00:25:06, FastEthernet2/0D 10.1.1.0 90/30720 via 10.1.3.2, 00:25:06, Fast

7、Ethernet2/0 而 R3 与 R4 形成对比R3#sh ip route172.16.0.0/24 is subnetted, 4 subnetsD172.16.0.0 90/158720via 10.1.2.2,00:19:04, FastEthernet1/0D172.16.1.0 90/158720via 10.1.2.2,00:19:04, FastEthernet1/0D172.16.2.0 90/158720via 10.1.2.2,00:19:04, FastEthernet1/0D172.16.3.0 90/158720via 10.1.2.2,00:19:04, Fa

8、stEthernet1/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-

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论