Extended ACL with object-group network
- Security
- Intermediate
- 10 min
- 3 steps
- Cisco IOS-style
Define an object-group network OFFICE listing two source hosts, then reference it in an extended ACL via addrgroup OFFICE. The single-place definition lets dozens of ACEs reuse the same set without copy-paste.
Open this lab in your browser →
Free · no install · no account
Scenario
Object-groups solve the "I have ten ACEs that all match the same fifteen source hosts" problem. Define the set once as an object-group network NAME, then reference it from each ACE. Updates to the set propagate to every reference. Cisco IOS object-group ACL syntax (12.4(20)T+): `` ip access-list extended FW permit ip addrgroup OFFICE any ` The addrgroup keyword is what binds the ACE to the named group. In this lab R1 has two interfaces. You'll define an object-group with two members, write an ACL referencing it, and apply the ACL inbound on Gi0/0`.
Topology
1 × router · Cisco IOS-style
R1— router
What you will do
Define
object-group network OFFICEwith two members:host 10.0.0.5andhost 10.0.0.6.Define
ip access-list extended FWwithpermit ip addrgroup OFFICE any.Apply
FWinbound onGi0/0:ip access-group FW in.
Open this lab in your browser →
More labs on this topic
- ACL: block a single hostBeginner · 10 min
- ACL: named extended — proto + src + dstIntermediate · 12 min
- Extended ACL — port range matchersIntermediate · 7 min
- ACL — time-gated entries with
time-rangeIntermediate · 12 min
This lab in other languages
Extended ACL mit object-group networkACL extendida con object-group networkACL estendida com object-group networkACL étendue avec object-group networkobject-group network के साथ Extended ACL使用 object-group network 的扩展 ACLACL estesa con object-group networkobject-group network を使った拡張 ACLobject-group network 을 사용한 확장 ACLРасширенный ACL с object-group networkobject-group network ile genişletilmiş ACLACL mở rộng với object-group network