R3303-HP HSR6800 Routers Layer 3 - IP Routing Configuration Guide

411
Task Command
Remarks
Display IPv6 PBR statistics (in IRF mode).
display ipv6 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.
Display IPv6 PBR policy information (in
standalone mode).
display ipv6 config policy-based-route
[ policy-name [ slot slot-number ] ] [ | { begin |
exclude | include } regular-expression ]
Available in any
view.
Display IPv6 PBR policy information (in
IRF mode).
display ipv6 config policy-based-route
[ policy-name [ chassis chassis-number slot
slot-number ] ] [ | { begin | exclude | include }
regular-expression ]
Available in any
view.
Clear IPv6 PBR statistics.
reset ipv6 policy-based-route statistics
[ policy-name ]
Available in user
view.
IPv6 PBR configuration examples
Configuring IPv6 local PBR based on packet type
Network requirements
As shown in Figure 113 , configure IPv6 local PBR on Router A to forward all locally generated TCP
packets through Serial 2/2/0. Router A forwards other IPv6 packets according to the routing table.
Figure 113 Network diagram
Configuration procedure
1. Configure Router A:
# Configure ACL 3001 to match TCP packets.
<RouterA> system-view
[RouterA] ipv6
[RouterA] acl ipv6 number 3001
[RouterA-acl6-adv-3001] rule permit tcp
[RouterA-acl6-adv-3001] quit
# Configure Node 5 of policy aaa, so that TCP packets are forwarded through Serial 2/2/0.
[RouterA] ipv6 policy-based-route aaa permit node 5
[RouterA-pbr6-aaa-5] if-match acl6 3001
[RouterA-pbr6-aaa-5] apply output-interface serial 2/2/0
[RouterA-pbr6-aaa-5] quit
# Configure IPv6 local PBR by applying policy aaa on Router A.