07-05-2005 10:44 AM - edited 03-03-2019 09:58 AM
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.
07-05-2005 11:20 AM
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
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
07-05-2005 11:31 AM
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!
07-05-2005 11:47 AM
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
07-05-2005 12:00 PM
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
07-06-2005 02:55 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide