How to configure Policy Based Routing

Hello David

It is possible to have multiple statements in a specific route map using the sequence numbers as you suggest. The route map in the lesson is this one:

R1(config)#route-map PBR_R1 permit 10
R1(config-route-map)#match ip address ICMP_R1
R1(config-route-map)#set ip next-hop 192.168.13.3

Let’s say you want to add a second statement that matches access list ICMP_R1a and you want to set the ip next-hop address to 192.168.12.2. You would add this second statement like so:

R1(config)#route-map PBR_R1 permit 20
R1(config-route-map)#match ip address ICMP_R1a
R1(config-route-map)#set ip next-hop 192.168.12.2

The result would be a single route map with multiple statements that are checked in sequence. If you took a look at the running config, you would see this route map shown as follows:

R1# show running-config
Building configuration...

Current configuration: 1325 bytes
!
!<-- output omitted - - >
!
route-map PBR_R1 permit 10
 match ip address ICMP_R1
 set ip next-hop 192.168.13.3
!
route-map PBR_R1 permit 20
 match ip address ICMP_R1a
 set ip next-hop 192.168.12.2
!

Each sequence appears as a separate entity in the configuration file, but all of it belongs to the same route map. Does that make sense?

I hope this has been helpful!

Laz