R3303-HP HSR6800 Routers Layer 3 - IP Routing Configuration Guide
282
Task Command
Remarks
Display PBR statistics (in IRF mode).
display ip policy-based-route
statistics { interface interface-type
interface-number | local } [ chassis
chassis-number slot slot-number ] [ |
{ 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 84, configure local PBR on Router A to forward all locally generated TCP packets
through Serial 2/2/0. Router A forwards other packets according to the routing table.
Figure 84 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/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/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.
[RouterA] interface serial 2/2/0
[RouterA-Serial2/2/0] ip address 1.1.2.1 255.255.255.0
[RouterA-Serial2/2/0] quit
[RouterA] interface serial 2/2/1