SmartNA-X 1G/10G Modular | Command Line Reference |
137
SmartNA-X
™
1G/10G User Guide 1.4
©
2015 Network Critical Solutions Limited
Use commit command to configure the switch with these.
filters
Example filter
packetType : arp
ipv4
source : 10.10.0.*
mac
destination : 01:23:45:67:89:ab,01:23:45:67:89:ac
CONTROLLER>
commit
Committing maps and vline
Committing filters
CONTROLLER>
Define a filter that matches ARP packets to destination 192.168.1.1 with a custom field ("CF-1") value of 7. Review and
commit to the system.
CONTROLLER>
set filter "Example filter" arp address dest 192.168.1.1 customfield "CF-1" 7
CONTROLLER>
show filters
Use commit command to configure the switch with these.
filters
Example filter
packetType : arp
ipv4
destination : 192.168.1.1
customField
CF-1 : 7
CONTROLLER>
commit
Committing maps and vline
Committing filters
CONTROLLER>
set filter mpls
Use the
set filter mpls
command to create filters for packets that match packets of ether-type MRP. The filter may be
further refined by specifying MPLS top-of-stack labels, plus any user pre-defined custom fields within the MPLS scope.
Syntax
set filter
filter-name
MPLS
[
Label
value
] [
Customfield
custom-field-name
value
]
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).
Label
value
Filter by MPLS top-of-stack label. Where the MPLS header for a packet contains multiple labels, this will
test the top label in the stack.
You may use the following formats when specifying labels:
• 100—A single label
• 100-110—An inclusive range
• 0/1—A value/mask pair (here: all even labels)
• 100, 150—Multiple labels (use commas to separate values, no spaces). Labels may each use a range or mask.
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.