R21xx-HP FlexFabric 11900 Network Management and Monitoring Configuration Guide
133
NOTE:
A
fter the precedin
g
confi
g
uration, you can use the display qos policy command in any view to view QoS
policy configuration.
Applying a QoS policy
Applying a QoS policy to an interface
By applying a QoS policy to an interface, you can mirror the traffic in a specified direction on the
interface. A policy can be applied to multiple interfaces, but in one direction (inbound or outbound) of
an interface, only one policy can be applied.
To apply a QoS policy to an interface:
Ste
p
Command
1. Enter system view.
system-view
2. Enter interface view.
interface interface-type interface-number
3. Apply a policy to the interface.
qos apply policy policy-name inbound
Applying a QoS policy to a VLAN
You can apply a QoS policy to a VLAN to mirror the traffic in a specified direction on all ports in the
VLAN.
To apply the QoS policy to a VLAN:
Ste
p
Command
1. Enter system view.
system-view
2. Apply a QoS policy to a VLAN.
qos vlan-policy policy-name vlan vlan-id-list inbound
Applying a QoS policy globally
You can apply a QoS policy globally to mirror the traffic in a specified direction on all ports.
To apply a QoS policy globally:
Ste
p
Command
1. Enter system view.
system-view
2. Apply a QoS policy globally.
qos apply policy policy-name global inbound
Configuring remote traffic mirroring
Configuring remote traffic mirroring on the source device
• Configuring traffic mirroring—Mirrors the matching packets to an interface (supposing port A) that
connects to the destination device. For more information about configuring traffic mirroring on the
source device, see "Configuring local traffic mirroring."










