You can apply only one policy to an interface. Before you apply a new policy, you must first remove the
current policy from the interface.
You can apply a policy to multiple interfaces.
To configure interface PBR:
Step
1.
Enter system
view.
2.
Enter interface
view.
3.
Apply a policy
to the interface.
Displaying and maintaining PBR
Execute display commands in any view and reset commands in user view.
Task
Display PBR policy information.
Display PBR configuration.
Display local PBR configuration and statistics
(MSR2000/MSR3000).
Display local PBR configuration and statistics
(MSR4000).
Display interface PBR configuration and
statistics (MSR2000/MSR3000).
Display interface PBR configuration and
statistics (MSR4000).
Clear PBR statistics.
PBR configuration examples
Packet type-based local PBR configuration example
Network requirements
As shown in
Router A forwards other packets according to the routing table.
Command
system-view
interface interface-type interface-number
ip policy-based-route policy-name
Figure
77, configure PBR on Router A to forward all TCP packets to the next hop 1.1.2.2.
Remarks
N/A
N/A
By default, no policy is applied to the
interface.
Command
display ip policy-based-route [ policy policy-name ]
display ip policy-based-route setup
display ip policy-based-route local
display ip policy-based-route local [ slot slot-number ]
display ip policy-based-route interface interface-type
interface-number
display ip policy-based-route interface interface-type
interface-number [ slot slot-number ]
reset ip policy-based-route statistics [ policy policy-name ]
303