Numbering rules within an Access List

Answered Question
Sep 2nd, 2010
User Badges:

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.

Correct Answer by Jon Marshall about 6 years 9 months ago

[email protected]


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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
Jon Marshall Thu, 09/02/2010 - 13:30
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

[email protected]


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

charles.e.davis... Thu, 09/02/2010 - 13:37
User Badges:

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

Actions

This Discussion