1. 程式人生 > >57-高級路由:分發列表:多協議分發列表實驗:DV、LS

57-高級路由:分發列表:多協議分發列表實驗:DV、LS

分享圖片 conf connect 重分發 mask net ask redist fix

一、實驗拓撲:
技術分享圖片
二、實驗要求:
1、R1、R2運行EIGRP協議,R1只通告12.1.1.0網段進EIGRP,其它運行OSPF協議;
2、R1在EIGRP進程下重分發OSPF協議;
3、R4將Loopback 0修改為P-T-P模式;
2、R1用Prefix-list抓取4.4.4.0路由,並在EIGRP中分別調用Prefix-list in/out;
4、in和out R1、R2查看是否還有2.2.2.0條目?

三、命令部署:
R4(config)#int loopback 0
R4(config-if)#ip ospf network point-to-point

R1(config)#router eigrp 90
R1(config-router)#redistribute ospf 110 metric 100000 10 255 1 1500

R1(config)#access-list 10 deny 4.4.4.0 0.0.0.255
R1(config)#access-list 10 permit any

R1(config)#router eigrp 90
R1(config-router)#distribute-list 10 out ospf 110 //只有out方向才有ospf 110寫法
或者是:
R1(config-router)#distribute-list 10 out f0/0

四、驗證:
1、R1部署:distribute-list 10 out ospf 110 命令效果:R1仍然有4.4.4.0路由條目,但是R2沒有
R2#show ip route

1.0.0.0/24 is subnetted, 1 subnets
D EX 1.1.1.0 [170/30720] via 12.1.1.1, 00:08:53, FastEthernet0/0
2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 2.2.2.0/24 is directly connected, Loopback0
D 2.0.0.0/8 is a summary, 00:19:30, Null0
3.0.0.0/32 is subnetted, 1 subnets
D EX 3.3.3.3 [170/30720] via 12.1.1.1, 00:08:53, FastEthernet0/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.1.1.0/24 is directly connected, FastEthernet0/0
D 12.0.0.0/8 is a summary, 00:19:33, Null0
13.0.0.0/24 is subnetted, 1 subnets
D EX 13.1.1.0 [170/30720] via 12.1.1.1, 00:08:56, FastEthernet0/0
14.0.0.0/24 is subnetted, 1 subnets
D EX 14.1.1.0 [170/30720] via 12.1.1.1, 00:08:57, FastEthernet0/0

R1#show ip route
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
D 2.0.0.0/8 [90/156160] via 12.1.1.2, 00:18:39, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/2] via 13.1.1.3, 00:10:58, FastEthernet1/0
4.0.0.0/24 is subnetted, 1 subnets
O 4.4.4.0 [110/65] via 14.1.1.4, 00:10:58, 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

57-高級路由:分發列表:多協議分發列表實驗:DV、LS