cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
157
Views
15
Helpful
4
Replies
Highlighted
Beginner

prefering 1 eigrp route over another

another dumb question, I guess.  I have a 2 routers, r1 and r2, connected to a layer 3 switch.  All 3 devices run eigrp.  I would like to send traffic from the layer 3 switch for a destination, say 10.1.1.0 255.255.255.0  to r1 and different traffic , say 10.2.2.0 255.255.255.0 to r2. In my eigrp routing table, I get all traffic going to r1, nothing to r2.  I've tried max paths, variance, hsrp, route-maps (route maps in the bgp section, since r1 and r2 also run bgp), static routes and I just can't seem to figure this out.   How do I go about doing this?

thanks,

 

4 REPLIES 4
Highlighted
Cisco Employee

You can use offset list matching routes and using some penalties to make that route worse.

How is it configured in the L3 switch? Is it the same SVI for both routers?

Is one SVI for R1 and another for R2?

If they're different SVI you can do this below.

 

 

access-list 99 permit 10.2.2.0 0.0.0.255

router eigrp x

offset-list 99 in XXX   vlan y

XXX => Value to be greater than the backup route

Y -> SVI connected to R1

 

This would make this specific route to have a penalty so the traffic would flow through R2.

 

 

Highlighted

Hello

You could also use PBR.

access-list 100 permit scr dest

route-map PBR permit 10

 match ip address 100
 set ip next-hop x.x.x.x
set ip next-hop verify-availability

 

res

Paul

 



kind regards
Paul

Please rate and mark posts accordingly if you have found any of the information provided useful.
It will hopefully assist others with similar issues in the future
Highlighted

hey, thanks, 3 different things I can try, just when I was thinking it couldn't be done.  thanks again.

Highlighted
Enthusiast

Another way is using administrative distance; you can modify it using :

router eigrp <as>

   distance <admin_dist>  <source_ip> <wild card mask> <acl>

You can give routes (or some routes) from r1 a worst admin distance; this way the switch will prefere routes from r2.

 

Bye,

enrico.

 

please rate if useful

 

Content for Community-Ad