373
Specifying a policy for interface PBR
You can specify only one policy for interface PBR and must make sure the specified policy already
exists.
Before you can apply a new policy to an interface, you must first remove the current policy from the
interface.
You can apply a policy to multiple interfaces.
To specify a policy for interface PBR on an interface:
1. Enter system
view.
system-view
N/A
2. Enter interface
view.
interface
interface-type interface-number N/A
3. Specify a policy
for interface
PBR.
ip policy-based-route
policy-name
By default, no interface policy is
applied to an interface.
Displaying and maintaining PBR
Execute display commands in any view and reset commands in user view.
Display PBR policy information.
display ip policy-based-route
[
policy
policy-name ]
Display PBR configuration.
display ip policy-based-route setup
Display local PBR configuration and statistics.
display ip policy-based-route local
[
slot
slot-number ]
Display interface PBR configuration and
statistics.
display ip policy-based-route interface
interface-type
interface-number [
slot
slot-number ]
Clear PBR statistics.
reset ip policy-based-route statistics
[
policy
policy-name ]
PBR configuration examples
Packet type-based local PBR configuration example
Network requirements
As shown in Figure 87, Switch B and Switch C cannot reach each other.
Configure PBR on Switch A to forward all TCP packets to the next hop 1.1.2.2 (Switch B).