Re: policy routing and ip nexy-hop

From: Hansang Bae (hbae@xxxxxxxxxx)
Date: Sat Mar 02 2002 - 15:12:21 GMT-3


   
At 11:45 PM 3/1/2002 -0800, garry baker wrote:
>I have run into a problem with policy routing and ip
>next hop. i have a frame network that is not fully
[snip]

[from comp.dcom.sys.cisco FAQ]

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 should 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:51 GMT-3