AMX NXA-ENET24 Switch User Manual


 
CLI (Command Line Interface)
222
NXA-ENET24 - Software Management Guide
MAC ACL Commands (Cont.)
Command Function
mac access-group
This command binds a port to a
MAC ACL.
Use the no form to remove the
port.
Syntax:
mac access-group acl_name in
acl_name – Name of the ACL. (Maximum length: 16 characters)
in – Indicates that this list applies to ingress packets.
Default Setting: None
Command Mode: Interface Configuration (Ethernet)
Command Usage: A port can only be bound to one ACL.
If a port is already bound to an ACL and you bind it to a different ACL, the
switch will replace the old binding with the new one.
Example:
Console(config)#interface ethernet 1/25
Console(config-if)#mac access-group alexander in
Console(config-if)#
show mac access-group
This command shows the ports
assigned to MAC ACLs.
Command Mode: Privileged Exec
Example:
Console#show mac access-group
Interface ethernet 1/5
MAC access-list M5 in
Console#
map access-list mac
This command sets the output
queue for packets matching an
ACL rule.
The specified CoS value is only
used to map the matching packet
to an output queue; it is not
written to the packet itself.
Use the no form to remove the
CoS mapping.
Syntax:
[no] map access-list mac acl_name cos cos-value
acl_name – Name of the ACL. (Maximum length: 16 characters)
cos-value – CoS value. (Range: 0-7)
Default Setting: None
Command Mode: Interface Configuration (Ethernet)
Command Usage: You must configure an ACL mask before you can map
CoS values to the rule.
A packet matching a rule within the specified ACL is mapped to one of the
output queues as shown below:
Example:
Console(config)#int eth 1/5
Console(config-if)#map access-list mac M5 cos 0
Console(config-if)#
show map access-list mac
This command shows the CoS
value mapped to a MAC ACL for
the current interface.
The CoS value determines the
output queue for packets
matching an ACL rule.
Syntax:
show map access-list mac [interface]
interface
ethernet unit/port
unit - This is device 1.
port - Port number.
Command Mode: Privileged Exec
Example:
Console#show map access-list mac
Access-list to COS of Eth 1/5
Access-list M5 cos 0
Console#