码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-07-07 17:32:40      阅读:124      评论:0      收藏:0      [点我收藏+]

标签:com   ado   route   proc   Fix   ref   查看   size   show   

一、实验拓扑:
技术分享图片
二、实验要求:
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协议应用

标签:com   ado   route   proc   Fix   ref   查看   size   show   

原文地址:http://blog.51cto.com/13856092/2138503

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!