Route Tagging
Problem
You want to tag specific routes to prevent routing loops while mutually redistributing routes between two routing protocols.
Solution
This example shows how to tag external routes in EIGRP:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#ip routeRouter1(config)#0.0.0.0 0.0.0.0 172.25.1.1access-list7permitRouter1(config)#0.0.0.0route-mapTAGGINGpermitRouter1(config-route-map)#10match ip addressRouter1(config-route-map)#7set tagRouter1(config-route-map)#5exitRouter1(config)#router eigrpRouter1(config-router)#55redistribute static route-mapRouter1(config-router)#TAGGINGexitRouter1(config)#endRouter1#
In this case, the external routes are static, but the same technique applies to routes learned through other routing protocols.
Discussion
You can only tag routes that EIGRP has learned from another routing protocol. As we saw when talking about route tags with RIP, EIGRP does not use these tags directly; it only distributes them. You would use these tags at network boundaries when redistributing routes into another routing process.
For instance, if our EIGRP network were being used as a transit network between two other routing protocols, we could tag routes learned from the first external network. We could then redistribute only the first network’s routes into the second external network. Similarly, we could redistribute only the second network’s routes into the first network. In this way, we could ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access