xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
68
DGS-3450:admin# create access_profile ethernet vlan source_mac 00-00-00-00-00-01
destination_mac 00-00-00-00-00-02 802.1p ethernet_type profile_id 1
Command: create access_profile ethernet vlan source_mac 00-00-00-00-00-01 destination_mac
00-00-00-00-00-02 802.1p ethernet_type profile_id 1
Success.
DGS-3450:admin# create access_profile ip source_ip_mask 20.0.0.0 destination_ip_mask
10.0.0.0 dscp icmp type code profile_id 2
Command: create access_profile ip source_ip_mask 20.0.0.0 destination_ip_mask 10.0.0.0
dscp icmp type code profile_id 2
Success.
DGS-3450:admin#
To create an option 2 packet content mask access profile:
DGS-3450:admin# create access_profile packet_content_mask offset_chunk_1 0 0xFFFFFFFF
offset_chunk_2 1 0xFFFFFFFF offset_chunk_3 2 0xFFFFFFFF offset_chunk_4 3 0xFFFFFFFF
profile_id 3
Command: create access_profile packet_content_mask offset_chunk_1 0 0xFFFFFFFF
offset_chunk_2 1 0xFFFFFFFF offset_chunk_3 2 0xFFFFFFFF offset_chunk_4 3 0xFFFFFFFF
profile_id 3
Success.
DGS-3450:admin#
delete access_profile
Purpose
Used to delete access list rules.
Syntax
delete access_profile [profile_id <value 1-6> |all]
Description
The delete access_profile command deletes access list rules.
Delete access_profile command can only delete the profile which is created by ACL module.
Parameters
profile_id
- Specifies the index of access list profile. The range is depend on project..
all
- Specifies the whole access list profile to delete.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete access list rules:
DGS-3450:admin#delete access_profile profile_id 6
Command: delete access_profile profile_id 6
Success.
DGS-3450:admin#
config access_profile
Purpose
Used to configure access list entry.
Syntax
config access_profile profile_id profile_id <value 1-6>[add access_id [ auto_assign |
<value 1-128>] [ethernet {[vlan <vlan_name 32> | vlan_id <vlanid 1-4094>] |