Policy-Based Routing Commands
Examples
The following example enables PBR on interface FastEthernet 2:
XSR(config-if<F2>)#ip policy
The following example enables PBR on interface Dialer 57:
XSR(config-if<D57>)#ip policy
route-map pbr
This command adds or deletes PBR route‐map entries and acquires PBR Map configuration mode.
The following commands are subsets of Route Map PBR functionality:
•
match ip address -
definition.
•
set ip next-hop
command defintion.
•
set interface
defintion
Syntax
route-map pbr sequence-number
sequence-number
Syntax of the "no" Form
The no command deletes the specified policy entry or the whole policy table if no sequence
number is specified:
no route-map pbr [sequence-number]
Mode
Global configuration:
Next Mode
PBR Map configuration:
Example
In the following example, policy entry number 10 is created:
XSR(config)#route-map pbr 10
XSR(config-pbr-map)#
5-146 Configuring the Internet Protocol
Adds/deletes PBR match clauses. See page 5‐147 for command
‐ Adds or deletes PBR set clauses for the next‐hop router. See page 5‐147 for
‐ Adds or deletes PBR set clauses on an interface. See page 5‐148 for command
Sequential number of the policy entry in the PBR route map table.
XSR(config)#
XSR(config-pbr-map)#