Deleting Rules from ACLs
- Enter the
configure terminalcommand to access global configuration mode. - Enter ACL configuration sub-mode for the IPv4, IPv6, or MAC ACL you want to modify.
- If needed, enter the appropriate
showcommand to display the rules of the relevant ACL.- Enter the
show ip access-listscommand followed by the name ofan IPv4 ACL. - Enter the
show ipv6 access-listscommand followed by the name of an IPv6 ACL. - Enter the
show mac access-listscommand followed by the name of a MAC ACL.
- Enter the
- Remove the rule in one of the
following ways:
- To delete a rule by
sequence number, enter the
no sequencecommand, specifying the sequence number.device(config-std-ipacl-ip_acl_1)# no sequence 11
- To delete a rule by
content, enter the
no permitcommand, specifying the rule content.device(config-std-ipacl-ip_acl_1)# no permit host 2.2.2.1
- To delete a rule by
sequence number, enter the
- If you want to clean up the
sequence numbers, for example, so that you can re-use a sequence number that
you
have deleted, enter the
regenerate-seq-numbercommand.