# Numbered ACLs With Subcommands

You've learned that numbered ACLs are configured in global config mode

```
R1(config)# access-list 1 deny 192.168.1.1
R1(config)# access-list 1 permit any
```

You also learned that named ACLs are configured with subcommands in a separate config mode:

```
R1(config)# ip access-list standard BLOCK_PC1
R1(config-std-nacl)# deny 192.168.1.1
R1(config-std-nacl)# permit any
```

However, in modern IOS you can also configured numbered ACLs in the exat same way as named ACLS

```
R1(config)# ip access-list standard 1
R1(config-std-nacl)# deny 192.168.1.1
R1(config-std-nacl)# permit any
```

This is just a different way of configuring numbered ACLs. However, in the running-config the ACL will display as if it was configured using the traditional method.

<figure><img src="/files/IpDr7eUpgDCP8b42ThHK" alt=""><figcaption></figcaption></figure>

## Advantages of named ACL config mode

* You can easily delete individual entries in the ACL with `no <entry-number>`

<figure><img src="/files/fENbs7LnhtwFR7abevC9" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/YhwHTxcLMcg9lDIUzZGp" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
When configuring/editing numbered ACLS from global config mode, **you can't delete individual entries, you can only delete the entire ACL!**
{% endhint %}

* You can insert new entries in between other entries by specifying the sequence number.

<figure><img src="/files/T5fZjirg8euQI6ELISnZ" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://davidjosearaujo.gitbook.io/online-courses/ccna-200-301/access-control-lists/numbered-acls-with-subcommands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
