cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3904
Views
5
Helpful
3
Replies

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

CCDECCDE9
Level 1
Level 1

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

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

View solution in original post

3 Replies 3

Nagendra Kumar Nainar
Cisco Employee
Cisco Employee

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

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

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco