C
L
I
R
OMMAND
INE
NTERFACE
EFERENCE
S
ET FILTER IPV
Use the set filter ipv4 command to create a filter for IPv4 packets. If no other conditions are specified, the filter
matches all packets of type IPv4. Additional IPv4 conditions can be specified to further refine the match
conditions. For example, specifying the VLAN number limits matches to those IPv4 packets which have the
specified VLAN header information. Multiple conditions can also be specified where all conditions must be
satisfied before a filter is considered a match. Packets matching an applied filter will either be passed or dropped,
depending the criteria specified in the set map command.
Command form
set filter name-string ipv4 [ipv4-conditions ...]
name-string
ipv4-conditions
|
4
Specifies the filter name. The name may contain spaces, but if it does, it must be
contained in quotes "..."; the name itself may not contain the quotes character.
Filter names are case-sensitive.
(Optional) Provides additional filtering conditions for the specified protocol. All
conditions must be satisfied for the filter to match. For IPv4 packets, the following
additional filtering conditions may be specified:
[
vl-value] (Optional) Filters on the specified value matching the VLAN number.
vlan
For vl-value, the following formats are recognized:
• 100 – A single tag
• 100–110 – A range (inclusive)
• 0/1 – A value/mask pair (here: all even tags)
• 100,150 – Multiple tags. Use commas (no spaces) to separate VLANs.
The following caveats should be noted when filtering by VLAN:
• When a filter is set to permit VID 1, untagged packets will still be forwarded.
• Tagged packets with a VID of 1 will be forwarded untagged.
• Tagged packets with a VID of 0 will be dropped by SmartNA-X.
[
mac src
MAC address. For mac-value, the following formats are recognized:
• 01:23:45:67:89:ab – A single address
• 01:23:45:67:89:ab,01:23:45:67:89:ac – Multiple addresses. Use commas (no
spaces) to separate addresses.
[
mac dest
destination MAC address.
[
mac either
source or destination MAC address.
[
protocol
protocol type. ptcl-value may be an Assigned Internet Protocol Number or one of the
following keywords:
S
NA™ 10G N
MART
mac-value] (Optional) Filters on the specified value matching the source
mac-value] (Optional) Filters on the specified value matching the
mac-value] (Optional) Filters on the specified value matching either the
ptcl-value] (Optional) Filters on the specified value matching the specified
,
,
TCP
UDP
ICMPV4
DRAFT
A
(S
ETWORK
CCESS
,
.
TCP_UDP
NA-X)
MART
139
Need help?
Do you have a question about the SmartNA-X and is the answer not in the manual?