D-Link xStackTM DGS/DXS-3300 Series Switch User Manual


 
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
222
create access_profile (packet content mask)
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:
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.
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.
Example usage:
To create an access profile by packet content mask:
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.
DGS-3324SRi:4#
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 identified by the
Switch. When the Switch recognizes a packet with the identical byte
as the one configured, it will either forward or filter the packet, based
on the users command entered here.
Syntax
config access_profile profile_id <value 1-8> [add access_id
[auto_assign | <value 1-65535>] packet_content {offset_0-15
<hex0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex
0x0-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-