How to configure Policy Based Routing

Hello Durga

Yes it is possible to configure multiple routing policies under a single route-map for a single interface. You just have to create multiple route map statements with statement numbers and match multiple access lists and set the next hop IP to a different value for each.

For example:

Create three access lists that match specific criteria:

access-list 188 permit ip host 172.25.5.1 any
access-list 188 deny ip any any

access-list 189 permit ip host 172.25.5.2 any
access-list 189 deny ip any any
 
access-list 190 permit ip host 172.25.5.3 any
access-list 190 deny ip any any

Then, create a route map (named TEST-RM for this example) with three statements, one for each case:

route-map TEST-RM permit 10
match ip address 188 
set ip next-hop 172.30.100.33
  
route-map TEST-RM permit 20
match ip address 189 
set ip next-hop 172.29.100.33
  
route-map TEST-RM permit 30
match ip address 190 
set ip next-hop 172.28.100.1

Finally, enable the policies on the interface:

interface GigabitEthernet3/0/0
 ip policy route-map TEST-RM in

I hope this has been helpful!

Laz

1 Like