Re: Policy Routing config (50% working)

From: Hansang Bae (hbae@xxxxxxxxxx)
Date: Sat Mar 09 2002 - 01:27:24 GMT-3


   
At 01:11 AM 3/8/2002 -0800, Jeongwoo Park wrote:
>Hi all
>My policy routing is only 50% working.
>R1------R2--------R3
>R2 is doing policy routing.
>Here is the config of three routers and testing result.
>Take a look at it and see what makes it working only 50%.
>
>Tha

[Snip]

I didn't go through your entire config but here are some general tips:

**************************************************************************

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:56:57 GMT-3