Route traffic based on the PORT #

Unanswered Question
May 29th, 2007
User Badges:

Hello all,

I need to setup a rule on a router. Any SMTP traffic destined for a certain I.P address must route traffic to a certain address. The Ip Route command can route traffic based on source and destination I.P addressing, but how can I filter this traffic based on port 25 (smtp)?


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.5 (4 ratings)
mohammedmahmoud Tue, 05/29/2007 - 10:55
User Badges:
  • Green, 3000 points or more


You can do PBR (Policy Based Routing), as it is the only mean of source based routing, kindly check the following links and please do come back if you have further questions:

Policy-Based Routing

Configuring Policy-Based Routing

HTH, please do rate all helpful replies,

Mohammed Mahmoud.

ankbhasi Tue, 05/29/2007 - 11:01
User Badges:
  • Cisco Employee,

Hi Danny,

IP route command can only route based on destination and not source. To achieve souce based routing and based on some port nunbers also you have to configure PBR which is policy base routing.



danny9797 Tue, 05/29/2007 - 13:06
User Badges:

thank you both.

sry, I got confused with something when I mentioned the source routing

mohammedmahmoud Tue, 05/29/2007 - 13:09
User Badges:
  • Green, 3000 points or more

Hi Dan,

You are very welcomed, please do come back if you have further questions.


Mohammed Mahmoud.


This Discussion