02-06-2019 05:39 AM - edited 02-21-2020 08:46 AM
Hello,
I have the following access list on my Cisco router. How can I edit the order. For example, if I want to add a deny "15 deny ip host 8.8.8.8 any", so that it's in between 10 and 20, how would I do that?
Extended IP access list 105
10 deny ip host 46.37.13.132 any
20 deny ip host 94.199.182.46 any
30 permit ip any any (5955 matches)
Thanks,
Tony
02-06-2019 06:26 AM
02-06-2019 07:29 AM
11-15-2023 12:25 AM
ip access-list resequence 100 10 10 # with 100 = access-list number ; 10 = first number in access-list and 10 steps for increment the next number in the access-list
02-06-2019 07:27 AM
tonynsx,
Very easily done. Instead of using command "access-list 105", use command "ip access-list extended 105".
Then you will be able to just start your line with a new sequence number, for example
15 permit ip host x.x.x.x host y.y.y.y and it will place it between the sequence numbers 10 and 20.
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