Configuring an IPv4 PBR Policy by Setting a VRF-aware Next Hop in a Route Map

The following steps configure a next hop in a VRF for a route map.

A VRF must be configured and an interface must be assigned to the VRF before setting a VRF-aware next hop in a route map.

  1. Enter the configure terminal command to enter global configuration mode.
    device# configure terminal
  2. Define the required IPv4 ACLs to be added to the route map.
    device(config)# ip access-list standard 99 
    device(config-std-ipacl-99)# permit 10.157.23.0 0.0.0.255
    device(config-std-ipacl-99)# exit
  3. Enter the route-map command to define the route and specify the match criteria and the resulting action if all of the match clauses are met.
    device(config)# route-map test-route permit 99
  4. Add IPv4 ACLs to match the IP address that is permitted by the ACL.
    device(config-routemap test-route)# match ip address 99
  5. Set the configured VRF as the next hop for a route map.
    device(config-routemap test-route)# set ip next-hop 192.168.3.1 vrf vrf_c