7-29
Cisco SCE 8000 10GBE Software Configuration Guide
OL-30621-02
Chapter 7 Configuring Line Interfaces
Configuring Traffic Rules and Counters
Configuring Traffic Rules
Use the following commands to create and delete traffic rules.
•
How to Create a Traffic Rule for IPv4 Addresses, page 7-29
•
How to Create a Traffic Rule for IPv6 Addresses, page 7-32
•
How to Delete a Traffic Rule, page 7-33
•
How to Delete All Traffic Rules, page 7-33
•
How to Delete All Flow Control Traffic Rules, page 7-34
How to Create a Traffic Rule for IPv4 Addresses
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/all
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
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
VLAN Environment” section on page 7-16
, 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