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

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.

Advanced Routing route by application


I have a high cost/low speed/low latency and a low cost/high speed/high latency wan link. I would like route low importance applications like http over the low cost wan link while high importance applications which use tcp 21->23 for terminal connections to go though the high cost wan link.

I can achieve this easy enough with linux using iptables to mark a packet and create a routing rule to route to a interface associated with this mark.

Can I achieve anything similar with a cisco router?

New Member

Re: Advanced Routing route by application

You can achieve the same with a Cisco router by using Policy Based Routing (PBR). PBR overrides routing decisions based on the IP routing table with policy routing. I assume you have a single LAN interface and IP address and two serial interfaces and IP addresses:

LAN Interface:

ip policy route-map POLICY

-> you apply PBR to the interface

route-map POLICY permit 10

match ip address HighPrio

set ip default next-hop 1stSerial 2nd Serial

-> you define your policy in a route map. You match your high priority traffic and define the IP next-hop as the 1st serial interface (or IP@). You define the 2nd serial interface as backup next hop.

ip access-list HighPrio

permit ip source IP@ any eq source port

-> you describe your high priority traffic using an access list whre you specify the source IP address of your high priority traffic and the port of your high priority traffic.

Please verify the mentioned commands in the configuration guides for PBR and access-list, but it should help to clarify the logic.

In my view, PBR is often not the best solution of these situations, but you houls think of implementing Quality of Service instead (see a previous conversation where the same issue was discussed:

HTH, Thomas

Re: Advanced Routing route by application

Thanks very much for the usefull and detailed reply.