2010-11-03_101451 

需求:EIGRP与OSPF之间在R2上做双向重分发,能够互相学习到对方路由

配置:

router eigrp 1
redistribute ospf 1 metric 10000 100 255 1 1500
network 23.1.1.0 0.0.0.255
no auto-summary
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
redistribute eigrp 1 subnets
network 2.2.2.2 0.0.0.0 area 0
network 12.1.1.2 0.0.0.0 area 0
检验:

R1#show ip route

Gateway of last resort is not set

     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/65] via 12.1.1.2, 00:04:55, Serial1/0
     3.0.0.0/24 is subnetted, 1 subnets
O E2    3.3.3.0 [110/20] via 12.1.1.2, 00:00:10, Serial1/0
     23.0.0.0/24 is subnetted, 1 subnets
O E2    23.1.1.0 [110/20] via 12.1.1.2, 00:04:19, Serial1/0
     12.0.0.0/24 is subnetted, 1 subnets
C       12.1.1.0 is directly connected, Serial1/0

R3#show ip route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
D EX    1.1.1.1 [170/2195456] via 23.1.1.1, 00:01:47, Serial1/0
     2.0.0.0/24 is subnetted, 1 subnets
D EX    2.2.2.0 [170/2195456] via 23.1.1.1, 00:01:47, Serial1/0
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Loopback0
     23.0.0.0/24 is subnetted, 1 subnets
C       23.1.1.0 is directly connected, Serial1/0
     12.0.0.0/24 is subnetted, 1 subnets
D EX    12.1.1.0 [170/2195456] via 23.1.1.1, 00:01:47, Serial1/0

总结:

1.EIGRP从外部学习到的路由以DEX显示,并且默认的管理距离是170

2.从另一种协议将路由重发布道EIGRP中时,默认度量值为无穷大。将静态路由

或直连路由重分发到EIGRP中时,其默认度量值与相关静态接口或直连接口的度量值相同。