7-33
Cisco SCE 8000 10GBE Software Configuration Guide
OL-30621-02
Chapter 7 Configuring Line Interfaces
Configuring Traffic Rules and Counters
From the SCE(config if)# prompt, type:
Example for Configuring a Traffic Rule
This example creates a traffic rule called rule2:
•
Name—rule2
•
IP addresses—subscriber side:all, network side: all
•
Protocol—TCP
•
Tunnel ID all
•
Direction—downstream
•
Traffic counter—counter2
•
Action—block
The actions that are performed are counting and blocking.
SCE>
enable 10
Password:<cisco>
SCE #
config
SCE(config)#
interface linecard 0
SCE(config if)#
traffic-rule name rule2 ipv6 ip-addresses subscriber-side all network-side
all protocol tcp tunnel-id all direction downstream traffic-counter name counter2 action
block
SCE(config if)
How to Delete a Traffic Rule
From the SCE(config if)# prompt, enter:
How to Delete All Traffic Rules
From the SCE(config if)# prompt, enter:
Command
Purpose
traffic-rule name
name
ipv6 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.
Command
Purpose
no traffic-rule name
name
Removes the specified traffic rule.
Command
Purpose
no traffic-rule all
Removes all existing traffic rules.