04-20-2016 01:46 AM - edited 03-05-2019 03:50 AM
hi guys, how to add an ACL to the existing ACL configuration?
Example, i have this one:
Standard IP access list 1
10 deny 11.12.13.14
20 permit any (52181890 matches)
I want to add another deny IP.
Can I just simply add like this:
access-list 1 deny host 6.7.8.9
Thanks.
Solved! Go to Solution.
04-20-2016 03:51 AM
04-26-2016 12:29 AM
Hi
The re-sequence command is optional I just use it to keep acls tidy and in blocks of 10s so you always have room to insert more lines if required , some acls can grow to be hundreds of lines long , you can still just put a line in between say 10 and 20 you don't have to re-sequence if you don't want to
And yes it should work all it does it changes it and fits in in blocks of 10
04-20-2016 03:51 AM
04-20-2016 06:21 PM
Thank you, Mark.
Cheers!!!
04-25-2016 11:34 PM
Hi guys, thank you for your help.
Just another question:
Standard IP access list 1
10 deny 1.12.13.14
20 deny 2.15.16.17
30 deny 3.18.19.20 (21 matches)
40 permit any (83965005 matches)
So I added the 2 IP Addresses, if I need to add another one, can it be done like this:
The number "13" is for the new block IP:
ip access-list standard 1 13 deny host 5.10.20.30 exit
But how about the re-sequence command, will the command below work?
conf t ip access-list resequence 1 10 10 exit
Thanks.
04-26-2016 12:29 AM
Hi
The re-sequence command is optional I just use it to keep acls tidy and in blocks of 10s so you always have room to insert more lines if required , some acls can grow to be hundreds of lines long , you can still just put a line in between say 10 and 20 you don't have to re-sequence if you don't want to
And yes it should work all it does it changes it and fits in in blocks of 10
04-26-2016 01:45 AM
Thanks Mark, I thought it was required. Thanks again for the heads up. Cheers!!! :)
04-21-2016 10:58 AM
If you want any acl statement on top then use
ip access-list standard 1 1 deny xxxxx
04-25-2016 11:35 PM
Thanks, Pawan.
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