130
| Command Line Reference | SmartNA-X 1G/10G Modular
SmartNA-X
™
1G/10G User Guide 1.4
©
2015 Network Critical Solutions Limited
Committing maps and vline
Committing filters
CONTROLLER>
Define a filter that matches IP packets with the TCP RST flag set. Review and commit to the system.
CONTROLLER>
set filter "Example filter" anyip protocol tcp rst 1
CONTROLLER>
show filters
Use commit command to configure the switch with these.
filters
Example filter
packetType : anyip
protocol : 6
rst : 1
CONTROLLER>
commit
Committing maps and vline
Committing filters
CONTROLLER>
Define a filter that matches IP packets with UDP port 161 as the destination. Review and commit to the system.
CONTROLLER>
set filter "Example filter" anyip protocol UDP port dest 161
CONTROLLER>
show filters
Use commit command to configure the switch with these.
filters
Example filter
packetType : anyip
protocol : 17
port
destination : 161
CONTROLLER>
commit
Committing maps and vline
Committing filters
CONTROLLER>
set filter ipv4
Use the
set filter ipv4
command to create filters for packets that match packets of ether-type IPv4. The filter can be
further refined by specifying IPv4 layer 2, 3 and/or layer 4 headers, plus any user pre-defined custom fields that are within
the IPv4 scope.
Syntax
set filter
filter-name
IPv4
[
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
]
Fragmented
{
0
|
1
} [
Protocol
protocol-number or name
] [
DSCP
class
] [
Customfield
custom-field-name
value
]
set filter
filter-name
IPv4
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
IPv4
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
IPv4
protocol
ICMPv4
[
ICMP
type
type-value
] [
ICMP
code
code-value
] {
other filtering
options
}