12 match source-address mac, 13 match srcip, 14 match srcl4port – PLANET WGS3-2820 User Manual
Page 388
User’s Manual of WGS3-2820/WGS3-5220
388
except for the one specified here).
▫
Default None
▫
Format
match [not] protocol {
▫
Mode
Class-Map Config
9.4.12 match source-address mac
This command adds to the specified class definition a match condition based on the source MAC address of a packet. The
parameter is any layer 2 MAC address formatted as six, two-digit hexadecimal numbers separated by colons (e.g.,
00:11:22:dd:ee:ff). The
formatted as six, two-digit hexadecimal numbers separated by colons (e.g., ff:07:23:ff:fe:dc). The optional [not] parameter has
the effect of negating this match condition for the class (i.e., match all source MAC addresses except for what is specified here).
▫
Default None
▫
Format
match [not] source-address mac
▫
Mode
Class-Map Config
9.4.13 match srcip
This command adds to the specified class definition a match condition based on the source IP address of a packet. The
parameter specifies an IP address. The
resembles a standard subnet mask, this bit mask need not be contiguous. The optional [not] parameter has the effect of
negating this match condition for the class (i.e., match all source IP addresses except for what is specified here).
▫
Default None
▫
Format
match [not] srcip
▫
Mode
Class-Map Config
9.4.14 match srcl4port
This command adds to the specified class definition a match condition based on the source layer 4 port of a packet using a
single keyword or numeric notation or a numeric range notation.
To specify the match condition as a single keyword notation, the value for
keywords (listed below).
The currently supported
these translates into its equivalent port number, which is used as both the start and end of a port range.
To specify the match condition as a numeric value, one layer 4 port number is required. The port number is an integer from 0 to
65535.
To specify the match condition as a range, rwo layer 4 port numbers are required and together they specify a contiguous port
range. Each port number is an integer from 0 to 65535, but with the added requirement that the second number be equal to or
greater than the first. The optional [not] parameter has the effect of negating this match condition for the class (i.e., match all
source layer 4 ports except for those within the range specified here).
The optional [not] parameter has the effect of negating this match condition for the class (i.e., match all source layer 4 port
numbers except for the one specified here).
▫
Default None