Policy-Based Routing Commands
5-146 Configuring the Internet Protocol
Examples
ThefollowingexampleenablesPBRoninterface FastEthernet2:
XSR(config-if<F2>)#ip policy
ThefollowingexampleenablesPBRoninterface Dialer57:
XSR(config-if<D57>)#ip policy
route-map pbr
ThiscommandaddsordeletesPBRroute‐mapentriesandacquiresPBRMapconfigurationmode.
ThefollowingcommandsaresubsetsofRouteMapPBRfunctionality:
•
match ip address -Adds/deletesPBRmatchclauses.Seepage5‐147forcommand
definition.
•
set ip next-hop‐AddsordeletesPBRsetclausesforthenext‐hoprouter.Seepage5‐147for
commanddefintion.
•
set interface‐AddsordeletesPBRsetclausesonaninterface.Seepage5‐148forcommand
defintion
Syntax
route-map pbr sequence-number
Syntax of the “no” Form
Thenocommanddeletesthespecifiedpolicyentryorthewholepolicytableifnosequence
numberisspecified:
no route-map pbr [sequence-number]
Mode
Globalconfiguration:XSR(config)#
Next Mode
PBRMapconfiguration:XSR(config-pbr-map)#
Example
Inthefollowingexample,policyentrynumber10iscreated:
XSR(config)#route-map pbr 10
XSR(config-pbr-map)#
sequence-number
SequentialnumberofthepolicyentryinthePBRroutemaptable.