Ad space (banner)
📡Networking Lessons
Lesson 32 / 39

Creating an Access List with access-list

When you want to allow or block traffic from specific networks only, use access-list. It defines rules — known as an ACL (access control list) — that permit or deny traffic.

The syntax is access-list number permit/deny source-ip. The number decides the ACL type (standard, extended, and so on), and rules are evaluated top to bottom.

Running access-list 10 permit 192.168.1.0 adds one rule to ACL number 10: permit traffic from the 192.168.1.0 network.

A common stumble is forgetting that creating an ACL by itself does nothing — it only takes effect once applied to an interface or vty line with access-group or similar.

In real work, ACLs are the core of security control: restricting management access to specific administrator IPs, limiting traffic between departments, and more.

Networking
Try it (type this into the pseudo terminal)
access-list 10 permit 192.168.1.0

🧑‍💻 You can type this command into the Networking pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)