Apply a QoS policy globally
You can apply a QoS policy globally to the inbound or outbound direction of all ports.
To apply a QoS policy globally:
To do...
1.
Enter system view.
2.
Apply a QoS policy globally.
NOTE:
For more information about the qos apply policy command, see
Displaying and maintaining traffic mirroring
To do...
Display traffic behavior
configuration information
Display QoS policy configuration
information
Configuring traffic mirroring examples
Mirroring traffic to an interface example
Network requirements
On the network as shown in
connected to GigabitEthernet1/0/1 of the switch; a data monitoring device is connected to
GigabitEthernet1/0/2 of the switch.
Monitor and analyze packets sent by Host A on the data monitoring device.
Figure 71 Network diagram for configuring traffic mirroring to a port
Configuration procedure
Configure Switch:
Use the command...
system-view
qos apply policy policy-name
global { inbound | outbound }
Use the command...
display traffic behavior user-
defined [ behavior-name ]
display qos policy user-defined
[ policy-name [ classifier tcl-
name ] ]
Figure
71, Host A (with the IP address 192.168.0.1) and Host B are
192
Remarks
—
Required.
ACL and QoS Command Reference
Remarks
Available in any view
Available in any view
.