SmartNA-X 1G/10G Modular | Command Line Reference |
133
SmartNA-X
™
1G/10G User Guide 1.4
©
2015 Network Critical Solutions Limited
port
source : 80,8080,443
ipv4
source : 10.10.0.*
destination : 192.168.0.*
CONTROLLER>
commit
Committing maps and vline
Committing filters
CONTROLLER>
Define a filter that matches IPv4 packets with an ICMP type field of 6, and a pre-defined custom field (called "CF-1")
value of 8. Review and commit to the system.
CONTROLLER>
set filter "Example filter" ipv4 protocol icmpv4 icmp type 6 customfield "CF-1" 8
CONTROLLER>
show filters
Use commit command to configure the switch with these.
filters
Example filter
packetType : ipv4
protocol : 1
icmpType : 6
customField
CF-1 : 8
CONTROLLER>
commit
Committing maps and vline
Committing filters
CONTROLLER>
set filter ipv6
Use the
set filter ipv6
command to create filters for packets that match packets of ether-type IPv6. The filter can be
further refined by specifying IPv6 layer 2, 3 and/or layer 4 headers, plus any user pre-defined custom fields within the
IPv6 scope.
Syntax
set filter
filter-name
IPv6
[
VLAN
tag
] [
PCP
level
] [
MAC
src
mac-id
] [
MAC
dest
mac-id
] [
MAC
either
mac-
id
] [
Address
src
ip
] [
Address
dest
ip
] [
Address
either
ip
] [
Protocol
protocol-number or name
] [
DSCP
class
] [
Customfield
custom-field-name
value
]
set filter
filter-name
IPv6
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
IPv6
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
IPv6
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)