56-高级路由:分发列表:LS协议应用

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了56-高级路由:分发列表:LS协议应用相关的知识,希望对你有一定的参考价值。

一、实验拓扑:
技术分享图片
二、实验要求:
1、所有路由器部署OSPF协议;
2、R1用Prefix-list抓取2.2.2.0路由,并在OSPF中调用Prefix-list;
3、R2在Loopback0下修改为P-T-P模式,不然最后流量是32位的,抓取不到;
4、R1、R3、R4查看是否还有2.2.2.0条目?同时在R1查看是否有关于2.2.2.0的LSA?

三、命令部署:
R2(config)#int loopback0
R2(config-if)#ip ospf network point-to-point

R1(config)#ip prefix-list ls deny 2.2.2.0/24
R1(config)#ip prefix-list ls permit 0.0.0.0/0 le 32

R1(config)#router ospf 110
R1(config-router)#distribute-list prefix ls in fastEthernet 0/0

四、验证:
R1#show ip route
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/2] via 13.1.1.3, 00:00:56, FastEthernet1/0
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/65] via 14.1.1.4, 00:00:56, Serial2/0
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
O 1.1.1.1 [110/2] via 13.1.1.1, 00:01:13, FastEthernet0/0
2.0.0.0/24 is subnetted, 1 subnets

R4#show ip route

O 1.1.1.1 [110/65] via 14.1.1.1, 00:01:50, Serial2/0
2.0.0.0/24 is subnetted, 1 subnets

以上是关于56-高级路由:分发列表:LS协议应用的主要内容,如果未能解决你的问题,请参考以下文章

57-高级路由:分发列表:多协议分发列表实验:DVLS

distribute-list(分发列表)控制路由更新使用

OSPF的高级应用之路由重分发与NSSA的配置

动态路由协议OSPF高级配置

路由器OSPF协议的高级配置之“路由重分发”

MPLS体系架构之 标签分发