Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

What is preferred ?Static route or Route MAP----Thanks

Hi

I have static route and route map configured on this Cisco 4000 series switch for the same destination(172.24.0.0/16) from same sources(10.32.0.0/16).Which path will traffic take to reach the destination.This SWITCH has VLAN interfaces for 144.1.4.x , 10.32.254.x  ,10.32.0.x

ip route 172.24.0.0 255.255.0.0 144.1.4.85

access-list 1 permit ip 10.32.0.0  255.255.0.0 172.24.0.0 255.255.0.0
route-map BRANCH permit 10
match ip address 1
set ip  next-hop 10.32.254.5

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Silver

Re: What is preferred ?Static route or Route MAP----Thanks

Hello,

it depends from the set action used in the route-map if it doesn't use the default keyword traffic is policy routed unless next-hop is unreachable.

Clearly a mistyping error:

access-list 1 permit ip 10.32.0.0  255.255.0.0 172.24.0.0 255.255.0.0

this should be an extended ACL and you should use wildcards so the line could be written as

access-list 101 permit ip 10.32.0.0 0.0.0.255.255 172.24.0.0 0.0.255.255

Hope to help

Giuseppe

3 REPLIES
Cisco Employee

Re: What is preferred ?Static route or Route MAP----Thanks

Hi,

Policy based routing will be preferred over any routing table entry.

Only when your PBR fails, the router will look into routing table (irrespective of static/dynamic routing entry).

HTH,

Nagendra

New Member

Re: What is preferred ?Static route or Route MAP----Thanks

if you're using PBR please watch:

set ip next-hop

here we have:

  • does next-hop exists in routing table? then route according to PBR entry
  • if not: use routing table (e.g. default route)

set ip default next-hop

here we have:

  • next hop exists in routing table? if so: route according entry in routing table.
  • if not: use PBR route
Hall of Fame Super Silver

Re: What is preferred ?Static route or Route MAP----Thanks

Hello,

it depends from the set action used in the route-map if it doesn't use the default keyword traffic is policy routed unless next-hop is unreachable.

Clearly a mistyping error:

access-list 1 permit ip 10.32.0.0  255.255.0.0 172.24.0.0 255.255.0.0

this should be an extended ACL and you should use wildcards so the line could be written as

access-list 101 permit ip 10.32.0.0 0.0.0.255.255 172.24.0.0 0.0.255.255

Hope to help

Giuseppe

787
Views
0
Helpful
3
Replies