Reference Guide

Table Of Contents
Command Mode CONFIGURATION
Usage
Information
The no version of this command deletes the tracked object from an interface.
Example
OS10# track 100
Supported
Releases
10.3.0E or later
Policy-based routing
Policy-based routing (PBR) provides a mechanism to redirect IPv4 and IPv6 data packets based on the policies defined to
override the switchs forwarding decisions based on the routing table.
Policy-based route-maps
A route-map is an ordered set of rules that control the redistribution of IP routes into a protocol domain. When you enable PBR
on an interface, all IPv4 or IPv6 data packets received are processed based on the policies that you define in the route-maps.
The rules defined in the route-maps are based on access control lists (ACLs) and next-hop addresses, and only apply to ACLs
used in policy-based routing.
You can create a route-map that specifies the match criteria and the resulting action if all the match clauses are met. After
you create the route-map, you can enable PBR for that route-map on a specific interface. Route-maps contain match and set
statements that you can mark as permit.
Access-list to match route-map
You can assign an IPv4 or IPv6 access-list to match a route-map.
The IP access list contains the criteria to match the traffic content based on the header field, such as destination IP or source
IP.
When permit or deny is present in the access-list, it is omitted and the action present in the route-map command
is used for policy-based routing. permit in the route-map statement indicates policy-based routing, as where deny in the
route-map statement indicates a switch-based forwarding decisionPBR exception. Access-list is used only for the packet
match criteria in policy-based routing.
1. Assign an access-list to match the route-map in CONFIGURATION mode.
ip access-list access-list-name
2. Set the IP address to match the access-list in IP-ACL mode.
permit ip ip-address
Configure IPv4 access-list to match route-map
OS10(config)# ip access-list acl5
OS10(conf-ipv4-acl)# permit ip 10.10.10.0/24 any
Configure IPv6 access-list to match route-map
OS10(config)# ipv6 access-list acl8
OS10(conf-ipv6-acl)# permit ipv6 10::10 any
Set address to match route-map
You can set an IPv4 or IPv6 address to match a route-map.
Layer 3
441