Operational Commands
ACL Show and Statistics Commands
ACL statistics are currently not supported for PIM, IGMP, and L2TP protocol traffic. |
Syntax:
show acl <option>
Option | Description |
---|---|
- |
Without any option, this command displays brief information about access-control list (ACL). |
detail |
Displays detailed information about access-control list (ACL). |
<acl-rule-name> |
Displays detailed information for a specified ACL rule name. |
statistics |
Displays ACL statistics information. |
<acl-name> statistics |
Displays ACL statistics information for the specified ACL. |
Example 1: Show information about ACLs
supervisor@rtbrick>LEAF01: op> show acl ACL Ordinal Type Attach Point rule4 4 l3v4 - 8 l3v4 - lldp.ifp-0/0/0.trap.rule - l2 ifp-0/0/0 lldp.ifp-0/1/0.trap.rule - l2 ifp-0/1/0 lldp.ifp-0/1/1.trap.rule - l2 ifp-0/1/1 lldp.ifp-0/1/4.trap.rule - l2 ifp-0/1/4 lldp.ifp-0/1/5.trap.rule - l2 ifp-0/1/5 lldp.ifp-0/1/6.trap.rule - l2 ifp-0/1/6 lldp.ifp-0/1/12.trap.rule - l2 ifp-0/1/12 lldp.ifp-0/1/13.trap.rule - l2 ifp-0/1/13 lldp.ifp-0/1/22.trap.rule - l2 ifp-0/1/22 lldp.ifp-0/1/23.trap.rule - l2 ifp-0/1/23
Example 2: Show detailed information about ACLs
supervisor@rtbrick>LEAF01: op> show acl detail Rule: rule4 ACL type: l3v4 Ordinal: 4 Match: Direction: ingress Source IPv4 prefix: 198.51.100.35/24 Action: Drop: True Result: Trap ID: User Defined Statistics: Units Total Accepted Dropped Packets 4 0 4 Bytes 424 0 424 Ordinal: 8 Match: Direction: ingress Source IPv4 prefix: 198.51.100.45/24 Action: Drop: True Result: Trap ID: User Defined Statistics: Units Total Accepted Dropped Packets 9 0 9 Bytes 990 0 990 Rule: lldp.ifp-0/0/0.trap.rule ACL type: l2 Ordinal: - Match: Attachment point: ifp-0/0/0 Direction: ingress Destination MAC: 01:80:c2:00:00:0e Action: Redirect to CPU: True Result: Trap ID: LLDP Statistics: Units Total Accepted Dropped Packets 105 105 0 Bytes 12915 12915 0 Rule: lldp.ifp-0/1/0.trap.rule ACL type: l2 Ordinal: - Match: Attachment point: ifp-0/1/0 Direction: ingress Destination MAC: 01:80:c2:00:00:0e Action: Redirect to CPU: True Result: Trap ID: LLDP Statistics: Units Total Accepted Dropped Packets 220 220 0 Bytes 19140 19140 0
Example 3: Show detailed information for a specified ACL Rule
supervisor@rtbrick>LEAF01: op> show acl rule4 Rule: rule4 ACL type: l3v4 Ordinal: 4 Match: Direction: ingress Source IPv4 prefix: 198.51.100.35/24 Action: Drop: True Result: Trap ID: User Defined Statistics: Units Total Accepted Dropped Packets 4 0 4 Bytes 424 0 424 Ordinal: 8 Match: Direction: ingress Source IPv4 prefix: 198.51.100.45/24 Action: Drop: True Result: Trap ID: User Defined Statistics: Units Total Accepted Dropped Packets 9 0 9 Bytes 990 0 990
Example 4: Display ACL statistics information
supervisor@rtbrick>LEAF01: op> show acl statistics ACL Units Total Accepted Dropped rule4 Packets 4 0 4 Bytes 424 0 424 rule4 Packets 9 0 9 Bytes 990 0 990 lldp.ifp-0/0/0.trap.rule Packets 107 107 0 Bytes 13161 13161 0 lldp.ifp-0/1/0.trap.rule Packets 221 221 0 Bytes 19227 19227 0 lldp.ifp-0/1/1.trap.rule Packets 221 221 0 Bytes 19227 19227 0 lldp.ifp-0/1/4.trap.rule Packets 214 214 0 Bytes 31672 31672 0 lldp.ifp-0/1/5.trap.rule Packets 214 214 0 Bytes 31672 31672 0 lldp.ifp-0/1/6.trap.rule Packets 214 214 0 Bytes 31672 31672 0 lldp.ifp-0/1/12.trap.rule Packets 107 107 0 Bytes 13375 13375 0 lldp.ifp-0/1/13.trap.rule Packets 107 107 0 Bytes 13375 13375 0 lldp.ifp-0/1/22.trap.rule Packets 107 107 0 Bytes 13375 13375 0 lldp.ifp-0/1/23.trap.rule Packets 107 107 0 Bytes 13375 13375 0
Example 5: Display ACL statistics information for the specified ACL
supervisor@rtbrick>LEAF01: op> show acl rule4 statistics ACL Units Total Accepted Dropped rule4 Packets 4 0 4 Bytes 424 0 424 rule4 Packets 9 0 9 Bytes 990 0 990