Open the CD with the book in the 6th Chapter practice "The OSPF and EIGRP route redistribution. PKT", the network topology as shown in Figure 6-24, routers and computers in the network have been configured according to the address configuration of the diagram. Router0 and Router1 Run the OSPF, both working in the area 0,router1 and Router2 running the EIGRP protocol.
You need to configure Router1 to route the EIGRP protocol to the ROUTER0 via the OSPF protocol, and configure Router1 to communicate the routes learned by the OSPF to EIGRP through the ROUTER2 protocol.
▲ Map 6-24 network topology for OSPF and EIGRP routing republishing
Action steps are as follows.
(1) View the routing table on Router0, Router1 and Router2, run the show ip route command, watch the routing table, and the Router1 routing table has routes to all networks.
(2) Configure the EIGRP to be posted to OSPF on the Router1.
Router1 (config) #router OSPF 1
Router1 (config-router) #redistribute eigrp metric Metric-type 1 Subnets
The above command assigns the route EIGRP 10 learned to the OSPF process 1. The measurement portion of the command assigns a measure to each reassigned route, and the measure is the OSPF value of 30. Reallocation makes Router1 the ASBR of the OSPF domain. The reassigned route is advertised as an external route. The command Metric-type section indicates that the external route is of type E1. The keyword subnets is used only when OSPF publishes a route, indicating the redistribution of the subnet details and, if not, reassigning only the primary network address.
(3) Configure OSPF to be published to EIGRP on the Router1.
Router1 (config) #router EIGRP 10
Router1 (config-router) #redistribute OSPF 1 metric 10000 100 255 1 1500
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Network/lyjs/
The above command assigns the routes learned by the OSPF protocol to EIGRP 10 and indicates the corresponding measures for EIGRP, in order of bandwidth, latency, reliability, load, and maximum transmission units.
(4) View the routing table on the Router0.
Router0#show IP route
Gateway of last resort are not set
10.0.0.0/30 is subnetted, 2 subnets
C 10.0.0.0 is directly connected, serial2/0
O 10.0.0.4 [110/1562] via 10.0.0.2, 00:25:23, serial2/0
172.16.0.0/24 is subnetted, 3 subnets
C 172.16.0.0 is directly connected, fastethernet0/0
C 172.16.1.0 is directly connected, fastethernet1/0
C 172.16.2.0 is directly connected, fastethernet6/0
O E1 192.168.0.0/24 [110/811] via 10.0.0.2, 00:03:04, serial2/0
--OSPF External Routing
(5) View the routing table on the Router2.
Router2#show IP route
Gateway of last resort are not set
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
D 10.0.0.0/8 is a summary, 04:13:01, Null0
D 10.0.0.0/30 [90/21024000] via 10.0.0.5, 04:13:01, serial3/0
C 10.0.0.4/30 is directly connected, serial3/0
172.16.0.0/24 is subnetted, 3 subnets
D EX 172.16.0.0 [170/20537600] via 10.0.0.5, 00:48:00, serial3/0
--EIGRP External Routing
D EX 172.16.1.0 [170/20537600] via 10.0.0.5, 00:48:00, serial3/0
--EIGRP External Routing
D EX 172.16.2.0 [170/20537600] via 10.0.0.5, 00:48:00, serial3/0
--EIGRP External Routing
C 192.168.0.0/24 is directly connected, fastethernet0/0
You can see the route of the OSPF publication learned through EIGRP, with a measure of 170.