05-08-2002 02:25 PM - edited 03-01-2019 09:39 PM
TOTAL newbie with the Cisco IOS
How would I go about removing entries from my access list??
Or, better yet:
Entirely remove the access list?
THANKS!
05-08-2002 02:34 PM
Greetings:
You cannot remove a single line from an access-list. You have to move it to a text file, edit and then cut/paste back into the router.
To remove, you just go "no access-list x" and make sure you remove where it is applied under an interface.
Thanks...Steve
05-08-2002 05:02 PM
If you want to entirely remove the access-list, follow below procedure.
1. router1# config t
2. router1 (config)# no access-list (access-list number)
{at this point you have blown away or removed all of your access-list}
3. router1 (config) #^Z (ctrl Z)
4. router1# wr mem
If you want to make any addition(s) to your current access-list, in the exec mode, type ' show run | inc access-list (access-list number', then enter.
Copy and paste the output onto a notepad, vi, pico, or whatever editor you prefer.
Make the necessary access-list changes in the editor, then copy and paste the corrected output back into the router configs. That is:
1. router1# config t
2. router1(config)# ( copy and paste modified access-list here)
3. router1#^Z
4. router1# wr memory
Done.
Regards,
Emil.
05-08-2002 07:09 PM
Wut u can do is copy the whole access lists in the notepad and remove the lines u want. Again bind the updated access list. You cannot remove the lines directly in the router. Hope this information will be helpful.
Thanks . Emmad
05-08-2002 09:18 PM
In the event that you do not want to remove the whole access list then :
conf t
ip access-list standard 10
no permit.........etc...
Ctrl Z
Careful not to type in "no access list".........or you will remove all of acl 10
Rgds
05-09-2002 02:48 AM
Hi,
Assume that you are using standard ACL.
If u are using standared ACL, You cannot remove one line from an access list. If you try to do this, you will remove the entire list. It is best to copy the access list to a text editor before trying to edit the list. The only exception is when using named access lists.
To know about diff. ACL(s), refer the flg. link
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat2950/1219ea1/scg/swacl.htm
05-09-2002 09:01 AM
Thanks for the help, you guys are great!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide