cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
351
Views
0
Helpful
3
Replies

Policy-routing next hop question

atlov
Level 1
Level 1

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 3

bzink
Level 1
Level 1

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.

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

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

Getting Started

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: