Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Policy-routing next hop question

HI

What I want to do is configure PBR on a LAN interface that receives users PC IP packets. If they match condition A, route the packet to the WAN interface.

If they match condition B, route the packet backout the LAN interface, to a next hop router connected to the same LAN the packet came from.

Is this possible ?

Cisco policy based routing (PBR) document says 'Policy routing is specified on the interface that receives the packets, not on the interface from which the packets are sent. '

This implies the packets cannot be forwarded out to the same interface they were received from.

Thanks

3 REPLIES
New Member

Re: Policy-routing next hop question

Yes, it is possible. The statement that you found about Policy Routing merely indicates where the "ip policy route-map" statement needs to go, which is at the interface where the packets that you wish to control are received. I've successfully implemented PBR in a manner which routes packets out of the same interface on which they were received several times.

New Member

Re: Policy-routing next hop question

To make it work simply include the IP address of the ethernet interfacre on the other router in the list of next hop addresses.

New Member

Re: Policy-routing next hop question

Example:

access-list 135 permit

access-list 140 permit

route-map traffic test 10

match ip address 135

set interface serial0

route-map traffic test 15

match ip address 140

set ip next-hop 1.1.1.1

exit

interface ethernet 0

ip policy route-map test

exit

129
Views
0
Helpful
3
Replies
CreatePlease to create content