6-13
Cisco SCE8000 Software Configuration Guide
OL-16479-02
Chapter 6 Configuring the Line Interface
Configuring Traffic Rules and Counters
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
Example 2
This example creates the following traffic rule:
• Name = rule2
• IP addresses: subscriber side = all IP addresses, network side = all IP addresses EXCEPT the subnet
10.10.10.0/24
• Protocol = TCP
• Ports: subscriber-side = 100-200, network-side = all
• Tunnel id = all
• Direction = downstream
• Traffic counter = counter2
• Action = Block
• The actions performed will be counting and blocking
The first command enables tunnel id mode.
SCE(config if)#traffic-rule tunnel-id-mode
SCE(config if)# traffic-rule name rule2 IP-addresses subscriber-side all network-side
all-but 10.10.10.0/24 protocol tcp ports subscriber-side 100:200 network-side all
tunnel-id all direction downstream traffic-counter name counter2 action block
Example 3
This example creates the following traffic rule:
• Name = rule3
• IP addresses: all
• Protocol = IS-IS
• Direction = upstream
• Traffic counter = none
• Action = ignore (required since traffic-counter = none)
• The only action performed will be Ignore.
SCE(config if)# traffic-rule name rule3 IP-addresses all protocol IS-IS direction upstream
traffic-counter none action ignore