Connectivity Guide

Match clauses:
ip address (access-lists): acl1
Set clauses:
ip vrf red next-hop 1.1.1.1 track-id 200
Sample conguration
Consider a scenario where trac from source IP address 1.1.1.1 ingresses through VLAN40 that is part of VRF RED. The egress interface for
this trac is also on the same VRF RED with IP address 4.4.4.4, as shown.
Using the following PBR conguration, you can re-direct trac ingresssing to VRF RED to a destination that is reachable through the next-
hop IP address 2.2.2.2 in VRF BLUE:
1 Create a route-map.
OS10(config)# route-map test
2 Enter the IP address to match the specied access list.
OS10(config-route-map)# match ip 4.4.4.4 acl1
3 Set the next-hop address to 2.2.2.2, which is reachable through VRF BLUE.
OS10(config-route-map)#
OS10(config-route-map)# set ip vrf BLUE next-hop 2.2.2.2
OS10(config-route-map)# exit
4 Apply this rule to the interface where the trac ingresses, in this case VLAN40.
OS10(config)# interface vlan 40
OS10(conf-if-vl-40)#
OS10(conf-if-vl-40)# ip policy route-map test
5 (Optional) View the PBR conguration on the interface.
OS10(conf-if-vl-40)# show configuration
!
interface vlan40
no shutdown
ip policy route-map test
!
Track route reachability
Track IPv4 or IPv6 reachablility using object tracking. To congure tracking over the routes that are reachable through a VRF instance:
1 Congure object tracking.
Layer 3
597