The assign resource-template acl-mode command sets the ACL resource allocation mode.
The undo assign resource-template acl-mode command restores the default ACL resource allocation mode.
By default, the ACL resource allocation mode is dual-ipv4-ipv6.
Only the S5720-HI supports this command.
assign resource-template acl-mode { dual-ipv4-ipv6 | ipv4 | l2 | l2-ipv4 | l2-ipv6 } [ slot slot-id ]
undo assign resource-template acl-mode [ slot slot-id ]
Parameter |
Description |
Value |
---|---|---|
dual-ipv4-ipv6 |
Specifies the IPv4 and IPv6 ACL resource allocation mode. |
- |
ipv4 |
Specifies the IPv4 ACL resource allocation mode. |
- |
l2 |
Specifies the Layer 2 ACL resource allocation mode. |
- |
l2-ipv4 |
Specifies the Layer 2 IPv4 ACL resource allocation mode. |
- |
l2-ipv6 |
Specifies the Layer 2 IPv6 ACL resource allocation mode. |
- |
slot slot-id |
If slot-id is not specified, ACL resource allocation mode in all the stack switches is displayed. |
The value is determined based on the device configuration. |
If the default number of ACLs for IPv4, IPv6, or Layer 2 services cannot meet service requirements, you can change the ACL resource allocation mode to increase the number of ACLs for the services. Before using this command to change the ACL resource allocation mode, consider the advantage and disadvantage of the change. For example, if the ACL resource allocation mode is changed from dual-ipv4-ipv6 to ipv4, more ACLs are supported for IPv4 services, but the number of ACLs for IPv6 and Layer 2 services reduces to 0.
Resource Allocation Mode |
Maximum Number of IPv4 ACLs |
Maximum Number of Layer 2 + IPv4 ACLs |
Maximum Number of IPv6 ACLs |
Maximum Number of Layer 2 + IPv6 ACLs |
Maximum Number of Layer 2 ACLs |
Total Number of ACLs |
---|---|---|---|---|---|---|
dual-ipv4-ipv6 |
16K |
16K |
8K |
8K |
16K |
16K (IPv4) + 8K (IPv6) |
l2-ipv4 |
32K |
32K |
0 |
0 |
32K |
32K |
l2-ipv6 |
16K |
16K |
16K |
16K |
16K |
16K |
ipv4 |
64K |
0 |
0 |
0 |
0 |
64K |
l2 |
0 |
0 |
0 |
0 |
64K |
64K |
Precautions
After configuring the ACL resource allocation mode, save the configuration, and restart the device for the configuration to take effect.