05-04-2023
07:57 AM
- last edited on
05-23-2023
04:04 PM
by
Translator
Greetings,
Trying to add some ACL lines to existing ones. I wonder how to use the
re sequencing
cmd to prevent any packet losses please. like, before inserting new lines or after new lines inserted to run the
re-sequencing cmd
? please.
Regards,
MA
Solved! Go to Solution.
05-04-2023
08:03 AM
- last edited on
05-23-2023
04:07 PM
by
Translator
since recommend using line 10,20,30 if so later you need to add line there is 9 line free between each ACL line
if you already config then using
ip access-list
? <<- ? will give you some option one of option is line number of ACL
re-sequence
ip access-list resequence <ACL NAME or number> <start sequence number> <the lines you can add between two lines>
other Option which I prefer to no drop any traffic
and new ACL using cisco recommend line number
and only under the interface change the Name of ACL from old to new ONE.
05-13-2023
11:29 AM
- last edited on
05-23-2023
04:11 PM
by
Translator
You insert first your ACL lines, then you issue the
re-sequencing
command.
ip access-list standard 9
show access-list 9
ip access-list standard 9
10 permit tcp any any eq www 20 permit tcp any any eq 44315 permit host 10.128.9.10
!
conf t
ip access-list standard 9
15 permit host 10.10.10.10
exit
ip access-list resequence 9 10 10
do sh ip access-list 9
05-04-2023
08:03 AM
- last edited on
05-23-2023
04:07 PM
by
Translator
since recommend using line 10,20,30 if so later you need to add line there is 9 line free between each ACL line
if you already config then using
ip access-list
? <<- ? will give you some option one of option is line number of ACL
re-sequence
ip access-list resequence <ACL NAME or number> <start sequence number> <the lines you can add between two lines>
other Option which I prefer to no drop any traffic
and new ACL using cisco recommend line number
and only under the interface change the Name of ACL from old to new ONE.
05-04-2023 08:09 AM
Hi
what resequency does is clear on this example:
Before:
Router# show ip access-lists Extended IP access list Foo 1 permit ip host 10.0.23.23 any 2 permit ip host 10.0.23.76 any 4 permit ip host 10.0.22.144 any 10 permit tcp any any eq www 15 permit tcp any any eq 8080 20 permit tcp any any eq 443 30 permit udp any any eq domain 40 permit tcp 10.0.8.0 0.0.3.255 any eq smtp 42 permit tcp 10.0.12.0 0.0.1.255 any eq smtp 999 deny ip any any log
After:
Router(config)# ip access-list resequence Foo 10 10 Router(config)# do show ip access-lists Extended IP access list Foo 10 permit ip host 10.0.23.23 any 20 permit ip host 10.0.23.76 any 30 permit ip host 10.0.22.144 any 40 permit tcp any any eq www 50 permit tcp any any eq 8080 60 permit tcp any any eq 443 70 permit tcp any any eq 4343 80 permit udp any any eq domain 90 permit tcp 10.0.8.0 0.0.3.255 any eq smtp 100 permit tcp 10.0.12.0 0.0.1.255 any eq smtp 110 deny ip any any log
If keeps the sequencing in value of 10 + 10.( you can use other sequencing also). This improve the readability
05-04-2023
08:40 AM
- last edited on
05-23-2023
04:08 PM
by
Translator
Thank you. yes, I know what
re-sequencing
does but I was not clear at what point we issue the command? before adding new lines or after new lines are added?
basically, process by which we go about inserting new lines between current ACL please?
Best Regards,
MA
05-13-2023
11:29 AM
- last edited on
05-23-2023
04:11 PM
by
Translator
You insert first your ACL lines, then you issue the
re-sequencing
command.
ip access-list standard 9
show access-list 9
ip access-list standard 9
10 permit tcp any any eq www 20 permit tcp any any eq 44315 permit host 10.128.9.10
!
conf t
ip access-list standard 9
15 permit host 10.10.10.10
exit
ip access-list resequence 9 10 10
do sh ip access-list 9
05-15-2023 03:04 PM
thank you.
however, my problem is that I have about 40 routers, all have say ACL 10 standard. I need to insert three new lines but using an automation application (script to push config top all routers). these ACL 10 in each router all don't have similar sequence numbering, some start with 10, 20 , etc some other with 100, 110, etc. and this has made me think!? I don't know how to deal with this unless I approach each router individually. I should have ask the question differently I assume.
Best Regards,
Masood
05-15-2023
07:39 PM
- last edited on
05-23-2023
04:12 PM
by
Translator
Re-sequence
before and after you add your lines.
05-04-2023
09:03 AM
- last edited on
05-23-2023
04:13 PM
by
Translator
if you go with option of
re-sequence
then you will get some free line between OLD ACL line, you can then use it to add any AEC.
but again check the ACL after Seq and for backup use option 2 if the ACL is ok then add new ACE to old ACL
if there is issue then use new ACL (complete with additional AEC) under interface
05-04-2023
09:06 AM
- last edited on
05-23-2023
04:16 PM
by
Translator
From a packet lost perspective, I highly doubt
resequencing
itself/alone, would have any impact at all.
When to do it would be up to you.
If you desired to add a new line, when there is no "room" to insert, e.g. you have lines 1, 2 and 3, and you want to add a line between 2 and 3, you would need to
re-sequence
to permit the insertion.
If after insertion, you desire "neaten" your numbering, you would do it then, e.g. you start with 10 and 20, you add lines 12 and 14 (giving 10, 12, 14, 20), but you desire it to be 10, 20, 30, 40,
re-sequence
when done.
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: