Configuration Example: Route Redistribution for IPv4
Figure 4-3 shows the network topology for the configuration that follows, which demonstrates how to configure single point two-way basic redistribution between EIGRP and OSPF for IPv4, using the commands covered in this chapter. For this configuration example, assume that EIGRP and OSPF routing has been configured correctly on all four routers.
Figure 4-3 Network Topology for IPv4 Route Redistribution
MONTREAL(config)#router eigrp 10 |
Enters EIGRP configuration mode. |
MONTREAL(config-router)#redistribute ospf 1 metric 1500 10 255 1 1500 |
Redistributes routes from OSPF process ID 1 into EIGRP AS 10 and assigns a seed metric to these routes. |
MONTREAL(config-router)#exit |
Returns to global configuration mode. |
MONTREAL(config)#router ospf 1 |
Enters OSPF configuration mode. |
MONTREAL(config-router)#redistribute eigrp 10 subnets |
Redistributes classless routes from EIGRP autonomous system 10 into OSPF process ID 1 as external type 2 (E2) with a metric of 20, which is fixed and does not change across the OSPF domain. |
NOTE: Omitting the subnets key-word is a common configuration error. Without this keyword, only networks in the routing table with a classful mask will be redistributed. Subnets will not be redistributed, and subnets will not be automatically summarized and redistributed. |
|
MONTREAL(config-router)#redistribute eigrp 10 metric-type 1 subnets |
Redistributes classless routes from EIGRP autonomous system 10 into OSPF process ID 1 as external type 1 (E1). Type 1 external routes calculate the cost by adding the external cost (20) to the internal cost of each link that the packet crosses. |