Re: policy routing

From: Bays John (bays_john@xxxxxxx)
Date: Wed Jan 17 2001 - 16:43:33 GMT-3


   
Correct me if I'm wrong, but the second route-map (20) statemenet is
un-necessary. If it doesn't match (10), it goes the default way.

Agree with Mike, need to apply the route-map to the interface from which the
IP listed in list 1 is arriving.
If you are using a loopback, make sure you used the extended ping and use the
loopback as your source!

John

>From Cisco Web (Note the Note at the END):

Policy-based routing is applied to incoming packets. All packets received on an
interface with policy-based routing enabled are considered for policy-based
routing. The router passes the packets through enhanced packet filters called
route maps. Based on the criteria defined in the route maps, packets are
forwarded/routed to the appropriate next hop.

Policy Route Maps

Each entry in a route map statement contains a combination of match and set
clauses/commands. The match clauses define the criteria for whether appropriate
packets meet the particular policy (that is, the conditions to be met). The set
clauses than explain how the packets should be routed once they have met the
match criteria.

For each combination of match and set commands in a route map statement, all
sequential match clauses must be met simultaneously by the packet for the set
clauses to be applied. There may be multiple sets of combinations of match and
set commands in a full route map statement.

The route map statements can also be marked as permit or deny. If the statement
is marked as a deny, the packets meeting the match criteria are sent back
through the normal forwarding channels (in other words, destination-based
routing is performed). Only if the statement is marked as permit and the
packets meet the match criteria are all the set clauses applied. If the
statement is marked as permit and the packets do not meet the match criteria,
then those packets are also forwarded through the normal routing channel.

Note Policy routing is specified on the interface that receives the packets,
not on the interface from which the packets are sent.

---END---

"Yurchenko, Michael" wrote:

> Steve,
>
> ip local policy only applies to the traffic originated at the router. In
> order to apply the policy to the interfaces you need to use ip policy
> route-map <route-map> from the interface config.
>
> Hope that helps.
>
> Mike.
> ccie# 6695
>
> -----Original Message-----
> From: Steve Clubb [mailto:sclubb@cattech.com]
> Sent: Wednesday, January 17, 2001 2:04 PM
> To: 'ccielab@groupstudy.com'
> Subject: policy routing
>
> Hey people -
>
> I have a situation where I want to forward traffic going to a certain subnet
> out an interface or to a next-hop IP. All other traffic to take the default
> route configured on the router. I can't use a static route. I tried this
> but it's not working. Any ideas?
>
> ip local policy route-map policy
> ip classless
> ip route 0.0.0.0 0.0.0.0 64.168.75.12
> !
> access-list 1 permit 137.20.0.0 0.0.255.255
> access-list 2 permit any
> !
> !
> !
> route-map policy permit 10
> match ip address 1
> set ip default next-hop 137.20.29.2
> !
> route-map policy permit 20
> match ip address 2
>
> Thanks,
>
> Steve



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:27:33 GMT-3