cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1019
Views
10
Helpful
7
Replies

IP Access List Entry Sequence Numbering

Krasnoperov
Level 1
Level 1

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

7 Replies 7

InayathUlla Sharieff
Cisco Employee
Cisco Employee

How about using Extended ACL?

Regards

Inayath

I'm using extended

ip access-list ext TEST

or you mean something else?

Joseph W. Doherty
Hall of Fame
Hall of Fame

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

InayathUlla Sharieff
Cisco Employee
Cisco Employee

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.

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.

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.

Don't forget to rate helpful posts.

sahseth
Level 1
Level 1

Please check configuration register value must set to ox2142.

Thanks.

Review Cisco Networking for a $25 gift card