R2511-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V5)

265
Task Command
Remarks
Display information about local
PBR and interface PBR.
display ip policy-based-route [ | { begin |
exclude | include } regular-expression ]
Available in any view.
Display PBR configuration.
display ip policy-based-route setup
{ interface interface-type interface-number |
local | policy-name } [ | { begin | exclude |
include } regular-expression ]
Available in any view.
Display PBR statistics.
display ip policy-based-route statistics
{ interface interface-type interface-number |
local } [ | { begin | exclude | include }
regular-expression ]
Available in any view.
Clear PBR statistics.
reset policy-based-route statistics
[ policy-name ]
Available in user view.
PBR configuration examples
Configuring local PBR based on packet type
Network requirements
As shown in Figure 75, configure local PBR on Router A to forward all locally generated TCP packets
through Serial 2/0. Router A forwards other packets according to the routing table.
Figure 75 Network diagram
Configuration procedure
1. Configure Router A:
# Configure ACL 3101 to match TCP packets.
<RouterA> system-view
[RouterA] acl number 3101
[RouterA-acl-adv-3101] rule permit tcp
[RouterA-acl-adv-3101] quit
# Configure Node 5 for policy aaa to forward TCP packets through Serial 2/0.
[RouterA] policy-based-route aaa permit node 5
[RouterA-pbr-aaa-5] if-match acl 3101
[RouterA-pbr-aaa-5] apply output-interface serial 2/0
[RouterA-pbr-aaa-5] quit
# Configure local PBR by applying policy aaa on Router A.
[RouterA] ip local policy-based-route aaa
# Configure the IP addresses of the serial interfaces.