<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot delete a line from an Access-List in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/cannot-delete-a-line-from-an-access-list/m-p/2147875#M361693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual configuration lines are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;access-list acl_DMZ extended permit ip object-group DM_INLINE_NETWORK_3 any&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;access-list acl_DMZ extended permit icmp any any object-group DefaultICMP&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the command &lt;STRONG&gt;"show access-list acl_DMZ"&lt;/STRONG&gt; you get the opened format of the ACL which shows all the addresses/networks under the &lt;STRONG&gt;"object-groups"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to only remove the line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;access-list acl_DMZ line 1 extended permit ip 10.11.12.0 255.255.255.0 any&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would actually have to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;object-group networkDM_INLINE_NETWORK_3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; no network-object 10.11.12.0 255.255.255.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the single line would be removed. Notice though that if the above mentioned object-group is used in some other ACL rule too then the above network would be removed from there too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Jouni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2013 18:36:54 GMT</pubDate>
    <dc:creator>Jouni Forss</dc:creator>
    <dc:date>2013-02-20T18:36:54Z</dc:date>
    <item>
      <title>Cannot delete a line from an Access-List</title>
      <link>https://community.cisco.com/t5/network-security/cannot-delete-a-line-from-an-access-list/m-p/2147874#M361692</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to eliminate some hitcount 0 ACLs, and I'm getting the error "Specified access-list does not exist" when I try. Here's the ACL I'm working with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;access-list acl_DMZ line 1 extended permit ip object-group DM_INLINE_NETWORK_3 any (hitcnt=0) 0xa75c6fc3 &lt;/P&gt;&lt;P&gt;&amp;nbsp; access-list acl_DMZ line 1 extended permit ip 10.11.12.0 255.255.255.0 any (hitcnt=0) 0x78859c06 &lt;/P&gt;&lt;P&gt;&amp;nbsp; access-list acl_DMZ line 1 extended permit ip 192.168.1.0 255.255.255.0 any (hitcnt=0) 0x147dd28d &lt;/P&gt;&lt;P&gt;&amp;nbsp; access-list acl_DMZ line 1 extended permit ip 192.168.254.0 255.255.255.0 any (hitcnt=0) 0x88d63265 &lt;/P&gt;&lt;P&gt;access-list acl_DMZ line 2 extended permit icmp any any object-group DefaultICMP (hitcnt=0) 0x35224259 &lt;/P&gt;&lt;P&gt;&amp;nbsp; access-list acl_DMZ line 2 extended permit icmp any any echo-reply (hitcnt=0) 0x5295f227 &lt;/P&gt;&lt;P&gt;&amp;nbsp; access-list acl_DMZ line 2 extended permit icmp any any unreachable (hitcnt=0) 0x05778545 &lt;/P&gt;&lt;P&gt;&amp;nbsp; access-list acl_DMZ line 2 extended permit icmp any any time-exceeded (hitcnt=0) 0x84e68958&lt;SPAN id="mce_marker"&gt; &lt;/SPAN&gt;access-list acl_DMZ line 1 extended permit ip object-group DM_INLINE_NETWORK_3 any (hitcnt=0) 0xa75c6fc3 &lt;BR /&gt;&amp;nbsp; access-list acl_DMZ line 1 extended permit ip 10.11.12.0 255.255.255.0 any (hitcnt=0) 0x78859c06 &lt;BR /&gt;&amp;nbsp; access-list acl_DMZ line 1 extended permit ip 192.168.1.0 255.255.255.0 any (hitcnt=0) 0x147dd28d &lt;BR /&gt;&amp;nbsp; access-list acl_DMZ line 1 extended permit ip 192.168.254.0 255.255.255.0 any (hitcnt=0) 0x88d63265 &lt;BR /&gt;access-list acl_DMZ line 2 extended permit icmp any any object-group DefaultICMP (hitcnt=0) 0x35224259 &lt;BR /&gt;&amp;nbsp; access-list acl_DMZ line 2 extended permit icmp any any echo-reply (hitcnt=0) 0x5295f227 &lt;BR /&gt;&amp;nbsp; access-list acl_DMZ line 2 extended permit icmp any any unreachable (hitcnt=0) 0x05778545 &lt;BR /&gt;&amp;nbsp; access-list acl_DMZ line 2 extended permit icmp any any time-exceeded (hitcnt=0) 0x84e68958&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a test I'm trying to delete the 2nd line down "access-list acl_DMZ line 1 extended permit ip 10.11.12.0 255.255.255.0 any" by issuing the command "no access-list acl_DMZ line 1 extended permit ip 10.11.12.0 255.255.255.0 any". When I try to do so I get the error "Specified access-list does not exist"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what do I do to remove that line?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 01:03:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cannot-delete-a-line-from-an-access-list/m-p/2147874#M361692</guid>
      <dc:creator>Nathan Hawkins</dc:creator>
      <dc:date>2019-03-12T01:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a line from an Access-List</title>
      <link>https://community.cisco.com/t5/network-security/cannot-delete-a-line-from-an-access-list/m-p/2147875#M361693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual configuration lines are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;access-list acl_DMZ extended permit ip object-group DM_INLINE_NETWORK_3 any&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;access-list acl_DMZ extended permit icmp any any object-group DefaultICMP&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the command &lt;STRONG&gt;"show access-list acl_DMZ"&lt;/STRONG&gt; you get the opened format of the ACL which shows all the addresses/networks under the &lt;STRONG&gt;"object-groups"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to only remove the line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;access-list acl_DMZ line 1 extended permit ip 10.11.12.0 255.255.255.0 any&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would actually have to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;object-group networkDM_INLINE_NETWORK_3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; no network-object 10.11.12.0 255.255.255.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the single line would be removed. Notice though that if the above mentioned object-group is used in some other ACL rule too then the above network would be removed from there too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Jouni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 18:36:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cannot-delete-a-line-from-an-access-list/m-p/2147875#M361693</guid>
      <dc:creator>Jouni Forss</dc:creator>
      <dc:date>2013-02-20T18:36:54Z</dc:date>
    </item>
    <item>
      <title>Cannot delete a line from an Access-List</title>
      <link>https://community.cisco.com/t5/network-security/cannot-delete-a-line-from-an-access-list/m-p/2147876#M361694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Well, that doesnt address what I'm trying to do. I'm actually trying to (on a larger scale) remove several hitcount 0 ACLs, and I cannot remove an object from an object group without affecting access on other rules/ACLs. So given the below ACL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;access-list acl_DMZ line 1 extended permit ip object-group DM_INLINE_NETWORK_3 any (hitcnt=0) 0xa75c6fc3 &lt;/P&gt;&lt;P&gt;&amp;nbsp; access-list acl_DMZ line 1 extended permit ip 10.11.12.0 255.255.255.0 any (hitcnt=0) 0x78859c06 &lt;/P&gt;&lt;P&gt;&amp;nbsp; access-list acl_DMZ line 1 extended permit ip 192.168.1.0 255.255.255.0 any (hitcnt=0) 0x147dd28d &lt;/P&gt;&lt;P&gt;&amp;nbsp; access-list acl_DMZ line 1 extended permit ip 192.168.254.0 255.255.255.0 any (hitcnt=0) 0x88d63265 &lt;/P&gt;&lt;P&gt;access-list acl_DMZ line 2 extended permit icmp any any object-group DefaultICMP (hitcnt=0) 0x35224259 &lt;/P&gt;&lt;P&gt;&amp;nbsp; access-list acl_DMZ line 2 extended permit icmp any any echo-reply (hitcnt=0) 0x5295f227 &lt;/P&gt;&lt;P&gt;&amp;nbsp; access-list acl_DMZ line 2 extended permit icmp any any unreachable (hitcnt=0) 0x05778545 &lt;/P&gt;&lt;P&gt;&amp;nbsp; access-list acl_DMZ line 2 extended permit icmp any any time-exceeded (hitcnt=0) 0x84e68958 access-list acl_DMZ line 1 extended permit ip object-group DM_INLINE_NETWORK_3 any (hitcnt=0) 0xa75c6fc3 &lt;BR /&gt;&amp;nbsp; access-list acl_DMZ line 1 extended permit ip 10.11.12.0 255.255.255.0 any (hitcnt=0) 0x78859c06 &lt;BR /&gt;&amp;nbsp; access-list acl_DMZ line 1 extended permit ip 192.168.1.0 255.255.255.0 any (hitcnt=0) 0x147dd28d &lt;BR /&gt;&amp;nbsp; access-list acl_DMZ line 1 extended permit ip 192.168.254.0 255.255.255.0 any (hitcnt=0) 0x88d63265 &lt;BR /&gt;access-list acl_DMZ line 2 extended permit icmp any any object-group DefaultICMP (hitcnt=0) 0x35224259 &lt;BR /&gt;&amp;nbsp; access-list acl_DMZ line 2 extended permit icmp any any echo-reply (hitcnt=0) 0x5295f227 &lt;BR /&gt;&amp;nbsp; access-list acl_DMZ line 2 extended permit icmp any any unreachable (hitcnt=0) 0x05778545 &lt;BR /&gt;&amp;nbsp; access-list acl_DMZ line 2 extended permit icmp any any time-exceeded (hitcnt=0) 0x84e68958&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I remove select lines from an ACL?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 18:59:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cannot-delete-a-line-from-an-access-list/m-p/2147876#M361694</guid>
      <dc:creator>Nathan Hawkins</dc:creator>
      <dc:date>2013-02-20T18:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a line from an Access-List</title>
      <link>https://community.cisco.com/t5/network-security/cannot-delete-a-line-from-an-access-list/m-p/2147877#M361695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is no really clear and easy way to remove the rule without also adding something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we consider that we have this configuration line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;access-list acl_DMZ line 1 extended permit ip object-group DM_INLINE_NETWORK_3 any&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And that in opened format its shown like this (also noticiable by all of the lines having the same line number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; access-list acl_DMZ line 1 extended permit ip 10.11.12.0 255.255.255.0 any (hitcnt=0) 0x78859c06 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; access-list acl_DMZ line 1 extended permit ip 192.168.1.0 255.255.255.0 any (hitcnt=0) 0x147dd28d &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; access-list acl_DMZ line 1 extended permit ip 192.168.254.0 255.255.255.0 any (hitcnt=0) 0x88d63265 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no other way of removing the single line from the above other than removing the network-object from under the "object-group". Naturally this might not be possible if the object is used somewhere else also?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution in this case would therefore be that you add ACL rules for the above 2 rules you want to still keep (naturally you can add the "line x" to the below configuration)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; access-list acl_DMZ permit ip 192.168.1.0 255.255.255.0 any &lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; access-list acl_DMZ permit ip 192.168.254.0 255.255.255.0 any&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And finally remove the configuration line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;access-list acl_DMZ line 1 extended permit ip object-group DM_INLINE_NETWORK_3 any&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this you would be left with the above configured 2 lines (without using the "object-group") and the line you wanted to remove would not be part of the rules anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I dont think there is any other way of doing this since we are talking about an ACL ACE (Access Rule Entry) that uses an "object-group". Naturally for (hitcount=0) rules that dont use "object-group" you can just delete with the "no" parameter in front.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Jouni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 19:10:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cannot-delete-a-line-from-an-access-list/m-p/2147877#M361695</guid>
      <dc:creator>Jouni Forss</dc:creator>
      <dc:date>2013-02-20T19:10:45Z</dc:date>
    </item>
    <item>
      <title>Cannot delete a line from an Access-List</title>
      <link>https://community.cisco.com/t5/network-security/cannot-delete-a-line-from-an-access-list/m-p/2147878#M361696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above is a test access-list. What I'm really working with is something much larger where there are a few thousand rules with hundreds of thousands of ACE's. What I think I need to do is create ACLs that are the ACEs that are not hitcount 0 and then delete the rule with the hitcount 0 ACE's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 20:03:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cannot-delete-a-line-from-an-access-list/m-p/2147878#M361696</guid>
      <dc:creator>Nathan Hawkins</dc:creator>
      <dc:date>2013-02-20T20:03:57Z</dc:date>
    </item>
  </channel>
</rss>

