cisco_aria

Learn Cisco Packet Tracer


Project maintained by ariafatah0711 Hosted on GitHub Pages — Theme by mattgraham

access list

pengenalan

jenis jenis ACL

ACL Standard

ACL Extended

number ACL & Named ACL

Menentukan Penempatan ACL Pada Interface

ACL on VTY

configuration

ACL

# ACL Standar
access-list 1 permit host 192.168.10.5

# ACL Extends
access-list 101 permit icmp host 192.168.10.5 host 172.30.10.7

# number ACL
ip access-list [standard/extended] [nama_ACL] <enter>

# syntax
access-list <number> {permit | deny} <source> [log]! Modern syntax
ip access-list standard {<number> | <name>} [<sequence>] {permit | deny} <source> [log]

contoh

# template
ip access-list standard ALLOW_HOST 
permit host 192.168.10.7

# access list standar
access-list 10 deny 192.168.1.0 0.0.0.255
access-list 10 permit any
int fa0/1
ip access-group 1 out

# access list extend
access-list 100 deny icmp 192.168.1.0 0.0.0.255 host 20.20.20.2 echo
access-list 100 permit ip any any
int fa0/1
ip access-group 100 out

# cant www can ftp
access-list 101 deny tcp 192.168.1.0 0.0.0.255 host 20.20.20.1 eq www # eq itu untuk po
access-list 101 permit tcp host 192.168.10.1 host 20.20.20.1 eq ftp
access-list 101 deny tcp host 192.168.10.2 host 20.20.20.1 eq ftp
access-list 101 permit tcp host 192.168.10.2 host 20.20.20.1 eq www
access-list 101 permit ip any any # selain ip disana bisa mengakses

int fa 0/0
ip access-group 101 in

show

(c)# show access-lists
(c)# show access-lists [<number> | <name>]
(c)# show ip access-lists [<number> | <name>]
(c)# show ip access-lists interface <interface>
(c)# show ip access-lists dynamic
(c)# show ip interface [<interface>]
(c)# show time-range [<name>]