10 CCNA ICND2 - Configuring and Understanding ACL
10 CCNA ICND2 - Configuring and Understanding ACL
Ahmed Nurani
Access Control List???
Access Control Lists (ACLs) allow a router
to permit or deny packets based on a
variety of criteria
ACL is configured on Global Mode
ACL does not take effect before applying
to any interface
If a packet enters or exits an interface with
an ACL applied, the packet is compared
against the criteria of the ACL.
List is read from top to bottom
All un-matched ACL’s are dropped by a
default deny
With a standard ACL is only concerned
with one aspect and that’s the source IP
address of the packet.
For an extended ACL both the destination
and source of the packet is considered as
well as it’s port numbers.
Configuring standard ACL
- Denying a single host
Option 1
Config# access-list 1 deny 192.168.5.100
Option 2
Config# access-list 1 deny 192.168.5.100 0.0.0.0
Option 3
Config# access-list 1 deny host 192.168.5.100
Configuring standard ACL
- Permitting single host
Option 1 – Permitting a single host
Config# access-list 1 permit 192.168.5.100
- Permitting a subnet
Config# access-list 1 permit 192.168.5.100
0.0.255.255
Scenario 1 - Use a standard ACL to block
Host A from accessing Host B
- Router 3
Config# access-list 1 deny 192.168.10.50
Config# access-list permit any
Config# interface fastethernet 0/0
Config-IF# ip access-group 1 out
Scenario 2 - Use a standard ACL to prevent
Host A from Telnet-ting or SSHing R1
- Router 1
Config# access-list 70 deny 192.168.10.50
Config# access-list permit any
Config# line vty 0 4
Config-line# access-class 70 in
Scenario 3 - Use an extended ACL to
prevent Host A from accessing R2 WAN link
- Router 2