xStack Gigabit Layer 3 Switch Command Line Interface Manual
config access_profile profile_id (packet content mask)
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
<value 1-100> 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-0xffffffff> <hex 0x0-
0xffffffff> <hex 0x0-0xffffffff> | offset_64-79 <hex 0x0-0xffffffff>
<hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex0x0-0xffffffff>} port
<port> [permit {priority <value 0-7> {replace_priority} |
replace_dscp <value 0-63> } | deny] delete <value 1-100>]
Description
This command is used to set the rule for a previously configured
access profile setting based on packet content mask. These rules
will determine if the Switch will forward or filter the identified packets,
based on user configuration specified in this command. Users will
set bytes to identify by entering them in hex form, offset from the first
byte of the packet.
Parameters
profile_id <value 1-8>
- Enter an integer between 1 and 8 that is
used to identify the access profile that will be configured with this
command. This value is assigned to the access profile when it is
created with the
create access_profile
command. The lower the
profile ID, the higher the priority the rule will be given.
add access_id <value 1-100>
- Adds an additional rule to the above
specified access profile. The value specifies the relative priority of
the additional rule. Up to 100 different rules may be configured for
the Packet Content access profile.
packet_content
– Specifies that the Switch will mask the packet
header beginning with the offset value specified as follows:
port <port>
- The access profile for Ethernet may be defined for each
port on the Switch. Up to 100 rules may be configured for each port.
The port list is specified by listing the switch ID number and the port
number on that switch, separated by a colon. For example, 1:3
specifies switch number 1, port 3. 2:4 specifies switch number 2,
port 4.
permit
– Specifies that packets that match the access profile are
permitted to be forwarded by the Switch.
•
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.
•
priority <value 0-7>
−
This parameter is specified if you want to
re-write the 802.1p default priority previously set in the Switch,
which is used to determine the CoS queue to which packets
229