Pbr configuration examples, Configuring local pbr based on packet type, Network requirements – H3C Technologies H3C S10500 Series Switches User Manual
Page 390: Configuration procedure

375
To do…
Use the command…
Remarks
Display QoS policy configuration on
the specified interface or on all
interfaces
display qos policy interface [ interface-type
interface-number ] [ inbound | outbound ] [ | { begin
| exclude | include } regular-expression ]
Available in
any view
Display VLAN QoS policy
information in standalone mode
display qos vlan-policy { name policy-name | vlan
vlan-id } [ slot slot-number ] [ inbound | outbound ]
[ | { begin | exclude | include } regular-expression ]
Available in
any view
Display VLAN QoS policy
information in IRF mode
display qos vlan-policy { name policy-name | vlan
[ vlan-id ] } [ chassis chassis-number slot
slot-number ] [ inbound | outbound ] [ | { begin |
exclude | include } regular-expression ]
Available in
any view
Display information about global
QoS policies in standalone mode
display qos policy global [ slot slot-number ]
[ inbound | outbound ] [ | { begin | exclude |
include } regular-expression ]
Available in
user view
Display information about global
QoS policies in IRF mode
display qos policy global [ chassis chassis-number
slot slot-number ] [ inbound | outbound ] [ | { begin
| exclude | include } regular-expression ]
Available in
any view
PBR configuration examples
Configuring local PBR based on packet type
Network requirements
As shown in
, configure PBR on Switch A, so that all TCP packets are forwarded to next hop
1.1.2.2 and other packets are forwarded according to the routing table.
Switch A is directly connected to Switch B and Switch C. Switch B and Switch C are unreachable to each
other.
Figure 119 Network diagram for local PBR based on packet type
Configuration procedure
1.
Configure Switch A.
# Define ACL 3101 to match TCP packets.
[SwitchA] acl number 3101
[SwitchA-acl-adv-3101] rule permit tcp
[SwitchA-acl-adv-3101] quit
# Configure Node 5 of policy aaa to forward TCP packets to next hop 1.1.2.2.
[SwitchA] policy-based-route aaa permit node 5