xStack Gigabit Layer 3 Switch Command Line Interface Manual
create access_profile (packet content mask)
0xffffffff> | offset_16-31 <hex 0x0-0xffffffff> <hex 0x0-0xffffffff>
<hex 0x0-0xffffffff> <hex 0x0-0xffffffff> | offset_32-47 <hex 0x0-
0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-
0xffffffff> | offset_48-63 <hex 0x0-0xffffffff> <hex 0x0-0xffffffff>
<hex 0x0-0xffffffff> <hex 0x0-0xffffffff> | offset_64-79 <hex 0x0-
0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-
0xffffffff>} profile_id <value 1-8>}
Description
This command is used to identify packets by examining the Ethernet
packet header, by byte and then decide whether to filter or forward it,
based on the user’s configuration. The user will specify which bytes
to examine by entering them into the command, in hex form, and
then selecting whether to filter or forward them, using the
config
access_profile
command.
Parameters
packet_content_mask
– Specifies that the Switch will mask the
packet header beginning with the offset value specified as follows:
profile_id <value 1-8>
- Specifies an index number between 1 and 8
that will identify the access profile being created with this command.
Restrictions Only
administrator-level users can issue this command.
•
offset_0-15
– Enter a value in hex form to mask the packet
from the beginning of the packet to the 15th byte.
•
offset_16-31
- Enter a value in hex form to mask the packet
from byte 16 to byte 31.
•
offset_32-47
- Enter a value in hex form to mask the packet
from byte 32 to byte 47.
•
offset_48-63
- Enter a value in hex form to mask the packet
from byte 48 to byte 63.
•
offset_64-79
- Enter a value in hex form to mask the packet
from byte 64 to byte 79.
Example usage:
To create an access profile by packet content mask:
DGS-3324SRi:4#
DGS-3324SRi:4#create access_profile packet_content_mask offset_0-
15 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF offset_16-31
0xFFFF 0xFFFF0000 0xF 0xF000000 profile_id 3
Command: create access_profile packet_content_mask offset_0-15
0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF offset_16-31
0xFFFF 0xFFFF0000 0xF 0xF000000 profile_id 3
Success.
config access_profile profile_id (packet content mask)
Purpose
To configure the rule for a previously created access profile
command based on the packet content mask. Packet content masks
entered will specify certain bytes of the packet header to be
228