The following steps configure an IPv4 PBR by setting an IPv4 address as the next hop in the route map.
Note
This task uses access-control lists (ACLs). For details about configuring ACLs, see the "ACLs" section of this publication.device# configure terminal
device(config)# ip access-list standard 99 device(conf-ipacl-std)# permit 192.168.0.0 255.255.255.0
device(conf-ipacl-std)# exit
device(config)# route-map test-route permit 99
device(config-route-map-test-route/permit/99)# match ip address acl 99
device(config-route-map-test-route/permit/99)# set ip next-hop 192.168.3.1
device(config-route-map-test-route/permit/99)# exit
device(config)# interface ethernet 1/1 device(conf-if-eth-1/1)# ip policy route-map test-route
device(config)# interface Ve 1 device(config-if-Ve-1)# ip policy route-map test-route
The following example shows the configuration steps to configure an IPv4 PBR by setting an IPv4 address as the next hop in the route map.
device# configure terminal device(config)# ip access-list standard 99 device(conf-ipacl-std)# permit 192.168.0.0 255.255.255.0 device(conf-ipacl-std)# exit device(config)# route-map test-route permit 99 device(config-route-map-test-route/permit/99)# match ip address acl 99 device(config-route-map-test-route/permit/99)# set ip next-hop 192.168.3.1 device(config-route-map-test-route/permit/99)# exit device(config)# interface ethernet 1/1 device(conf-if-eth-1/1)# ip policy route-map test-route device(conf-if-eth-1/1)# end