Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

Newbie: How can I add a permit/deny after a certain line in access-list?

Sorry to post this stupid question.

show ip access-list examplelist

10 permit......

20 permit......

30 permit......

How can I add another permit line between 10 and 20?

This is for grouping and easy-to-read reasons.

Thanks in advance.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Purple

Re: Newbie: How can I add a permit/deny after a certain line in

Hi,

Do the following:

conf t

ip access-list examplelist

15 permit ....

i.e. use a sequence number between 10 and 20 and it will place the line between the two.

Hope that helps - pls do rate the post if it does.

Paresh

Re: Newbie: How can I add a permit/deny after a certain line in

Hi,

No, it does not depend on the tool you are using to do telnet. You can also copy paste from the DOS-prompt! And its good that you are using PuTTy, its gooood! You can use the 'logging' feature and easily get your access list in a text file! You just need to change the settings and you'll be done!

Hope this helps!

Regards,

AbhisheK

10 REPLIES
Purple

Re: Newbie: How can I add a permit/deny after a certain line in

Hi,

Do the following:

conf t

ip access-list examplelist

15 permit ....

i.e. use a sequence number between 10 and 20 and it will place the line between the two.

Hope that helps - pls do rate the post if it does.

Paresh

Community Member

Re: Newbie: How can I add a permit/deny after a certain line in

Thanks Paresh.

Another question if I may: what about if there are too many additions in the access list and I want to re-number them from:

10 permit....

11

12

13

20

30

40

to:

10 permit.....

20

30

40

50

60

70

Re: Newbie: How can I add a permit/deny after a certain line in

Hi,

You can also edit your access list in the notepad. Copy the access list in notepad and then edit according to your needs. Then delte the original list by issuing a 'no' command and then paste the new modified list. And do remember do save your configuration!!!

Hope this helps!

Regards,

AbhisheK

Please rate all posts!!!

Community Member

Re: Newbie: How can I add a permit/deny after a certain line in

Thanks AbhisheK.

What do you mean by "paste the new modified list"?

I am just telnetting into the router. Do you mean to use tftp to update it?

Re: Newbie: How can I add a permit/deny after a certain line in

No you can copy it from notepad, by pressing CTRL+A and then CTRL+C or by right clicking choose 'select all' and then choose'copy'.

After that you can paste it by right clicking at the config# prompt. According to me it is an easier way od editing the access lists.

Regards,

AbhisheK

Please rate all helpful posts!

Community Member

Re: Newbie: How can I add a permit/deny after a certain line in

AbhisheK, your suggestion seems very helpful!

I will give it a try first and let you know how it goes.

Community Member

Re: Newbie: How can I add a permit/deny after a certain line in

AbhisheK, one last question.

The method that you suggested - does it depend on the tool that I use to telnet? I am currently using putty.

Re: Newbie: How can I add a permit/deny after a certain line in

Hi,

No, it does not depend on the tool you are using to do telnet. You can also copy paste from the DOS-prompt! And its good that you are using PuTTy, its gooood! You can use the 'logging' feature and easily get your access list in a text file! You just need to change the settings and you'll be done!

Hope this helps!

Regards,

AbhisheK

Community Member

Re: Newbie: How can I add a permit/deny after a certain line in

Bravo! It works perfectly.

Thanks AbhisheK.

Re: Newbie: How can I add a permit/deny after a certain line in

Its nice to know that your issue was resolved.

You are welcome!!!

Regards,

AbhisheK

208
Views
6
Helpful
10
Replies
CreatePlease to create content