cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
661
Views
0
Helpful
5
Replies

Routing based on aplication

tasso.faria
Level 1
Level 1

Hello,

I have two serial ports. I want to route http traffic to serial 1 and the others traffics to the serial 2.

What feature I can use? Anyone can help me?

Tks a lot.

5 Replies 5

Richard Burts
Hall of Fame
Hall of Fame

There is a feature called Policy Based Routing that will do what you are asking about. To configure Policy Based routing you configure an access list that will identify (permit) the particular traffic that you are interested in (permit tcp eq www). You then configure a route map for policy routing. In the route map you have a match clause which references the access list and a set clause which sets the outbound interface. You then apply the route map to the interface on which the traffic enters the router.

If you set up the router so that the default route points to serial 2 you can set up PBR so that the set clause to serial 1 will send HTTP to that interface and all other traffic to serial 2.

HTH

Rick

HTH

Rick

Can I work with metrics? Per example, if the serial 1 goes down, the traffic can be routed to the serial 2?

Tks a lot, again!

One of the advantages of Policy Based Routing is that if the outbound interface set by PBR becomes not available then the traffic follows normal routing. So if PBR is sending HTTP to serial 1 and serial 1 goes down then the traffic will be sent through serial 2. You do not have to do anything special to achieve this. (Note that the process is somewhat more complicated if the outbound interface is a LAN interface like FastEthernet and this may require Object Tracking to achieve the result reliably, but for serial interfaces it is simple and it works.)

HTH

Rick

HTH

Rick

Hi ,

We can also configure something like this

route-map PBR permit 10

match ip address

set interface Serial1 Serial2

route-map PBR permit 20

match ip address

set interface Serial2 Serial1

In this case it will match the acces list and will try the first serial interface and if that serial interface goes down it will attempt the second serial interface.

HTH

Ankur

Hi,

And if you want to check next-hop availability before policy-routing is done, here is a sample config...

track 123 rtr 1 reachability

!

track 124 rtr 2 reachability

!

rtr 1

type echo protocol ipicmpecho y.y.y.y

rtr schedule 2 life forever start-time now

!

rtr 2

type echo protocol ipicmpecho x.x.x.x

rtr schedule 2 life forever start-time now

access-list 110 permit tcp z.z.z.z z.z.z.z eq xxx

route-map http permit 10

match ip address xxx

set ip next-hop verify-availability y.y.y.y 5 track 123

set ip next-hop verify-availability x.x.x.x 6 track 124

Regards