![C-Data FD1216S Cli Manual Download Page 71](http://html.mh-extra.com/html/c-data/fd1216s/fd1216s_cli-manual_478227071.webp)
Company Address: Flat 6, Bldg 4,South 2 of Honghualing Industrial Zone,Liuxian Road, Xili Town, Shenzhen, Guangdong, China(518055)
Tel: +86-755-26014509/4710/4711 Fax:+86-755-26014506
Website: www.cdatatec.com
64
In the worktime period, the message that its ip address is 10.10.10.2 are redirect to port 2,
OLT(config)#
time
‐
range
worktime
8:00
to
18:00
working
‐
day
OLT(config)#
acl
2000
OLT(acl
‐
basic
‐
2000)#
rule
2
permit
source
10.10.10.2
0.0.0.0
time
‐
range
working
‐
day
OLT(acl
‐
basic
‐
2000)#
exit
OLT(config)# traffic-
redirect
inbound 2000 port ge 1 to ge 2
12.8
traffic
‐
statistic
【
Command
】
traffic
‐
statistic
(
inbound
|
outbound
)
acl
‐
id
[
rule
‐
id
rule
‐
id
]
port
(
ge
|
xge
)
port
‐
list
no
traffic
‐
statistic
(
inbound
|
outbound
)
acl
‐
id
[
rule
‐
id
rule
‐
id
]
port
(
ge
|
xge
)
port
‐
list
【
View
】
Config
view
【
Parameter
】
Inbound:
the
traffic
on
inbound
packets
of
the
interface
Outbound
:
the
traffic
on
outbound
packets
of
the
interface
rule
‐
id
:
the
rule
ID
of
ACL
acl
‐
id:
ACL
’
s
name
port
‐
list
:
ports
list
【
Description
】
traffic
‐
statistic
:
Command is used to configuration ACL statistics for specify the discharge port
and make it take effect. When you need to use the ACL rules on port traffic statistics, you can use
this command.
no
traffic
‐
statistic
:
Command is used to cancel the ACL traffic statistics of the specified port.
When you need to delete the ACL traffic statistics of the specified port, you can use this
command.
【
Example
】
In the worktime period, the messagethat its ip address is 10.10.10.2hava traffic statistics.And the
message is from port 1
OLT(config)#
time
‐
range
worktime
8:00
to
18:00
working
‐
day
OLT(config)#
acl
2000
OLT(acl
‐
basic
‐
2000)#
rule
2
permit
source
10.10.10.2
0.0.0.0
time
‐
range
working
‐
day
OLT(acl
‐
basic
‐
2000)#
exit
OLT(config)#
traffic
‐
statistic
inbound 2000 port ge 1
12.9
traffic
‐
statisticclear-counters
【
Command
】
traffic
‐
statistic
clear-counters
(
inbound
|
outbound
)
acl
‐
id
[
rule
‐
id
rule
‐
id
]
port
(
ge
|
xge
)
port
‐
list
【
View
】