From: Hansang Bae (hbae@xxxxxxxxxx)
Date: Tue May 28 2002 - 21:40:05 GMT-3
>>A question about the policy routing.
>>For example , I want the SNA packet was routed to s0, and
>>HTTP packet was routed to s1. Somebody told me could do it
>>with policy routing. But how to do it. Anybody could teach
>>me? And if anyone has more better way,teach me,please.
How are you 'routing' SNA packets? Is it via DLSw+ or are you bridging? The s
ample below will get you going in the right direction. Note that policy routin
g occurs on an INBOUND basis.
From: Question 95
Date: 02 February 2002
Subject: How do I use Policy Based Routing?
Answer by: Hansang Bae <hbae_@_nyc.rr.com.REMOVE_>
Keep in mind that Policy routing works on the INBOUND interface. If you think
about it, it makes sense. The decision to hand off the packet has to be made
as it's coming into the router and not on the egress interface.
!Determine who's eligible to be policy routed
!
access-list 1 permit 10.1.1.0 0.0.0.255
!
!Figure out where you want to send the pkts based on the source IP
!
route-map RouteMeBaby permit 10
!To whom shoud this policy apply to?
match ip address 1
!
!Where should you redirect it to? Should use both. If one is
!omitted, the value will be retrived from the routing table -
!which may or may not be what you wanted
!
set ip next-hop ROUTER_2's_SERIAL_IP
set interface s0
!
interface E0
ip addr blah blah blah
ip policy route-map RouteMeBaby
! If your IOS supports it, enable fast switching for PBR
ip route-cache policy
*IF* fast switching is supported (may be 11.3 an up or it could be 12.0
and up... do a
sho ip cache policy
if not, do a
sho ip policy
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:59:11 GMT-3