本文共 2721 字,大约阅读时间需要 9 分钟。
一、实验拓扑:
二、实验要求:1、全网运行EIGRP 90;2、R3、R4不接收2.2.2.2条目,R2不接收3.3.3.3、4.4.4.4路由3、R1部署Prefix-list抓2.2.2.0路由条目,执行拒绝动作、允许其它任意动作;4、R1在RIP进程下f1/0、s2/0 out方向调用分发列表命令;或者是R1的f0/0 in方向调用,这样R1也没有2.2.2.0的路由条目了,不符合题目要求;5、验证:R3、R4是否还有2.2.2.0路由条目?三、命令部署:R1(config)#ip prefix-list pl deny 2.2.2.0/24 //注意这里一定关闭自动汇总R1(config)#ip prefix-list pl permit 0.0.0.0/0 le 32 0.0.0.0/0表示匹配默认路由 le/32表示带掩码长度R1(config)#router eigrp 90
R1(config-router)#distribute-list prefix pl in f0/0R1(config-router)#distribute-list prefix pl out f1/0
R1(config-router)#distribute-list prefix pl out s2/0四、验证:
1、R1的in方向:R1都没有了2.2.2.0的路由R1#show ip route3.0.0.0/24 is subnetted, 1 subnetsD 3.3.3.0 [90/156160] via 13.1.1.3, 00:00:48, FastEthernet1/04.0.0.0/24 is subnetted, 1 subnetsD 4.4.4.0 [90/2297856] via 14.1.1.4, 00:00:40, Serial2/0C 200.1.1.0/24 is directly connected, Loopback012.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, FastEthernet0/013.0.0.0/24 is subnetted, 1 subnetsC 13.1.1.0 is directly connected, FastEthernet1/014.0.0.0/24 is subnetted, 1 subnetsC 14.1.1.0 is directly connected, Serial2/01、R1的out方向:R3、R4没有2.2.2.0的路由,R1仍然有:
R1#show ip route2.0.0.0/24 is subnetted, 1 subnetsD 2.2.2.0 [90/156160] via 12.1.1.2, 00:01:05, FastEthernet0/03.0.0.0/24 is subnetted, 1 subnetsD 3.3.3.0 [90/156160] via 13.1.1.3, 00:02:46, FastEthernet1/04.0.0.0/24 is subnetted, 1 subnetsD 4.4.4.0 [90/2297856] via 14.1.1.4, 00:02:38, Serial2/0C 200.1.1.0/24 is directly connected, Loopback012.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, FastEthernet0/013.0.0.0/24 is subnetted, 1 subnetsC 13.1.1.0 is directly connected, FastEthernet1/014.0.0.0/24 is subnetted, 1 subnetsC 14.1.1.0 is directly connected, Serial2/0R3#show ip route
3.0.0.0/24 is subnetted, 1 subnetsC 3.3.3.0 is directly connected, Loopback04.0.0.0/24 is subnetted, 1 subnetsD 4.4.4.0 [90/2300416] via 13.1.1.1, 00:02:58, FastEthernet0/012.0.0.0/24 is subnetted, 1 subnetsD 12.1.1.0 [90/30720] via 13.1.1.1, 00:02:48, FastEthernet0/013.0.0.0/24 is subnetted, 1 subnetsC 13.1.1.0 is directly connected, FastEthernet0/014.0.0.0/24 is subnetted, 1 subnetsD 14.1.1.0 [90/2172416] via 13.1.1.1, 00:02:48, FastEthernet0/0R4#show ip route
3.0.0.0/24 is subnetted, 1 subnetsD 3.3.3.0 [90/2300416] via 14.1.1.1, 00:03:27, Serial2/04.0.0.0/24 is subnetted, 1 subnetsC 4.4.4.0 is directly connected, Loopback012.0.0.0/24 is subnetted, 1 subnetsD 12.1.1.0 [90/2172416] via 14.1.1.1, 00:03:08, Serial2/013.0.0.0/24 is subnetted, 1 subnetsD 13.1.1.0 [90/2172416] via 14.1.1.1, 00:03:08, Serial2/014.0.0.0/24 is subnetted, 1 subnetsC 14.1.1.0 is directly connected, Serial2/0转载于:https://blog.51cto.com/13856092/2138502