1. 程式人生 > >56-高級路由:分發列表:LS協議應用

56-高級路由:分發列表:LS協議應用

distrib ast 實驗 shadow ack http 查看 loop The

一、實驗拓撲:
技術分享圖片
二、實驗要求:
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協議應用