SmartNA-X 1G/10G Modular | Command Line Reference |
129
SmartNA-X
™
1G/10G User Guide 1.4
©
2015 Network Critical Solutions Limited
MAC
src
,
dest
,
either
mac-id
Filter by MAC address source, destination, or either. Use one of the following formats to
specify a single MAC address or multiple MAC addresses:
•
01:23:45:67:89:ab
•
01:23:45:67:89:ab,01:23:45:67:89:ac
(use commas to separate values, no spaces)
Protocol
protocol-number or name
Filter by IP protocol number. You may also use the following names in place of the
number: TCP (6), UDP (17), ICMPv4 (1), SCTP (132), and TCP_UDP (6 and 17). The following number formats are
recognised:
• 1—A single protocol
• 1-2—An inclusive range
• 0/1—A value/mask pair (here: all even protocols)
• 6,17—Multiple protocols (use commas to separate values, no spaces). Multiple protocols may each use a range or
mask.
DSCP
code
Filter by DSCP code. The following code formats are recognized:
• 10—a single code point
• 10–14—An inclusive range
• 0/1—a value/mask pair
• 10,12,14—multiple code points (use commas to separate values, no spaces). Code points may each use a range or
mask.
Port
src
,
dest
,
either
port-number
Filter by TCP/UDP port number when protocol number 6 (TCP), 17 (UDP) or SCTP
(132) is specified in Layer 3.
You may enter either a single specification to find packets where either the source or the destination port matches, or
separate specifications for source and/or destination port. Common TCP ports include:
• 80, 8080—HTTP
• 443—HTTPS
• 25—SMTP
• 20-21—FTP
• 989, 990—FTPS
• 22—SSH
• 23—Telnet
FIN, SYN, RST, PSH, ACK, URG, ECE, CWR
value
Filter on the specified flag when filtering by TCP packets
(protocol number 6). For each flag the following values may be set:
• 0—Flag not set
• 1—Flag set
Customfield
custom-field-name
value
Filter by custom field if a compatible field has been defined. The value entered
here must be within the scope of the field length defined for the custom field. For example, if the custom field was defined
with an 8-bit length, then values of 0-255 are permitted.
Examples
Define a filter that matches IP packets with VLAN tag 21. Review and commit to the system.
CONTROLLER>
set filter "Example filter" anyip vlan 21
CONTROLLER>
show filters
Use commit command to configure the switch with these.
filters
Example filter
packetType : anyip
vlan : 21
CONTROLLER>
commit