cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
578
Views
4
Helpful
7
Replies

Policy Base Routing / Static Routing

athar_iqbal
Level 1
Level 1

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

Following

1. Internet traffic hit 192.168.20.1

2. internal mpls traffic hit 192.168.120.1

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

I tried the simplest way static routing

10.1.0.0 255.255.0.0 192.168.120.1

ip route 0.0.0.0 0.0.0.0 192.168.20.1

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

7 Replies 7

I'm not sure if I understand you.

I see traffic with the destination 10.1.0.0/16 need to go to 192.168.120.1; all others should go to 192.168.168.20.1.

where is the problem with static routing?

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

Sebastian

Problem is that the 2 vlan

192.168.120/23

192.168.20/23

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

Thanks

Athar

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 10.1.0.0 0.0.255.255 any eq www

NEXT configure policy-based routing

(config)#route-map Routing-www

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

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

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 :

http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_46_se/configuration/guide/swiprout.html#wp1039882

hope this help..

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

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...

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

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

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: