×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.
Edison Ortiz Sun, 07/20/2008 - 20:02
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

Let's take this ACL as an example:


R2#sh ip access-lists

Extended IP access list 101

10 permit ip host 1.1.1.1 host 2.2.2.2

20 permit ip host 1.1.1.1 host 3.3.3.3

30 permit ip host 1.1.1.1 host 4.4.4.4


You noticed how the output has a number from 10 to 30 on each ACE?


Now, let's say I want to knock out line number 20.


R2(config)#ip access-list extended 101

R2(config-ext-nacl)#no 20 permit ip host 1.1.1.1 host 3.3.3.3

R2(config-ext-nacl)#end

R2#sh ip access-lists

Extended IP access list 101

10 permit ip host 1.1.1.1 host 2.2.2.2

30 permit ip host 1.1.1.1 host 4.4.4.4


HTH,


__


Edison.


Please rate helpful posts


jamesl0112 Mon, 07/21/2008 - 00:06
User Badges:
  • Bronze, 100 points or more

Edison,


That's pretty handy - I didn't know you could edit a numbered ACL as if it was a named ACL.

Marwan ALshawi Sun, 07/20/2008 - 20:04
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

When you edit an ACL, it requires special attention. For example, if you intend to delete a specific line from a numbered ACL that exists as shown here, the entire ACL is deleted


http://www.cisco.com/en/US/products/sw/secursw/ps1018/products_tech_note09186a00800a5b9a.shtml#editacls


Rate if helpful

gojericho0 Mon, 07/21/2008 - 07:16
User Badges:
  • Bronze, 100 points or more

Also, i believe you need at least version 12.3 of the IOS in order to delete numbered access-lists line by line

AJAZ NAWAZ Mon, 07/21/2008 - 08:47
User Badges:
  • Silver, 250 points or more

just tested on 65k with 12.2 - all good. I suspect this method has been available for longtime, it's just been hidden (not to be confused with 'hidden' commands).


Ajaz

yee.lay.yo Mon, 07/21/2008 - 18:07
User Badges:

Hi Edison,


The problem fix by your instruction.


Thanks a lot.

Actions

This Discussion