R0106-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V7)

361
You can apply a policy to multiple interfaces.
To configure interface PBR:
Ste
p
Command Remarks
1. Enter system
view.
system-view N/A
2. Enter interface
view.
interface interface-type interface-number N/A
3. Apply a policy to
the interface.
ip policy-based-route policy-name
By default, no policy is applied to the
interface.
Displaying and maintaining PBR
Execute display commands in any view and reset commands in user view.
Task Command
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
(MSR2000/MSR3000).
display ip policy-based-route local
Display local PBR configuration and statistics
(MSR4000).
display ip policy-based-route local [ slot slot-number ]
Display interface PBR configuration and
statistics (MSR2000/MSR3000).
display ip policy-based-route interface interface-type
interface-number
Display interface PBR configuration and
statistics (MSR4000).
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 84, configure PBR on Router A to forward all TCP packets to the next hop 1.1.2.2.
Router A forwards other packets according to the routing table.
Figure 84 Network diagram