Standard ACL configuration: access-group, access-class and verification
Sign in to read this lesson
In the lab the routers KAPAZ and SAHDAG are connected over 10.0.45.0/24 and each has a loopback. The command access-list 10 permit 10.0.45.0 0.0.0.255 permits only this network. The ACL is applied to an interface with ip access-group 10 in and verified with show ip interface and show access-lists. A ping sourced from the loopback hits the invisible deny any. ACL 20 with permit any blocks only one network. no access-list 20 deny removes the whole ACL. On the VTY lines an ACL is applied with access-class and only lets Telnet in from the permitted network.
What you will learn
access-list 10 permit 10.0.45.0 0.0.0.255: the ACL is created in global configuration. Because of the invisibledeny anyat the end, a single permit statement blocks everything else.- Applying it to an interface:
ip access-group 10 in. Verification:show ip interface(Inbound access list is 10) andshow access-lists(the matches count per statement). - With
ping ... source loopback 0you change the packet's source IP to test the ACL. U.U.U: the packet was dropped by the ACL and the router sent back an "unreachable" message. no access-list 20 deny ...removes not just one statement but the whole ACL 20. To remove a single statement you use the ACL editor.- On the VTY lines you use
access-class 30 in, notaccess-group: Telnet/SSH is only possible from the source the ACL permits.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.