05-20-2002 01:25 PM - edited 03-01-2019 09:48 PM
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
05-20-2002 05:58 PM
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.
05-21-2002 02:40 AM
To make it work simply include the IP address of the ethernet interfacre on the other router in the list of next hop addresses.
05-25-2002 12:57 AM
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
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: