Show commands

Use these M4500 CLI commands to display MAC and IP access control lists, their rules, and the ACLs applied to interfaces and VLANs.

show mac access-lists name

This command displays a MAC access list and all of the rules that are defined for the ACL. The command output varies based on the match criteria configured within the rules of the ACL.

Default None
Format show mac access-lists <name>
Mode Privileged EXEC
Parameter Description
name The ACL name which is used to identify a specific MAC ACL to display.

Display Message

Fields Definition
ACL Name The name of the MAC ACL rule.
Sequence Number The ordered rule number identifier defined within the ACL.
Action Displays the action associated with each rule. The possible values are Permit or Deny.
Source MAC Address Displays the source MAC address for this rule.
Source MAC Mask Displays the source MAC mask for this rule.
Destination MAC Address Displays the destination MAC address for this rule.
Destination MAC Mask Displays the destination MAC mask for this rule.
Ethertype Displays the Ethertype keyword or custom value for this rule.
VLAN ID Displays the VLAN identifier value or range for this rule.
CoS Value Displays the COS (802.1p) value for this rule.
Assign Queue Displays the queue identifier to which packets matching this rule are assigned.
Redirect Interface Displays the slot/port to which packets matching this rule are forwarded.
Mirror Interface Displays the slot/port to which packets matching this rule are copied.
Time Range Name Displays the name of the time-range if the MAC ACL rule has referenced a time range.
Rule Status Status (Active/Inactive) of the MAC ACL rule.
Redirect External AgentId Indicates whether matching flow packets are allowed to be sent to external applications running alongside the switch on a control CPU.
Committed Rate The committed rate defined by the rate-limit attribute.
Committed Burst size The committed burst size defined by the rate-limit attribute.

show mac access-lists

This command displays a summary of all defined MAC access lists in the system.

Format show mac access-lists
Mode Privileged EXEC

Display Message

Fields Definition
Current number of all ACLs The number of user-configured rules defined for this ACL
Maximum number of all ACLs The maximum number of ACL rules.
MAC ACL Name The name of the MAC ACL rule.
Rules The number of rules in this ACL.
Direction Denotes the direction in which this MAC ACL is attached to the set of interfaces listed. The value is Inbound or Outbound.
Interface(s) Displays the list of interfaces (slot/port) to which this MAC ACL is attached in a given direction.
VLAN(s) Displays VLAN(s) to which the MAC ACL applies

show ip access-lists

Use this command to view summary information about all IP ACLs configured on the switch. To view more detailed information about a specific access list,specify the ACL number or name that is used to indentify the IP ACL.

Default None
Format show ip access-lists [<1-199> | <name>]
Mode Privileged EXEC , User Exec
Parameter Description
1-199 The ACL ID used to identify a specific IP ACL to display.
name The ACL name used to identify a specific IP ACL to display.

Display Message

Fields Definition
Current number of all ACLs The number of user-configured rules defined for this ACL
Maximum number of all ACLs The maximum number of ACL rules.
ACL ID/Name The identifier or Name of this ACL.
Rules The number of rules configured for the ACL.
Direction Shows whether the ACL is applied to traffic coming into the interface (ingress) or leaving the interface (egress).
Interface(s) The interface(s) to which the ACL is applied(ACL interface Bindings)
VLAN(s) The VLAN(s) to which the ACL is applied(ACL VLAN Bindings)
Sequence Number The ordered rule number identifier defined within the ACL.
Action Displays the action associated with each rule. The possible values are Permit or Deny.
Match ALL Indicates whether this ACL applies to every packet. The possible values are True or False.
IPv4 Protocol Displays the protocol to filter for this rule.
Source IP Address Displays the source IP address for this rule.
Source IP Wildcard Mask Displays the source IP mask for this rule.
Source L4 Port Keyword Displays the source port for this rule.
Destination IP Address Displays the destination IP address for this rule.
Destination MAC Mask Displays the destination IP mask for this rule.
Destination L4 Port Keyword Displays the destination port for this rule.
IP DSCP The value specified for IP DSCP.
IP Precedence The value specified for IP Precedence .
IP TOS The value specified for IP TOS .
Log Displays when you enable logging for this rule.
Redirect Interface The slot/port to which packets matching this rule are forwarded.
Mirror Interface The slot/port to which packets matching this rule are copied.
Time Range Name Displays the name of the time-range if the IP ACL rule has referenced a time range.
Assign Queue The queue identifier to which packets matching this rule are assigned.
Committed Rate The committed rate defined by the rate-limit attribute.
Committed Burst size The committed burst size defined by the rate-limit attribute.
Rule Status Status (Active/Inactive) of the IP ACL rule.

show access-lists interface

This command displays ACL information for a designated interface and direction. Use the control-plane keyword to display the ACLs applied on the CPU port.

Default None
Format show access-lists interface { { {<slot/port> | port-channel <1-64> } in | out } | control-plane }
Mode Privileged EXEC
Parameter Description
slot/port The interface number
1-64 The port-channel ID. The port-channel ID is range from 1 to 64.
in | out The direction value is either in or out

Display Message

Fields Definition
ACL Type The type of access list (IP,IPv6 or MAC)
ACL ID The identifier of this ACL.
Sequence Number An optional sequence number may be specified to indicate the order of this access list relative to other access lists already assigned to this interface and direction. A lower number indicates higher precedence order. If a sequence number is already in use for this interface and direction, the specified access list replaces the currently attached access list using that sequence number. If the sequence number is not specified by the user, a sequence number that is one greater than the highest sequence number currently in use for this interface and direction is used. Valid range is (1 to 4294967295).

show access-lists vlan

This command displays ACL information for a particular VLAN ID.

Default None
Format show access-lists vlan <vlan-id> {in | out}
Mode Privileged EXEC
Parameter Description
vlan-id The VLAN ID
in | out The direction value is either in or out

Display Message

Fields Definition
ACL Type The type of access list (IP,IPv6 or MAC)
ACL ID The identifier of this ACL.
Sequence Number The ordered rule number identifier defined within the ACL.