![background image](http://html.mh-extra.com/html/cisco/sce-1000-and/sce-1000-and_configuration-manual_64496187.webp)
6-21
Cisco SCE 2000 and SCE 1000 Software Configuration Guide
OL-7827-12
Chapter 6 Configuring the Line Interface
Configuring Traffic Rules and Counters
Options
The following options are available:
IP specification:
all|([all-but] (ip-address|ip-range))
•
ip-address
is a single IP address in dotted-decimal notation, such as 10.1.2.3
•
ip-range
is an IP subnet range, in the dotted-decimal notation followed by the number of significant
bits, such as 10.1.2.0/24.
•
Use the
all-but
keyword to exclude the specified IP address or range of IP addresses
protocol:
Any one of the following protocols:
TCP/UDP/ICMP/IGRP/EIGRP/IS-IS/OSPF/Other
port specification:
all|([all-but] (port#|port-range)
•
Specify the ports only if the protocol is either TCP or UDP.
•
Specify the port or port range for both the subscriber-side and the network-side.
•
Specify a range of ports using the form MinPort:MaxPort.
•
Use the all-but keyword to exclude the specified port or range of ports.
tunnel id specification:
all|([all-but] tunnel id)
•
tunnel id is an 8-bit Hex value range, in the format '(HEX)
Tunnel-id
' or '(HEX)
MinTunnelId
:(HEX)
MaxTunnelId
', which reflects the lower eight bits of the VLAN tag.
•
Tunnel-ID-based rules can only be used in "
VLAN symmetric classify
" mode see, and only when
tunnel id
mode is enabled.
Use the
traffic-rule tunnel-id-mode
command.
Note that the VLAN tag itself is a 12-bit value, and therefore aliasing of the lower 8 bits can occur,
depending on the VLAN tags used.
direction:
Any of the following:
upstream/downstream/both
traffic-counter:
Either of the following:
•
name
<name of an existing traffic counter>
— Packets meeting the criteria of the rule are to be
counted in the specified counter. If a counter name is defined, the “count” action is also defined
implicitly. The keyword
name
must appear as well as the actual name of the counter.
•
none
— If
none
is specified, then an action must be explicitly defined via the action option.
action: (not required if the action is count only)