234
If you do not specify a direction
qualifier, the
src or dst
qualifier
applies.
• src or dst—Matches the
destination IP address field.
NOTE:
The src or dst qualifier applies if you do not
specify a direction qualifier. For example,
port 23 is equivalent to src or dst port 23.
Type Specifies the direction type.
• host—Matches the IP address of a host.
• net—Matches an IP subnet.
• port—Matches a service port number.
• portrange—
range.
NOTE:
The host
qualifier applies if you do not
specify any type qualifier. For example, src
2.2.2.2 is equivalent to src host 2.2.2.2.
To specify an IPv6 subnet, you must specify
Others
Any other qualifiers than the
previously described qualifiers.
• broadcast—Matches broadcast packets.
• multicast—Matches m
broadcast packets.
• less—Matches packets that are less than
or equal to a specific size.
• greater—
greater than or equal to a specific size.
• len—Matches the packet length.
• vlan—Matches VLAN packets.
The broadcast, multicast, and all protocol qualifiers cannot modify variables.
Table 28 Variable types for capture filters
Integer
Represented in
decimal, or hexadecimal notation.
The
port 23
expression matches traffic sent to or
from port number 23.
Integer range
Represented
integers.
The
portrange 100-200
expression matches traffic
sent to or from any ports in the range of 100 to 200.
IPv4 address
Represented in
notation.
The
src 1.1.1.1
expression matches traffic sent
from the IPv4 host at 1.1.1.1.
IPv6 address
Represented in colon hexadecimal
notation.
The
dst host 1::1
expression matches traffic sent
to the IPv6 host at 1::1.
IPv4 subnet
Represented by an IPv4 network ID
or an IPv4 address with a mask.
Both of the following expressions match traffic sent
to or from the IPv4 subnet 1.1.1.0/24:
• src 1.1.1.
• src net 1.1.1.0/24.
IPv6 network
segment
Represented by an IPv6 address
with a prefix length.
The
dst net 1::/64
expression matches traffic sent
to the IPv6 network 1::/64.