Deleting an ACE from an existing ACL
This action uses ACL sequence numbers to delete ACEs from an ACL.
Syntax:
ip access-list <standard|extended> <name-str|1-99|100-199>
no <seq-#>
The first command enters the "Named-ACL"
context for the specified ACL. The no
command deletes
the ACE corresponding to the sequence number entered.
Range: 1–2147483647
Procedure
- To find the sequence number
of the ACE you want to delete, use
show run
orshow access-list <name-str|1-99|100-199>
to view the ACL. - Use
ip access-list
to enter the "Named-ACL" (nacl
) context of the ACE. This applies regardless of whether the ACE was originally created as a numbered ACL or a named ACL. - In the "Named-ACL"
context, type
no
and enter the sequence number of the ACE you want to delete.