Router – Deleting Access Control List in Cisco Router

aclrouter

Let's say I have a access-list 1 with 5 permits.
And I would like to delete the third permit listing.
I know that I can simply do "no 30"

However, can I confirm that I can
no access-list 1 permit host 192.168.1.1 command in global configuration mode. Or no access-list 1 global configuration command, and then re-enter the other 4 access-list?

Best Answer

As you know how to remove a single line from the ACL (using no sequence_number form), I would focus on your two commands:

  • no access-list 1 permit host 192.168.1.1 command indeed deletes your ENTIRE ACL, thus NEVER use this kind of command.
  • no access-list 1 command obviously deletes your ENTIRE ACL, you then re-apply other 4 lines, thus it is technically correct, but remember to remove the ACL from an interface before removing or adding the ACL.

And always remember to remove the ACL from an interface before removing or adding the ACL.