xStack
® 
DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 
90 
 
<hex 0x0-0xffff> - Enter the TCP source port mask value here. 
des_port_mask - Specify an IPv6 Layer 4 TCP destination port mask. 
<hex 0x0-0xffff> - Enter the TCP destination port mask value here. 
udp - (Optional) Specify that the rule applies to UDP traffic. (EI Mode Only) 
src_port_mask - Specify the UDP source port mask. 
<hex 0x0-0xffff> - Enter the UDP source port mask value here. 
dst_port_mask - Specify the UDP destination port mask. 
<hex 0x0-0xffff> - Enter the UDP destination port mask value here. 
icmp - (Optional) Specify a mask for ICMP filtering. (EI Mode Only) 
type - Specify the inclusion of the ICMP type field in the mask. 
code - Specify the inclusion of the ICMP code field in the mask. 
 
Restrictions 
Only Administrator, Operator and Power-User level users can issue this command. 
 
Example 
To create an access profile: 
DGS-3120-24TC:admin# create access_profile profile_id 1 profile_name t1 
ethernet vlan source_mac 00-00-00-00-00-01 destination_mac 00-00-00-00-00-02 
802.1p ethernet_type    
Command: create access_profile profile_id 1 profile_name 1 ethernet vlan 
source_mac 00-00-00-00-00-01 destination_mac 00-00-00-00-00-02 802.1p 
ethernet_type 
 
Success. 
 
DGS-3120-24TC:admin# create access_profile profile_id 2 profile_name 2 ip vlan 
source_ip_mask 20.0.0.0 destination_ip_mask 10.0.0.0 dscp icmp type code 
Command: create access_profile profile_id 2 profile_name t2 ip vlan 
source_ip_mask 20.0.0.0 destination_ip_mask 10.0.0.0 dscp icmp type code 
 
Success. 
 
DGS-3120-24TC:admin# create access_profile profile_id 4 profile_name 4 
packet_content_mask offset_chunk_1 3 0xFFFF offset_chunk_2 5 0xFF00 
offset_chunk_3 14 0xFFFF0000 offset_chunk_4 16 0xFF000000 
Command: create access_profile profile_id 4 profile_name 4 packet_content_mask 
offset_chunk_1 3 0xFFFF offset_chunk_2 5 0xFF00 offset_chunk_3 14 0xFFFF0000 
offset_chunk_4 16 0xFF000000 
 
Success. 
 
 
6-2  delete access_profile 
Description 
This command is used to delete access list profiles. This command can only delete profiles that 
were created using the ACL module.