Policy Base Routing / Static Routing

Unanswered Question
Oct 16th, 2008
User Badges:

I am having trouble configuring my switches to go to different gateways


1. Internet traffic hit

2. internal mpls traffic hit

I have cisco 3750 switches and ip routing is enabled on it.

I tried the simplest way static routing

ip route

I tried with the route map but could not able to apply to a route as I dont have a router.

I need some kind of global packet routing configration

Any help would really be appreciated

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (1 ratings)
Sebastian Helmer Thu, 10/16/2008 - 10:23
User Badges:
  • Silver, 250 points or more

I'm not sure if I understand you.

I see traffic with the destination need to go to; all others should go to

where is the problem with static routing?

You need interfaces of course in both subnets 120.x and 20.x


athar_iqbal Thu, 10/16/2008 - 11:05
User Badges:

Problem is that the 2 vlan



needs to communicate to each other which is happening but seperating the traffic is not happening

all of my clients will be in 120 network

tunnel traffic will go through the 120 network

but HTTP traffic needs to go through 20 network but it does not work.

All the 20 needs to go through with their on gateway.

I don't know how to route the traffic accordingly

Both T1 are connected to different routers



Sebastian Helmer Thu, 10/16/2008 - 11:36
User Badges:
  • Silver, 250 points or more

Hello Athar!

I think you should use policy-based routing

First create an access-list to match the www traffic

(config)#ip access-list extended Routing-www

(config-...)#permit tcp any eq www

NEXT configure policy-based routing

(config)#route-map Routing-www

(config...)#match ip address Routing-www

(config...)#set ip next-hop

I think this would help you but i never check it before. Only whith normal routing and not only for www.

reference (last topic)Configuring Policy-Based Routing :


hope this help..

athar_iqbal Thu, 10/16/2008 - 11:59
User Badges:

Hi S.helmer,

Thanks buddy but I got stuck to a problem that policy needs to be applied to an interface and I dont have interface as my routing is done through the 3750 and I might be mixing the interface with the physical interface

Any help is appreciated

Sebastian Helmer Thu, 10/16/2008 - 20:42
User Badges:
  • Silver, 250 points or more

I'm confused...if you don't have interfaces you can't route...or? The situation is not clear for me or it is to early in the mornging ;-)...sorry...

Take a look on the policy routing options maybe onother helpy you. e.g. not nex-hop you will use out of this interface, vlan, else...

sdoremus33 Sat, 10/18/2008 - 07:55
User Badges:
  • Bronze, 100 points or more

wouldnt you route via SVI meaning on interfac e Ex: fa0/# no switchport access

give interface name Ex: Vlan#

ip address x.x.x.x y.y.y.y

ip default-gateway z.z.z.z

Does the switch have some sort of Sup-3 module for access routing that way you can

1) Define access-list based on srv traffic

2) Define Set cmd to match interface for orouting. HTH

sdoremus33 Sat, 10/18/2008 - 08:00
User Badges:
  • Bronze, 100 points or more

So basically when you create interfaces --> VLan's

1) Permit line to read 10,20,etc

2) Then set an access list for 192.168.20.x via WWW, .120 for MPLS

3) Based on access list on the match clause you would integrate them into a set clause for interface ex:--- Vlan interfaces you created via SVI


This Discussion