User guide

Chapter 7 Line Configuration
Configuring Traffic Rules and Counters
SCE 1000 2xGBE Release 2.0.10 User Guide
OL-7117-02 7-7
Count bytes: the counter is incremented by the number of bytes in the packet for each packet
it counts.
Configuring Traffic Counters
A traffic counter must be created before it can be referenced in a traffic rule. Use the following
commands to create and delete traffic counters.
To create a traffic counter:
Step 1 From the SCE 1000(config if)# prompt, type traffic-counter name
<name> (count-bytes|count-packets)
To delete a traffic counter:
Step 1 From the SCE 1000(config if)# prompt, type no traffic-counter name
<name>
Note that a traffic counter cannot be deleted if it is used by any existing traffic rule.
To delete all existing traffic counters:
Step 1 From the SCE 1000(config if)# prompt, type no traffic-counter all
Configuring Traffic Rules
Use the following commands to create and delete traffic rules.
To create a traffic rule:
Step 1 From the SCE 1000(config if)# prompt, type traffic-rule name <name> IP-
addresses (all|(subscriber-side <IP specification> network-
side <IP specification>)) protocol <protocol> ports
(all|(subscriber-side <port specification> network-side
<port specification>)) flags <flags specification> direction
<direction> traffic-counter <traffic-counter> [action
<action>]
Where the command options are defined as follows:
IP specification: