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). |
detail |
Displays detailed information about the access-control list (ACL). |
type <acl_type> |
Displays detailed information for the specified ACL type. |
rule <acl-rule-name> |
Displays detailed information for the specified ACL rule name. |
ordinal <ordinal> |
Displays detailed information for the specified Ordinal |
type <acl_type> rule <rule_name> |
Displays detailed information for the specified ACL Type and Rule name |
type <acl_type> ordinal <ordinal> |
Displays detailed information for the specified ACL Type and Ordinal |
rule <rule_name> type <acl_type> |
Displays detailed information for the specified ACL Type and Rule name |
rule <rule_name> ordinal <ordinal> |
Displays detailed information for the specified Rule name and Ordinal |
ordinal <ordinal> type <acl_type> |
Displays detailed information for the specified ACL Type and Ordinal |
ordinal <ordinal> rule <rule_name> |
Displays detailed information for the specified Rule name and Ordinal |
type <acl_type> rule <rule_name> ordinal <ordinal> |
Displays detailed information for the specified Ordinal, ACL Type and Rule name |
type <acl_type> ordinal <ordinal> rule <rule_name> |
Displays detailed information for the specified Ordinal, ACL Type and Rule name |
rule <rule_name> ordinal <ordinal> type <acl_type> |
Displays detailed information for the specified Ordinal, ACL Type and Rule name |
rule <rule_name> type <acl_type> ordinal <ordinal> |
Displays detailed information for the specified Ordinal, ACL Type and Rule name |
ordinal <ordinal> rule <rule_name> type <acl_type> |
Displays detailed information for the specified Ordinal, ACL Type and Rule name |
ordinal <ordinal> type <acl_type> rule <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:
show acl <option> statistics
| Option | Description |
|---|---|
statistics |
Displays ACL statistics information |
<acl-name> statistics |
Displays ACL statistics information for the specified ACL |
type <acl_type> statistics |
Displays ACL statistics information for the specified ACL type |
rule <rule_name> statistics |
Displays ACL statistics information for the specified rule name |
ordinal <ordinal> statistics |
Displays ACL statistics information for the specified ordinal |
type <acl_type> rule <rule_name> statistics |
Displays ACL statistics information for the specified ACL type and rule name |
type <acl_type> ordinal <ordinal> statistics |
Displays ACL statistics information for the specified ACL type and ordinal |
rule <rule_name> type <acl_type> statistics |
Displays ACL statistics information for the specified ACL type and rule name |
rule <rule_name> ordinal <ordinal> statistics |
Displays ACL statistics information for the specified rule name and ordinal |
ordinal <ordinal> type <acl_type> statistics |
Displays ACL statistics information for the specified ACL type and ordinal |
ordinal <ordinal> rule <rule_name> statistics |
Displays ACL statistics information for the specified rule name and ordinal |
<acl_type> rule <rule_name> ordinal <ordinal> statistics |
Displays ACL statistics information for the specified ordinal, ACL type and rule name |
type <acl_type> ordinal <ordinal> rule <rule_name> statistics |
Displays ACL statistics information for the specified ordinal, ACL type and rule name |
rule <rule_name> ordinal <ordinal> type <acl_type> statistics |
Displays ACL statistics information for the specified ordinal, ACL type and rule name |
rule <rule_name> type <acl_type> ordinal <ordinal> statistics |
Displays ACL statistics information for the specified ordinal, ACL type and rule name |
ordinal <ordinal> rule <rule_name> type <acl_type> statistics |
Displays ACL statistics information for the specified ordinal, ACL type and rule name |
ordinal <ordinal> type <acl_type> rule <rule_name> statistics |
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:
clear acl <options>
| Option | Description |
|---|---|
statistics |
Clears all the ACL statistics. |
type <acl_type> statistics |
Clears all ACL statistics for the specified ACL type |
rule <rule_name> statistics |
Clears all ACL statistics for the specified rule |
ordinal <ordinal> statistics |
Clears all ACL statistics for the specified ordinal |
type <acl_type> rule <rule_name> statistics |
Clears all ACL statistics for the specified ACL type and rule |
type <acl_type> ordinal <ordinal> statistics |
Clears all ACL statistics for the specified ACL type and ordinal |
rule <rule_name> type <acl_type> statistics |
Clears all ACL statistics for the specified ACL type and rule |
rule <rule_name> ordinal <ordinal> statistics |
Clears all ACL statistics for the specified rule and ordinal |
ordinal <ordinal> type <acl_type> statistics |
Clears all ACL statistics for the specified ACL Type and Ordinal |
ordinal <ordinal> rule <rule_name> statistics |
Clears all ACL statistics for the specified Rule name and Ordinal |
type <acl_type> rule <rule_name> ordinal <ordinal> statistics |
Clears all ACL statistics for the specified Ordinal, ACL Type and Rule name |
type <acl_type> ordinal <ordinal> rule <rule_name> statistics |
Clears all ACL statistics for the specified Ordinal, ACL Type and Rule name |
rule <rule_name> ordinal <ordinal> type <acl_type> statistics |
Clears all ACL statistics for the specified Ordinal, ACL Type and Rule name |
rule <rule_name> type <acl_type> ordinal <ordinal> statistics |
Clears all ACL statistics for the specified Ordinal, ACL Type and Rule name |
ordinal <ordinal> rule <rule_name> type <acl_type> statistics |
Clears all ACL statistics for the specified Ordinal, ACL Type and Rule name |
ordinal <ordinal> type <acl_type> rule <rule_name> statistics |
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>