04-01-2013 11:45 PM - edited 03-07-2019 12:34 PM
hi
Is there any way to save line numbers in ACL after router rebooting procees?
let's say I have ACL
ip access-list ext TEST
7 permit ip host 10.1.1.1 host 10.2.2.2
9 permit ip host 10.1.1.1 host 10.2.2.3
10 deny ip any any
after reboot
ip access-list ext TEST
10 permit ip host 10.1.1.1 host 10.2.2.2
20 permit ip host 10.1.1.1 host 10.2.2.3
30 deny ip any any
but int TCL script or in EEM I have strict direction
ip access-list ext TEST
no 7
in case if something fail logg message.
after rebooting - my EEM statement will still want to delete line 7
04-02-2013 12:01 AM
How about using Extended ACL?
Regards
Inayath
04-02-2013 12:22 AM
I'm using extended
ip access-list ext TEST
or you mean something else?
04-02-2013 02:39 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
Sorry don't know of a way to preserve ACL sequence numbers across a reload.
You could resequence the ACL, but probably won't help as it just makes for the same issue but sooner.
However, for a "no" command, you might try using the whole line rather than the line number, i.e.:
ip access-list ext TEST
no permit ip host 10.1.1.1 host 10.2.2.2
04-02-2013 04:16 AM
HI Kras,
I will check this later as quite busy on some important work.
Mean while could you please go through the following link this has all the information which you are looking for;
https://learningnetwork.cisco.com/thread/15432
In case if this doesnt solve your query do let me know and I will do some testing/checking on this for you.
HTH
REgards
Inayath
*Plz rate all usefull posts.
04-02-2013 05:04 AM
hi, thanks for response, this https://learningnetwork.cisco.com/thread/15432 does not solve my problem, I just need that my router save sequense of line after reboot process, because of my scripts(EEM) deletes and ADDs lines in direct place in ACL which I need.
04-02-2013 12:16 PM
Hi,
in this doc here it is stated that the non default sequence numbering is not saved in nvram.
http://www.cisco.com/en/US/docs/ios/12_2s/feature/guide/fsaclseq.html
Regards
Alain
Don't forget to rate helpful posts.
04-08-2013 05:58 AM
Please check configuration register value must set to ox2142.
Thanks.
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