Please enable JavaScript.
Coggle requires JavaScript to display documents.
Access Control Lists (Extended ACL (access-list access_list_name [ line …
Access Control Lists
Extended ACL
access-list access_list_name [ line line_number ] extended { deny | permit } protocol_argument source_address_argument dest_address_argument [ log [[ level ] [ interval secs ] | disable | default ]] [ inactive | time-range time_range_name ]
-
-
-
Examples
interface ethernet0
ip access-group 1 in
!
access-list 1 deny host 192.168.10.1
access-list 1 permit any
interface ethernet0
ip access-group 101 in
!
access-list 101 permit ip 192.168.10.0 0.0.0.255
192.168.200.0 0.0.0.255
ip access-group 102 in
!
access-list 102 permit tcp any host 192.168.1.100 eq ftp
access-list 102 permit tcp any host 192.168.1.100 eq ftp-data established
!
interface ethernet1
ip access-group 110 in
!
access-list 110 permit host 192.168.1.100 eq ftp any established
access-list 110 permit host 192.168.1.100 eq ftp-data any
Enter this command in order to permit Routing Information Protocol (RIP):
access-list 102 permit udp any any eq rip
Enter this command in order to permit Interior Gateway Routing Protocol (IGRP):
access-list 102 permit igrp any any
Enter this command in order to permit Enhanced IGRP (EIGRP):
access-list 102 permit eigrp any any
Enter this command in order to permit Open Shortest Path First (OSPF):
access-list 102 permit ospf any any
Enter this command in order to permit Border Gateway Protocol (BGP):
access-list 102 permit tcp any any eq 179
access-list 102 permit tcp any eq 179 any
-
interface ethernet0
ip access-group 102 in
!
access-list 102 deny tcp any any eq ftp
access-list 102 deny tcp any any eq ftp-data
access-list 102 permit ip any any
-
interface ethernet0
ip access-group 102 in
!
access-list 102 permit tcp any any eq www
access-list 102 permit tcp any any eq telnet
access-list 102 permit tcp any any eq smtp
access-list 102 permit tcp any any eq pop3
access-list 102 permit tcp any any eq 21
access-list 102 permit tcp any any eq 20
interface ethernet0
ip access-group 102 in
!
access-list 112 permit udp any any eq domain
access-list 112 permit udp any eq domain any
access-list 112 permit tcp any any eq domain
access-list 112 permit tcp any eq domain any
interface ethernet0
ip access-group 102 in
!
access-list 102 deny tcp any any eq 23
access-list 102 permit ip any any
Telnet uses TCP, port 23. This configuration shows that all TCP traffic destined to NetA for port 23 is blocked, and all other IP traffic is permitted.