
128
| Command Line Reference | SmartNA-X 1G/10G Modular
SmartNA-X
™
1G/10G User Guide 1.4
©
2015 Network Critical Solutions Limited
CONTROLLER>
Define a filter that matches any packets with a pre-defined custom field ("CF-1") value of 123 . Review and commit to the
system.
CONTROLLER>
set filter "Example filter" any customfield "CF-1" 123
CONTROLLER>
show filters
Use commit command to configure the switch with these.
filters
Example filter : any
customField
CF-1 : 123
...
CONTROLLER>
commit
Committing maps and vline
Committing filters
CONTROLLER>
set filter anyip
Use the
set filter anyip
command to create filters for packets that match packets of ether-type IPv4 or IPv6. The filter can
be further refined by specifying IP layer 2, 3 and/or layer 4 headers, plus any user pre-defined custom fields within the IP
scope.
Syntax
set filter
filter-name
anyip
[
VLAN
tag
] [
PCP
level
] [
MAC
src
mac-id
] [
MAC
dest
mac-id
] [
MAC
either
mac-id
] [
Protocol
protocol-number or name
] [
DSCP
class
] [
Customfield
custom-field-name
value
]
set filter
filter-name
anyip
protocol
TCP
[
Port
src
port-number
] [
Port
dest
port-number
] [
Port
either
port-
number
] [
cwr
flag-value
] [
ece
flag-value
] [
urg
flag-value
] [
ack
flag-value
] [
psh
flag-value
] [
rst
flag-value
] [
syn
flag-value
] [
fin
flag-value
] {
other filtering options
}
set filter
filter-name
anyip
protocol
{
UDP
|
TCP
|
TCP_UDP
|
SCTP
} [
Port
src
port-number
] [
Port
dest
port-
number
] [
Port
either
port-number
] {
other filtering options
}
set filter
filter-name
anyip
protocol
ICMPV4
[
ICMP
type
type-value
] [
ICMP
code
code-value
] {
other filtering
options
}
Parameters
filter-name
Specify a unique, case-sensitive, name for the filter. The name may contain spaces, but if it does it must be
contained in quotes "..." (the name cannot itself contain quotes).
VLAN
tag
Filter by Virtual LAN (VLAN) tag. Use one of the following formats to specify a single or multiple tags:
•
100
single tag
•
100–110
inclusive tag range
•
0/1
a value/mask tag pair (here all even tags)
•
100,150
several tags (use commas to separate values, no spaces)
PCP
level
Filter by Priority Code Point (user priority) from a VLAN header.
You may use the following formats when specifying levels:
• 2—A single level
• 2-4—An inclusive range
• 0/1—A value/mask pair (here all even)
• 0,2—Multiple levels (use commas to separate values, no spaces)