![background image](http://html.mh-extra.com/html/cisco/sce-1000-and/sce-1000-and_configuration-manual_64496186.webp)
6-20
Cisco SCE 2000 and SCE 1000 Software Configuration Guide
OL-7827-12
Chapter 6 Configuring the Line Interface
Configuring Traffic Rules and Counters
How to Create a Traffic Counter
Options
The following options are available:
•
name
—The name of the counter
•
Count packets
— the counter is incremented by 1 for each packet it counts.
•
Count bytes
— the counter is incremented by the number of bytes in the packet for each packet it
counts.
Step 1
From the SCE(config if)# prompt, type
traffic-counter name
name
count-bytes|count-packets
and
press
Enter
.
Adds a traffic counter with the specified name and counting mode.
How to Delete a Traffic Counter
Step 1
From the SCE(config if)# prompt, type
no traffic-counter name
name
and press
Enter
.
Note that a traffic counter cannot be deleted if it is used by any existing traffic rule.
How to Delete all Existing Traffic Counters
Step 1
From the SCE(config if)# prompt, type
no traffic-counter all
and press
Enter
.
Removes all traffic counters.
Note that a traffic counter cannot be deleted if it is used by any existing traffic rule.
Configuring Traffic Rules
Use the following commands to create and delete traffic rules.
•
How to Create a Traffic Rule, page 6-20
•
How to Delete a Traffic Rule, page 6-24
•
How to Delete all Traffic Rules, page 6-24
•
How to Delete All Flow Control Traffic Rules, page 6-24
How to Create a Traffic Rule
•
Options, page 6-21
•
Configuring Traffic Rules: Examples, page 6-22