cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
472
Views
6
Helpful
10
Replies

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

BlueTongue
Level 1
Level 1

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

pkhatri
Level 11
Level 11

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

View solution in original post

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

View solution in original post

10 Replies 10

pkhatri
Level 11
Level 11

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

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

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!!!

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?

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!

AbhisheK, your suggestion seems very helpful!

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

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.

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

Bravo! It works perfectly.

Thanks AbhisheK.

Its nice to know that your issue was resolved.

You are welcome!!!

Regards,

AbhisheK

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco