xStack
® 
DGS-3120 Series Managed Switch CLI Reference Guide 
87 
 
vlan - (Optional) Specify a VLAN mask. Only the last 12 bits of the mask will be considered. 
<hex 0x0-0x0fff> -Enter the VLAN mask value here. 
source_ip_mask - (Optional) Specify a source IP address mask. 
<netmask> - Enter the source IP address mask here. 
destination_ip_mask - (Optional) Specify a destination IP address mask. 
<netmask>
 - Enter the destination IP address mask here. 
dscp - (Optional) Specify the DSCP mask. 
icmp - (Optional) Specify that the rule applies to ICMP traffic. 
type - Specify the type of ICMP traffic. 
code - Specify the code of ICMP traffic 
igmp - (Optional) Specify that the rule applies to IGMP traffic. 
type - Specify the type of IGMP traffic. 
tcp - (Optional) Specify that the rule applies to TCP traffic. 
src_port_mask - Specify the TCP source port mask. 
<hex 0x0-0xffff> - Enter the TCP source port mask here. 
dst_port_mask - Specify the TCP destination port mask. 
<hex 0x0-0xffff> - Enter the TCP destination port mask here. 
flag_mask - (Optional) Specify the TCP flag field mask. 
all – Specify that all the flags will be used for the TCP mask. 
urg – Specify that the TCP flag field will be set to ‘urg’. 
ack - Specify that the TCP flag field will be set to ‘ack’. 
psh - Specify that the TCP flag field will be set to ‘psh’. 
rst - Specify that the TCP flag field will be set to ‘rst’. 
syn - Specify that the TCP flag field will be set to ‘syn’. 
fin - Specify that the TCP flag field will be set to ‘fin’. 
udp - (Optional) Specify that the rule applies to UDP traffic. 
src_port_mask - Specify the UDP source port mask. 
<hex 0x0-0xffff> - Enter the UDP source port mask here. 
dst_port_mask - Specify the UDP destination port mask. 
<hex 0x0-0xffff> - Enter the UDP destination port mask here. 
protocol_id_mask - (Optional) Specify that the rule applies to IP protocol ID traffic. 
<0x0-0xff> - Enter the protocol ID mask here. 
user_define_mask - (Optional) Specify that the rule applies to the IP protocol ID, and that the 
mask option behind the IP header length is 20 bytes. 
<hex 0x0-0xffffffff> - Enter a user-defined mask value here. 
packet_content_mask - Specify the packet content mask. Only one packet_content_mask profile 
can be created. 
offset_chunk_1 - (Optional) Specify that the offset chunk 1 will be used. 
<value 0-31> - Enter the offset chunk 1 value here. This value must be between 0 and 31. 
<hex 0x0-0xffffffff> - Enter the offset chunk 1 mask here. 
offset_chunk_2 - (Optional) Specify that the offset chunk 2 will be used. 
<value 0-31> - Enter the offset chunk 2 value here. This value must be between 0 and 31. 
<hex 0x0-0xffffffff> - Enter the offset chunk 2 mask here. 
offset_chunk_3 - (Optional) Specify that the offset chunk 3 will be used. 
<value 0-31> - Enter the offset chunk 3 value here. This value must be between 0 and 31. 
<hex 0x0-0xffffffff> - Enter the offset chunk 3 mask here. 
offset_chunk_4 - (Optional) Specify that the offset chunk 4 will be used. 
<value 0-31> - Enter the offset chunk 4 value here. This value must be between 0 and 31. 
<hex 0x0-0xffffffff> - Enter the offset chunk 4 mask here. 
ipv6 - (Optional) Specify this is the IPv6 mask. (EI Mode Only) 
class - (Optional) Specify the IPv6 class. (EI Mode Only) 
flowlabel - (Optional) Specify the IPv6 flow label. (EI Mode Only) 
source_ipv6_mask - (Optional) Specify an IPv6 source sub-mask. (EI Mode Only) 
<ipv6mask> - Enter the source IPv6 mask value here. 
destination_ipv6_mask - (Optional) Specify an IPv6 destination sub-mask. (EI Mode Only) 
<ipv6mask> -Enter the destination IPv6 mask value here. 
tcp - (Optional) Specify that the rule applies to TCP traffic. (EI Mode Only) 
src_port_mask - Specify an IPv6 Layer 4 TCP source port mask. 
<hex 0x0-0xffff> - Enter the TCP source port mask value here.