Extended and named ACLs: protocol, port, log and the ACL editor
Sign in to read this lesson
An extended ACL statement is built as action, protocol, source (+port), destination (+port). In the lab, access-list 110 permit tcp 172.16.1.0 0.0.0.255 host 172.16.2.1 eq 80 permits KAPAZ's loopback network to connect to SAHDAG's HTTP server. The statement deny ip any any log makes the invisible deny visible and writes dropped packets to the console. To remove a single statement you enter the editor with ip access-list extended 110 and type no 20. A named ACL is created with ip access-list extended ICMP-BLOK; it blocks ping and permits all other traffic.
What you will learn
- An extended ACL statement: action + protocol + source (+port) + destination (+port). For example:
access-list 110 permit tcp 172.16.1.0 0.0.0.255 host 172.16.2.1 eq 80. - Protocol: ip (all IP traffic), tcp, udp, icmp, ospf, eigrp... Port operators: eq (equal), gt, lt, neq, range.
deny ip any any logmakes the invisible deny visible: dropped packets are written to the console with a%SEC-6-IPACCESSLOGPmessage and counted as matches.- ACL editor:
ip access-list extended 110→no 20removes only statement 20. Withremarkyou can add a comment to an ACL. - Named ACL:
ip access-list extended ICMP-BLOK→ statements →ip access-group ICMP-BLOK in. A name works for both standard and extended ACLs.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.