7-32
Cisco SCE 8000 10GBE Software Configuration Guide
OL-30621-02
Chapter 7 Configuring Line Interfaces
Configuring Traffic Rules and Counters
6.
Action = flow-capture
7.
The actions performed will be counting and flow capture.
SCE>enable 10
Password:<cisco>
SCE#configure
SCE(config)#interface linecard 0
SCE(config if)#
traffic-rule name
FlowCaptureRule
ip-addresses
subscriber-side all
network-side all
protocol
250
direction
both
traffic-counter name
counter2
action
flow-capture
SCE(config if)#
How to Create a Traffic Rule for IPv6 Addresses
Options
The following options are available:
IP specification:
all|(ip-address|ip-prefix)
•
ip-address
is a single IP address in the CIDR notation, such as A:B:C:D:E:F:G:H/I
•
ip-prefix
is an IP subnet range, in the CIDR notation, such as 2001:DB8:0:1:FFFF:1234::5.
protocol:
One of the following protocols:
TCP/UDP/all
port specification:
port
•
Specify the ports only if the protocol is either TCP or UDP.
•
Specify the port for both the subscriber-side and the network-side.
•
Create multiple rules if you plan to use multiple ports.
direction:
Any of the following:
upstream/downstream/both
traffic-counter:
Either of the following:
•
name
<name of an existing traffic counter>
— Packets that meet the traffice rule criteria are counted
in the specified counter. If a counter name is defined, the count action is also defined implicitly. The
name
keyword must also be displayed with the actual name of the counter.
•
none—
If
none
is specified, an action must be explicitly defined using the action option.
action:
(not required if the action is count only)
One of the following:
•
block
—
Block the specified traffic.
•
classical-open-flow-mode
—Use the classical open flow mode for the specified flow.
•
ignore
—
Bypass the specified traffic; traffic receives no service.