Task
Display information about local
PBR and interface PBR.
Display PBR configuration.
Display PBR statistics.
Clear PBR statistics.
PBR configuration examples
Configuring local PBR based on packet type
Network requirements
As shown in
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.
Figure
75, configure local PBR on Router A to forward all locally generated TCP packets
Command
display ip policy-based-route [ | { begin |
exclude | include } regular-expression ]
display ip policy-based-route setup
{ interface interface-type interface-number |
local | policy-name } [ | { begin | exclude |
include } regular-expression ]
display ip policy-based-route statistics
{ interface interface-type interface-number |
local } [ | { begin | exclude | include }
regular-expression ]
reset policy-based-route statistics
[ policy-name ]
265
Remarks
Available in any view.
Available in any view.
Available in any view.
Available in user view.