Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Numbering rules within an Access List

I'm creating several extended access lists and I want each rule within the access list to have a number, so that it can be individually deleted without having to delete the entire access list.  I'm using a 2821 router and can't find anyway to do this.  Thank you for any assistance you can give.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Hall of Fame Super Blue

Re: Numbering rules within an Access List

charles.e-.davis@baesystems.com

I'm creating several extended access lists and I want each rule within the access list to have a number, so that it can be individually deleted without having to delete the entire access list.  I'm using a 2821 router and can't find anyway to do this.  Thank you for any assistance you can give.

Charles

2821(config)# ip access-list extended TPS

2821(config-ext-nacl)# 10  permit ip host 192.168.5.1 host 192.168.6.1

2821(config-ext-nacl)# 20 permit ip 192.168.5.0 0.0.0.255 host 17.16.5.1

etc...

note you don't have to use increments of 10 ie. in the above i have used 10, 20 for acl entries but it's usually enough as this gives you the flexibility to add lines in between.

Jon

Hall of Fame Super Blue

Re: Numbering rules within an Access List

charles.e.davis@baesystems.com

Thanks for the help.  Is there any reason that the numbers don't show up in the configuration?

they should do ie.

2821# sh ip access-list TPS

Jon

4 REPLIES
Hall of Fame Super Blue

Re: Numbering rules within an Access List

charles.e-.davis@baesystems.com

I'm creating several extended access lists and I want each rule within the access list to have a number, so that it can be individually deleted without having to delete the entire access list.  I'm using a 2821 router and can't find anyway to do this.  Thank you for any assistance you can give.

Charles

2821(config)# ip access-list extended TPS

2821(config-ext-nacl)# 10  permit ip host 192.168.5.1 host 192.168.6.1

2821(config-ext-nacl)# 20 permit ip 192.168.5.0 0.0.0.255 host 17.16.5.1

etc...

note you don't have to use increments of 10 ie. in the above i have used 10, 20 for acl entries but it's usually enough as this gives you the flexibility to add lines in between.

Jon

New Member

Re: Numbering rules within an Access List

Thanks for the help.  Is there any reason that the numbers don't show up in the configuration?

Hall of Fame Super Blue

Re: Numbering rules within an Access List

charles.e.davis@baesystems.com

Thanks for the help.  Is there any reason that the numbers don't show up in the configuration?

they should do ie.

2821# sh ip access-list TPS

Jon

New Member

Re: Numbering rules within an Access List

Roger that, thanks for the help.

308
Views
0
Helpful
4
Replies
CreatePlease login to create content