cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
702
Views
0
Helpful
6
Replies

Router access lists

jdrake
Level 1
Level 1

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!

6 Replies 6

scarothe
Level 1
Level 1

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

eapenten
Level 1
Level 1

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.

ehj79
Level 1
Level 1

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

mdelgado
Level 1
Level 1

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

kmuthukamu
Level 1
Level 1

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

jdrake
Level 1
Level 1

Thanks for the help, you guys are great!