Connectivity Guide
Match clauses:
ip address (access-lists): acl1
Set clauses:
ip vrf red next-hop 1.1.1.1 track-id 200
Sample conguration
Consider a scenario where trac from source IP address 1.1.1.1 ingresses through VLAN40 that is part of VRF RED. The egress interface for
this trac is also on the same VRF RED with IP address 4.4.4.4, as shown.
Using the following PBR conguration, you can re-direct trac 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 specied 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 trac 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 conguration 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 congure tracking over the routes that are reachable through a VRF instance:
1 Congure object tracking.
Layer 3
597