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

一、实验拓扑:
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

猜你喜欢

转载自blog.51cto.com/13856092/2138503