Chapter 8 QoS Configuration
Configuring Traffic Mirroring
Command
Function
ZXR10(config)#
traffic-mirror in
<
acl-number
>
rule-id
<
rule-no
>{
cpu
|
interface
<
interface-num
>}
This configures traffic mirroring.
Example
This example shows the mirror data traffic whose source IP ad-
dress is 168.2.5.6 on the port gei_1/8 to the port gei_1/4.
ZXR10(config)#acl standard number 10
ZXR10(config-std-acl)#rule 1 permit 168.2.5.5
ZXR10(config-std-acl)#rule 2 permit 168.2.5.6
ZXR10(config-std-acl)#exit
ZXR10(config)#traffic-mirror in 10 rule-id 2 interface gei_1/4
ZXR10(config)#interface gei_1/8
ZXR10(config-gei_1/8)#ip access-group 10 in
ZXR10(config-gei_1/8)#exit
Configuring Tail-Drop
Command
Function
ZXR10(config)#
qos tail-drop
<
session-index
>
queue-id
<
queue-id
><
all-threshold
><
yellow-threshold
><
red-threshold
>
This configures the tail-drop
parameter.
To enable the tail-drop function on the port, use the following com-
mand.
drop-mode tail-drop
<
session-id
>
Example
This example shows the configuration of tail-drop. In queue 1:
Red packets tail-drop value is 120. Yellow packets tail-drop value
is 120. all packets tail-drop value is 240. This is configured on the
port gei_1/8.
ZXR10(config)#qos tail-drop 1 queue-id 1 240 120 120
ZXR10(config)#interface gei_1/8
ZXR10(config-gei_1/8# drop-mode tail-drop 1
Configuring Traffic Statistics
Command
Function
ZXR10(config)#
traffic-statistics
<
acl-number
>
rrulle-iid
<
rule-no
>
pkt-type
{
all
|
green
|
red
|
yellow
}
statistics-type
{
byte
|
packet
}
This configures traffic statistics.
Confidential and Proprietary Information of ZTE CORPORATION
77