7-30
Cisco SCE 8000 10GBE Software Configuration Guide
OL-30621-02
Chapter 7 Configuring Line Interfaces
Configuring Traffic Rules and Counters
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)
One of the following:
•
block—
Block the specified traffic
•
ignore—
Bypass the specified traffic; traffic receives no service
•
quick-forwarding—
Forward delay-sensitive packets through the fast path while maintaining
serviceability for these packets
•
quick-forwarding-ignore—
Forward delay-sensitive packets through the fast path with no service
provided for these packets
•
flow-capture—
Capture the flow configured by this rule. No service to this flow
From the SCE(config if)# prompt, type:
Configuring Traffic Rules: Examples
•
•
•
•
Example 1
This example creates the following traffic rule:
•
Name = rule1
•
IP addresses: subscriber side = all IP addresses, network side = 10.10.10.10 only
•
Protocol = all
•
Direction = both
•
Traffic counter = counter1
•
The only action performed will be counting
SCE(config if)# traffic-rule name rule1 IP-addresses subscriber-side all network-side
10.10.10.10 protocol all direction both traffic-counter name counter1
Command
Purpose
traffic-rule name
name
IP-addresses (all|(subscriber-side
<IP specification>
network-side
<IP specification>
))
protocol
protocol
[ports subscriber-side
<port
specification>
network-side
<port specification>
]
[tunnel-id <
tunnel-id specification
>
] direction
direction
traffic-counter
<traffic-counter>
[action
action
]
Creates a traffic rule.