Redistribute static route into EIGRP re-distribute Static Lab

Redistribute static route into EIGRP

In an inter-network environment, normally you have a single routing-protocol for ease of controlling your network. But when you are connecting the multiple networks, branch office with each other then there may be the different routing protocol.
Route Redistribution permits routes from one routing-protocol to be advertised in-to another routing-protocol. The routing protocol which receives these redistributed-routes are normally marked the routes as external-routes. External-routes are generally less preferred than locally originated-routes.
You can redistribute routes from one routing protocol to same routing protocol, like two separate OSPF with different process ID’s.
Redistribute static route into EIGRP
Similarly you can redistribute static routes and connected interfaces into a routing protocol as well. This article is about the redistributing the static routes into EIGRP process. For simplicity and clear understanding I have designed a lab in GNS3.
Lab Objectives

We have three routers R1, R2 and R3. R1 and R3 are running with EIGRP and our objective is to redistribute the static routes from R2 into EIGRP so that these can be available at R3 as external routes.
I have configured this lab on GNS3 with following configurations:
Configurations on R2

R2(config)#interface f0/0
R2(config-if)#ip address 50.0.0.1 255.255.255.0
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#interface loopback 1
R2(config-if)#ip address 10.10.10.1 255.255.255.0
R2(config-if)#interface loopback 2
R2(config-if)#ip address 20.10.10.1 255.255.255.0
R2(config-if)#interface loopback 3
R2(config-if)#ip address 30.10.10.1 255.255.255.0
R2(config-if)#interface loopback 4
R2(config-if)#ip address 40.10.10.1 255.255.255.0

Configuration of static routes for not directly connected routes:
For static route configurations you are required to advertise destination network with next hop address via static route command as following:
R2(config)#ip route 150.0.0.0 255.255.255.0 50.0.0.2
R2(config)#ip route 100.10.10.0 255.255.255.0 50.0.0.2
R2(config)#ip route 200.10.10.0 255.255.255.0 50.0.0.2


Configurations on R3
R3(config)#int f0/0
R3(config-if)#ip address 150.0.0.2 255.255.255.0
R3(config-if)#no shut
R3(config)#int loopback 1
R3(config-if)#ip address 100.10.10.1 255.255.255.0
R3(config-if)#exit
R3(config)#int loopback 2
R3(config-if)#ip address 200.10.10.1 255.255.255.0
R3(config-if)#exit

R3(config)#router eigrp 10
R3(config-router)#network 150.0.0.0 0.0.0.255
R3(config-router)#network 100.10.10.0 0.0.0.255
R3(config-router)#network 200.10.10.0 0.0.0.255

Configurations on R1

R1(config)#int f1/0
R1(config-if)#ip address 50.0.0.2 255.255.255.0
R1(config-if)#no shutdown
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 150.0.0.1 255.255.255.0

R1(config)#router eigrp 10
R1(config-router)#network 150.0.0.0 0.0.0.255
R1(config-router)#network 50.0.0.0 0.0.0.255

R1(config)#ip route 10.10.10.0 255.255.255.0 50.0.0.1
R1(config)#ip route 20.10.10.0 255.255.255.0 50.0.0.1
R1(config)#ip route 30.10.10.0 255.255.255.0 50.0.0.1
R1(config)#ip route 40.10.10.0 255.255.255.0 50.0.0.1

Static Routes redistribution into EIGRP Configurations
For Static Routes redistribution into EIGRP you need to permit all the static routes with a route map which you want to redistribute into EIGRP. For this you are required a access-list with all IP which are going to redistribute in EIGRP.

R1(config)#access-list 7 permit 10.10.10.1
R1(config)#access-list 7 permit 20.10.10.1
R1(config)#access-list 7 permit 30.10.10.1
R1(config)#access-list 7 permit 40.10.10.1

R1(config)#route-map static-to-eigrp permit 10
R1(config-route-map)#match ip address 7

Redistribution Commands:

R1(config)#router eigrp 10
R1(config-route-map)# R1(config-router)#redistribute static route map static-to-eigrp
R1(config-route-map)# R1(config-router)#redistribute static metric 10000 1 255 1 1500 (not compulsory in case of static routes)

Testing and verification of configurations:
After the successful configurations you will find the static routes in R3’s routing table as the external routes:
Network 10.10.10.0, 20.10.10.0, 30.10.10.0 and 40.10.10.0 are the interfaces configured at R1 and after complete configuration you can find these routes in R3 routing table.
You can also perform an end to end ping for testing. Following are some other redistribution labs you can visit these as reference and learning.



No comments:

Post a Comment

UA-23728446-1