拓扑说明:
R1和R2运行eigrp,R2和R3及R4运行ospf,进行双向重分发路由
列表加ACL控制路由更新-acl访问控制列表">
实验目的:使用分发列表控制路由更新
熟悉ACL的permit和Deny在路由重分发中的作用
Distribute-list in/out 接口/路由协议
一、基本重分发,每台路由器学习到所有的路由
R2:
Ospf:redistribute eigrp 90 subnets
Eigrp:redistribute ospf 110 metric 1544 100 255 1 1500
在R1上看路由表:
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
34.0.0.0/24 is subnetted, 1 subnets
D EX 34.1.1.0 [170/2195456] via 12.1.1.2, 00:00:23, Serial0/0
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
D EX 2.2.2.0 [170/2195456] via 12.1.1.2, 00:00:23, Serial0/0
3.0.0.0/32 is subnetted, 1 subnets
D EX 3.3.3.3 [170/2195456] via 12.1.1.2, 00:00:23, Serial0/0
4.0.0.0/32 is subnetted, 1 subnets
D EX 4.4.4.4 [170/2195456] via 12.1.1.2, 00:00:23, Serial0/0
23.0.0.0/24 is subnetted, 1 subnets
D EX 23.1.1.0 [170/2195456] via 12.1.1.2, 00:00:23, Serial0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.1.1.0 is directly connected, Serial0/0