CCNP路由重分发(三)EIGRP-to-OSPF

这个实验做一下EIGPR网络与OSPF网络之间的路由重分发,实验拓扑如下:
 
 
实验用的时小凡的模拟器,路由器连接拓扑如下表:
Router1 S0/0 <----> Router2 S0/1
Router2 S0/0 <----> Router3 S0/1
Router3 S0/0 <----> Router4 S0/1
为配置路由重分发时各路由器上的路由表状况:
R1#sh ip route

Gateway of last resort is not set
     10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
D       10.0.0.8/30 [90/2681856] via 10.0.0.2, 00:04:14, Serial0/0
C       10.2.0.0/16 is directly connected, Loopback1
C       10.3.0.0/16 is directly connected, Loopback2
C       10.0.0.0/30 is directly connected, Serial0/0
C       10.1.0.0/16 is directly connected, Loopback0
R2#sh ip route

Gateway of last resort is not set
     10.0.0.0/8 is variably subnetted, 9 subnets, 3 masks
O       10.11.0.1/32 [110/129] via 10.0.0.10, 00:01:54, Serial0/0
O       10.10.0.1/32 [110/129] via 10.0.0.10, 00:01:54, Serial0/0
O       10.9.0.1/32 [110/129] via 10.0.0.10, 00:01:54, Serial0/0
O       10.8.0.0/16 [110/128] via 10.0.0.10, 00:01:54, Serial0/0
C       10.0.0.8/30 is directly connected, Serial0/0
D       10.2.0.0/16 [90/2297856] via 10.0.0.1, 00:04:43, Serial0/1
D       10.3.0.0/16 [90/2297856] via 10.0.0.1, 00:04:43, Serial0/1
C       10.0.0.0/30 is directly connected, Serial0/1
D       10.1.0.0/16 [90/2297856] via 10.0.0.1, 00:04:43, Serial0/1
R3#sh ip route

Gateway of last resort is not set
     10.0.0.0/8 is variably subnetted, 5 subnets, 3 masks
O       10.11.0.1/32 [110/65] via 10.8.0.2, 00:02:18, Serial0/0
O       10.10.0.1/32 [110/65] via 10.8.0.2, 00:02:18, Serial0/0
O       10.9.0.1/32 [110/65] via 10.8.0.2, 00:02:18, Serial0/0
C       10.8.0.0/16 is directly connected, Serial0/0
C       10.0.0.8/30 is directly connected, Serial0/1
R4#sh ip route

Gateway of last resort is not set
     10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C       10.10.0.0/16 is directly connected, Loopback1
C       10.11.0.0/16 is directly connected, Loopback2
C       10.8.0.0/16 is directly connected, Serial0/1
O       10.0.0.8/30 [110/128] via 10.8.0.1, 00:02:34, Serial0/1
C       10.9.0.0/16 is directly connected, Loopback0
在路由器R2上配置路由重分发:
R2#sh run | be router
router eigrp 100
 redistribute ospf 1 metric 2000 100 255 1 1500
 network 10.0.0.0
 auto-summary
!
router ospf 1
 log-adjacency-changes
 redistribute eigrp 100 metric 200 subnets
 network 10.0.0.8 0.0.0.3 area 0
!
路由重分发后各路由器上的路由表情况:
R1#sh ip route

Gateway of last resort is not set
     10.0.0.0/8 is variably subnetted, 9 subnets, 3 masks
D EX    10.11.0.1/32 [170/2195456] via 10.0.0.2, 00:03:17, Serial0/0
D EX    10.10.0.1/32 [170/2195456] via 10.0.0.2, 00:03:17, Serial0/0
D EX    10.9.0.1/32 [170/2195456] via 10.0.0.2, 00:03:17, Serial0/0
D EX    10.8.0.0/16 [170/2195456] via 10.0.0.2, 00:03:17, Serial0/0
D       10.0.0.8/30 [90/2681856] via 10.0.0.2, 00:10:41, Serial0/0
C       10.2.0.0/16 is directly connected, Loopback1
C       10.3.0.0/16 is directly connected, Loopback2
C       10.0.0.0/30 is directly connected, Serial0/0
C       10.1.0.0/16 is directly connected, Loopback0
R2#sh ip route

