一、实验拓扑:
55-高级路由:分发列表:DV协议应用_第1张图片
二、实验要求:
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/0

R1(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 route
3.0.0.0/24 is subnetted, 1 subnets
D 3.3.3.0 [90/156160] via 13.1.1.3, 00:00:48, FastEthernet1/0
4.0.0.0/24 is subnetted, 1 subnets
D 4.4.4.0 [90/2297856] via 14.1.1.4, 00:00:40, Serial2/0
C 200.1.1.0/24 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
C 12.1.1.0 is directly connected, FastEthernet0/0
13.0.0.0/24 is subnetted, 1 subnets
C 13.1.1.0 is directly connected, FastEthernet1/0
14.0.0.0/24 is subnetted, 1 subnets
C 14.1.1.0 is directly connected, Serial2/0

1、R1的out方向:R3、R4没有2.2.2.0的路由,R1仍然有:
R1#show ip route
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/156160] via 12.1.1.2, 00:01:05, FastEthernet0/0
3.0.0.0/24 is subnetted, 1 subnets
D 3.3.3.0 [90/156160] via 13.1.1.3, 00:02:46, FastEthernet1/0
4.0.0.0/24 is subnetted, 1 subnets
D 4.4.4.0 [90/2297856] via 14.1.1.4, 00:02:38, Serial2/0
C 200.1.1.0/24 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
C 12.1.1.0 is directly connected, FastEthernet0/0
13.0.0.0/24 is subnetted, 1 subnets
C 13.1.1.0 is directly connected, FastEthernet1/0
14.0.0.0/24 is subnetted, 1 subnets
C 14.1.1.0 is directly connected, Serial2/0

R3#show ip route
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
4.0.0.0/24 is subnetted, 1 subnets
D 4.4.4.0 [90/2300416] via 13.1.1.1, 00:02:58, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
D 12.1.1.0 [90/30720] via 13.1.1.1, 00:02:48, FastEthernet0/0
13.0.0.0/24 is subnetted, 1 subnets
C 13.1.1.0 is directly connected, FastEthernet0/0
14.0.0.0/24 is subnetted, 1 subnets
D 14.1.1.0 [90/2172416] via 13.1.1.1, 00:02:48, FastEthernet0/0

R4#show ip route
3.0.0.0/24 is subnetted, 1 subnets
D 3.3.3.0 [90/2300416] via 14.1.1.1, 00:03:27, Serial2/0
4.0.0.0/24 is subnetted, 1 subnets
C 4.4.4.0 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
D 12.1.1.0 [90/2172416] via 14.1.1.1, 00:03:08, Serial2/0
13.0.0.0/24 is subnetted, 1 subnets
D 13.1.1.0 [90/2172416] via 14.1.1.1, 00:03:08, Serial2/0
14.0.0.0/24 is subnetted, 1 subnets
C 14.1.1.0 is directly connected, Serial2/0

55-高级路由:分发列表:DV协议应用_第2张图片