Connectivity Guide

Table Of Contents
{ip | ipv6} policy route-map route-map-name
7. View the route-map information.
show route-map
OS10(conf-if-vl-40)# do show route-map
route-map test, permit, sequence 10
Match clauses:
ip address (access-lists): acl1
Set clauses:
ip vrf red next-hop 1.1.1.1 track-id 200
Sample configuration
Consider a scenario where traffic from source IP address 1.1.1.1 ingresses through VLAN40 that is part of VRF RED. The egress
interface for this traffic is also on the same VRF RED with IP address 4.4.4.4, as shown.
Using the following PBR configuration, you can re-direct traffic 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 specified 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 traffic 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 configuration on the interface.
OS10(conf-if-vl-40)# show configuration
!
interface vlan40
no shutdown
ip policy route-map test
!
Layer 3
571