192
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…
Use the command… Remarks
1. Enter system view.
system-view —
2. Apply a QoS policy globally.
qos apply policy policy-name
global { inbound | outbound }
Required.
NOTE:
For more information about the qos apply policy command, see
ACL and
QoS Command Reference
.
Displaying and maintaining traffic mirroring
To do… Use the command… Remarks
Display traffic behavior
configuration information
display traffic behavior user-
defined [ behavior-name ]
Available in any view
Display QoS policy configuration
information
display qos policy user-defined
[ policy-name [ classifier tcl-
name ] ]
Available in any view
Configuring traffic mirroring examples
Mirroring traffic to an interface example
Network requirements
On the network as shown in Figure 71, Host A (with the IP address 192.168.0.1) and Host B are
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: