I have a need for traffic to a certain 10.x.x.x network to take another path to get to it. Unfortunately, EIGRP was set up where the entire 10.0.0.0/8 network was used. With directly connected networks taking precedence, the static route is not used. Instead of going through EIGRP, and reconfiguring it with all of the pertinent networks (and leave off the network that will use the static route), is there a different way to do this? Thanks for any help!
If all the traffic to the specific network arrives on the same interface you could use PBR to override the routing table for the specific traffic eg.
access-list 101 permit ip any 10.10.11.0 0.0.0.255
route-map PBR permit 10
match ip address 101
set ip next-hop x.x.x.x
and then apply the route-map to interface the traffic arrives on.
If the router is seeing the routes as directly connected then this is not an EIGRP issue. A static route will always take precedence over an EIGRP learned route.
Perhaps you could clarify ?
Thanks for your reply! I completely forgot about the use of PBR's. They do take precedence! This particular VLAN hangs directly off of the L3 switch that I need to add the PBR to. So it's not really learned, and is directly connected. Hope that clarifies a bit better. Again, thanks for your help!
I don't know what exactly your situation is but if you want to make a route more preferred, bear in mind that longest match is always considered to be better. So you can make static route more preferred even over the directly connected just by typing in more specific routes.
Thanks for the reply! That's another good option! I could use this option for testing the static routes, until I can get the PBR put into place! Thank you!