ACL Operational Commands
ACL Show Commands
Syntax:
show acl <option>
Option | Description |
---|---|
|
Without any option, this command displays brief information about the access control list (ACL). |
|
Displays detailed information about the access-control list (ACL). |
|
Displays detailed information for the specified ACL type. |
|
Displays detailed information for the specified ACL rule name. |
|
Displays detailed information for the specified Ordinal. |
|
Displays detailed information for the specified ACL Type and Rule name. |
|
Displays detailed information for the specified ACL Type and Ordinal. |
|
Displays detailed information for the specified ACL Type and Rule name. |
|
Displays detailed information for the specified Rule name and Ordinal. |
|
Displays detailed information for the specified ACL type and ordinal. |
|
Displays detailed information for the specified rule name and ordinal. |
|
Displays detailed information for the specified Ordinal, ACL type and rule name. |
|
Displays detailed information for the specified Ordinal, ACL type and rule name. |
|
Displays detailed information for the specified Ordinal, ACL type and rule name. |
|
Displays detailed information for the specified Ordinal, ACL type and rule name. |
|
Displays detailed information for the specified Ordinal, ACL type and rule name. |
|
Displays detailed information for the specified Ordinal, ACL type and rule name. |
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
ACL Statistics Commands
ACL statistics are currently not supported for PIM, IGMP, and L2TP protocol traffic. |
Syntax:
Option | Description |
---|---|
|
Displays ACL statistics information |
|
Displays ACL statistics information for the specified ACL. |
|
Displays ACL statistics information for the specified ACL type. |
|
Displays ACL statistics information for the specified rule name. |
|
Displays ACL statistics information for the specified ordinal. |
|
Displays ACL statistics information for the specified ACL type and rule name. |
|
Displays ACL statistics information for the specified ACL type and ordinal. |
|
Displays ACL statistics information for the specified ACL type and rule name. |
|
Displays ACL statistics information for the specified rule name and ordinal. |
|
Displays ACL statistics information for the specified ACL type and ordinal. |
|
Displays ACL statistics information for the specified rule name and ordinal. |
|
Displays ACL statistics information for the specified ordinal, ACL type and rule name. |
|
Displays ACL statistics information for the specified ordinal, ACL type and rule name. |
|
Displays ACL statistics information for the specified ordinal, ACL type and rule name. |
|
Displays ACL statistics information for the specified ordinal, ACL type and rule name. |
|
Displays ACL statistics information for the specified ordinal, ACL type and rule name. |
|
Displays ACL statistics information for the specified ordinal, ACL type and rule name. |
Example 1: 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 2: 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
ACL Clear Commands
Clear commands allow resetting operational states.
Clear ACL Statistics
Syntax:
Option | Description |
---|---|
|
Clears all the ACL statistics. |
|
Clears all ACL statistics for the specified ACL type |
|
Clears all ACL statistics for the specified rule |
|
Clears all ACL statistics for the specified ordinal |
|
Clears all ACL statistics for the specified ACL type and rule |
|
Clears all ACL statistics for the specified ACL type and ordinal |
|
Clears all ACL statistics for the specified ACL type and rule |
|
Clears all ACL statistics for the specified rule and ordinal |
|
Clears all ACL statistics for the specified ACL Type and Ordinal |
|
Clears all ACL statistics for the specified Rule name and Ordinal |
|
Clears all ACL statistics for the specified Ordinal, ACL Type and Rule name |
|
Clears all ACL statistics for the specified Ordinal, ACL Type and Rule name |
|
Clears all ACL statistics for the specified Ordinal, ACL Type and Rule name |
|
Clears all ACL statistics for the specified Ordinal, ACL Type and Rule name |
|
Clears all ACL statistics for the specified Ordinal, ACL Type and Rule name |
|
Clears all ACL statistics for the specified Ordinal, ACL Type and Rule name |
Example: Clearing ACL Statistics of a specified ACL Rule
supervisor@rtbrick>LEAF01: op> clear acl rule lldp.ifp-0/0/44.trap.rule statistics Success : command success supervisor@rtbrick>LEAF01: op>