xStack
®
DGS-3120 Series Managed Switch CLI Reference Guide
93
vlan_id - Specify the VLAN ID used for this configuration.
<vlanid 1-4094> - Enter the VLAN ID used here. This value must be between 1 and 4094.
permit - Specify that packets matching the access rule are permitted by the Switch.
priority - (Optional) Specify that the priority of the packet will change if the packet matches the
- Enter the priority value here. This value must be between 0 and 7.
replace_priority - (Optional) Specify that the 802.1p priority of the outgoing packet will be
replaced.
replace_dscp_with - (Optional) Specify that the DSCP of the outgoing packet is changed with
the new value. If using this action without an action priority, the packet will be sent to the
default TC.
<value 0-63> - Enter the replace DSCP with value here. This value must be between 0 and
63.
replace_tos_precedence_with - (Optional) Specify that the IP precedence of the outgoing
packet is changed with the new value. If used without an action priority, the packet is sent to
the default TC.
<value 0-7> - Enter the replace ToS precedence with value here. This value must be between
counter - (Optional) Specify whether the ACL counter feature is enabled or disabled. This
parameter is optional. The default option is disabled. If the rule is not bound with the
flow_meter, all matching packets are counted. If the rule is bound with the flow_meter, then
the “counter” is overridden.
enable - Specify that the ACL counter feature will be enabled.
disable - Specify that the ACL counter feature will be disabled.
deny - Specify that packets matching the access rule are filtered by the Switch.
mirror - Specify that packets matching the access rules are copied to the mirror port.
time_range - (Optional) Specify the name of the time range entry.
<range_name 32> - Enter the time range name here. This name can be up to 32 characters
delete - Specify that a profile or a rule will be deleted.
access_id - Specify the index of the access list entry. The value range is 1-256, but the
supported maximum number of entries depends on the project. If the auto_assign option is
selected, the access ID is automatically assigned, when adding multiple ports.
<value 1-256> - Enter the access ID used here. This value must be between 1 and 256.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.
Example
To configure a rule entry for a packet content mask profile (option 3):
DGS-3120-24TC:admin# config access_profile profile_id 5 add access_id
auto_assign packet_content offset5 0xF0 port all deny
Command: config access_profile profile_id 5 add access_id auto_assign
packet_content offset5 0xF0 port all deny
Success.
DGS-3120-24TC:admin#
6-4 show access_profile
Description
This command is used to display the current access list table.