xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
74
DGS-3450:admin#create cpu access_profile profile_id 1 ethernet vlan
Command: create cpu access_profile profile_id 1 ethernet vlan
Success.
DGS-3450:admin#create cpu access_profile profile_id 2 ip source_ip_mask 255.255.255.255
Command: create cpu access_profile profile_id 2 ip source_ip_mask 255.255.255.255
Success.
DGS-3450:admin#
config cpu access_profile profile_id
Purpose
This command is used to configure CPU access list entries.
Syntax
config cpu access_profile profile_id <value 1-5> [ add access_id <value 1-100>[
ethernet { [vlan <vlan_name32> | vlan_id <vlanid 1-4094>] | source_mac <macaddr
000000000000-ffffffffffff> | destination_mac <macaddr 000000000000-ffffffffffff> |
ethernet_type <hex 0x0-0xffff> }| ip{ [vlan <vlan_name 32> | vlan_id <vlanid 1-4094>] |
source_ip <ipaddr> | destination_ip <ipaddr> | dscp <value 0-63> |[ icmp {type
<value 0-255> | code <value 0-255>} | igmp {type <value 0-255>} | tcp {src_port
<value 0-65535> | dst_port <value 0-65535> | urg | ack | psh | rst | syn | fin } | udp
{src_port <value 0-65535> | dst_port <value 0-65535>} | protocol_id <value 0 - 255>
{user_define <hex 0x0-0xffffffff>}]}| packet_content {offset_0-15 <hex 0x0-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> <hex 0x0-
0xffffffff> }| ipv6 {[ { class <value 0-255> | flowlabel <hex 0x0-0xfffff>} | source_ipv6
<ipv6addr> | destination_ipv6 <ipv6addr>]}]port [<portlist> | all ][ permit | deny]
{time_range <range_name 32>}| delete access_id <value 1-100> ]
Description
This command is used to configure CPU access list entries.
Parameters
<value 1-5>
- Specify the index of the CPU access list profile.
add access_id
- Specify the index of an access list entry to add. The range of this value is 1
to 100.
auto_assign
- Specify to automatically assign the access ID.
<value 1-100>
- Specify an access ID between 1 and 100.
ethernet
- Specify an Ethernet CPU access control list rule.
vlan
- Specify the VLAN name.
<vlan_name 32>
-Specify the VLAN name. The maximum length is 32 characters.
vlanid
- Specify the VLAN ID.
<vlanid 1-4094>
- Specify the VLAN ID between 1 and 4094.
source_mac
- Specify the source MAC address.
<macaddr>
- Specify the source MAC address.
destination_mac
- Specify the destination MAC address.
<macaddr>
- Specify the destination MAC address.
802.1p
- Specify the value of the 802.1p priority tag.
<value 0-7>
- Specify the value of the 802.1p priority tag. The priority tag ranges from 1 to 7.
ethernet_type
- Specify the Ethernet type.
<hex 0x0-0xffff>
- Specify the Ethernet type.
ip
- Specify an IP access control list rule.
vlan
- Specify the VLAN name.
<vlan_name 32>
-Specify the VLAN name. The maximum length is 32 characters.