Eigrp Redistribute Static Route Map

Posted on  by 



  1. You can use route maps to do more sophisticated redistribution of routes into EIGRP: Router1# configure terminal Enter configuration commands, one per line.
  2. Router(config)#ip route 10.1.1.0 255.255.255.0 serial 0/0/0. Creates a static route for network 10.1.1.0/24 exiting out of interface Serial 0/0/0. Router(config)#router eigrp 10. Starts the EIGRP routing process. Router(config-router)#redistribute static. Redistributes static routes on this router into the EIGRP routing process.

In some instances you may have a core switch with a link to a WAN router exchanging routes using a dynamic routing protocol such as EIGRP, static routes to other routers and a default route to the internet firewall. You may not have the ability to run a routing protocol on the other routers so you may find yourself with a load of static IP addresses on the core switch. In order for the branch sites to have full visibility of the entire network we’d need to redistribute the static IP addresses into EIGRP. If we used the command “redistribute statics” on the core switch it would redistribute all static addresses including the default route, which would mean the branch sites would now route ALL traffic back to the central site. Depending on your scenario this may or may not be desired. We can control what subnets are redistributed into EIGRP by the use of a route-map in conjunction with a prefix-list.

I setup this scenario in a lab using GN3 and fully tested before implementing in the production network, I’d suggest you do the same.

Procedure

Before implementing the route map issue the “redistribute static” command on SWI1 and check the routing table on R1. You will notice the gateway of last resort is learnt via EIGRP

We want to control what statics we redistribute via EIGRP, so for now stop redistributing statics.

Create a prefix-list called “PERMIT” and specify the routes to be redistributed. You can add more subnets at a later, just create another entry in the prefix list (ensure the sequence number is increased for each new subnet)

Eigrp

Router eigrp 55 redistribute static route-map Static-Routes-ACL passive-interface GigabitEthernet0/0 passive-interface GigabitEthernet0/1 network 10.0.202.0 0.0.0.255.

Create a route-map called “PERMITTED-STATICS” and specify permit, then match ip addresses in the previously created prefix-list “PERMIT”. Add a second command to the route-map to “deny” all other (this will stop any route not specified in the route-map from being redistributed in EIGRP).

Eigrp Redistribute Static Route Map

Modify EIGRP and specify the route-map to use when redistributing statics.

Once the route-map is applied confirm the static routes are redistributed and the gateway of last resort is NOT set.


I have a network with the following configuration that is used to redistribute static routes into an EIGRP network.

We have a requirement to do some route slugging on a router in the high availability path. We need to lower the metric of the static route 40.0.0.0/24 this are being redistributed so that this becomes the preferred router for that route.

Question: What is the difference between the following two solutions:

Solution 1

Eigrp redistribute static route-map

Solution 2

Hint

Would you like to a hint ? [slider title=”Click Here”]Solution 1 is much better in a real network[/slider]

I will post the answer in a week or so. Answers in the comments and I will say why its the best solution.

Solution 2 will require you to issue the following:

and then

Route

to make these changes. Of course this removes all the routes from the routing table and will cause an outage. Whereas Solution 1 will not cause a routing tables to change and thus not cause an impact to services.

Router Eigrp Redistribute Static

For anyone who is learning Cisco networking, this might help to understand why detailed knowledge, “more than one way” and memorisation is important. By knowing it backwards, you spend your time thinking about other things rather than thinking only about the redistribution. Typically, people with limited skills will be happy with ANY solution, and not attempt to think of other ways of doing something that might be a better choice.

For mendicants in CCIE study: this iss why you need to know four different ways to do same thing. You learn to keep thinking about options, and the best choice. It’s been a valuable lesson for me.

Cisco Eigrp Redistribute Connected Route-map

Eigrp redistribute metric

Postscript

Eigrp Redistribute Connected Route-map

In this particular case (as Ivan Pepelnjak points out in the comments) the router had a couple of hundred static routes. When you delete and add that many routes you create a CPU and bandwidth hit as the routes are deleted and propagated. †In networks with slow bandwidth, this can cause service impacts as the routing updates can suck up bandwidth.

Eigrp Redistribute Static Route Map Eigrp

It’s a big knock on effect. You need to think of these things in real life to keep the network up all the time.





Coments are closed