Gateway of last resort is not set
     10.0.0.0/8 is variably subnetted, 9 subnets, 3 masks
O       10.11.0.1/32 [110/129] via 10.0.0.10, 00:03:25, Serial0/0
O       10.10.0.1/32 [110/129] via 10.0.0.10, 00:03:25, Serial0/0
O       10.9.0.1/32 [110/129] via 10.0.0.10, 00:03:25, Serial0/0
O       10.8.0.0/16 [110/128] via 10.0.0.10, 00:03:25, Serial0/0
C       10.0.0.8/30 is directly connected, Serial0/0
D       10.2.0.0/16 [90/2297856] via 10.0.0.1, 00:11:29, Serial0/1
D       10.3.0.0/16 [90/2297856] via 10.0.0.1, 00:11:29, Serial0/1
C       10.0.0.0/30 is directly connected, Serial0/1
D       10.1.0.0/16 [90/2297856] via 10.0.0.1, 00:11:29, Serial0/1
R3#sh ip route

Gateway of last resort is not set
     10.0.0.0/8 is variably subnetted, 9 subnets, 3 masks
O       10.11.0.1/32 [110/65] via 10.8.0.2, 00:03:46, Serial0/0
O       10.10.0.1/32 [110/65] via 10.8.0.2, 00:03:46, Serial0/0
O       10.9.0.1/32 [110/65] via 10.8.0.2, 00:03:46, Serial0/0
C       10.8.0.0/16 is directly connected, Serial0/0
C       10.0.0.8/30 is directly connected, Serial0/1
O E2    10.2.0.0/16 [110/200] via 10.0.0.9, 00:03:10, Serial0/1
O E2    10.3.0.0/16 [110/200] via 10.0.0.9, 00:03:10, Serial0/1
O E2    10.0.0.0/30 [110/200] via 10.0.0.9, 00:03:10, Serial0/1
O E2    10.1.0.0/16 [110/200] via 10.0.0.9, 00:03:10, Serial0/1
R4#sh ip route

Gateway of last resort is not set
     10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
C       10.10.0.0/16 is directly connected, Loopback1
C       10.11.0.0/16 is directly connected, Loopback2
C       10.8.0.0/16 is directly connected, Serial0/1
O       10.0.0.8/30 [110/128] via 10.8.0.1, 00:04:08, Serial0/1
C       10.9.0.0/16 is directly connected, Loopback0
O E2    10.2.0.0/16 [110/200] via 10.8.0.1, 00:03:32, Serial0/1
O E2    10.3.0.0/16 [110/200] via 10.8.0.1, 00:03:32, Serial0/1
O E2    10.0.0.0/30 [110/200] via 10.8.0.1, 00:03:32, Serial0/1
O E2    10.1.0.0/16 [110/200] via 10.8.0.1, 00:03:32, Serial0/1
重分发后路由器R4的OSPF数据库表:   
R4#sh ip ospf database
            OSPF Router with ID (10.11.0.1) (Process ID 1)
                Router Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum Link count
10.0.0.9        10.0.0.9        296         0x80000003 0x0079CB 2
10.8.0.1        10.8.0.1        640         0x80000004 0x007EEC 4
10.11.0.1       10.11.0.1       607         0x80000004 0x006960 5
                Type-5 AS External Link States
Link ID         ADV Router      Age         Seq#       Checksum Tag
10.0.0.0        10.0.0.9        255         0x80000001 0x00D1FF 0
10.1.0.0        10.0.0.9        255         0x80000001 0x00D7F5 0
10.2.0.0        10.0.0.9        255         0x80000001 0x00CB01 0
10.3.0.0        10.0.0.9        255         0x80000001 0x00BF0C 0
 
希望大家有所收获!

你可能感兴趣的:(网络,休闲,ccnp,EIGRP,重分发)