ACuytyyiggL WITH PROGRAM
ACuytyyiggL WITH PROGRAM
(ACL)
WHAT IS ACL?
• In the Cisco IOS, an access control list is
a record that identifies and manages
traffic. After identifying that traffic, an
administrator can specify various events
that can happen to that traffic.
Types Of Access-List
• Standard ACL
• Extended ACL
• Named ACL
Standard Access-list
• Standard access list implement closest to
destination
• It works only with source IP address
• It will not block any protocols or services or
port numbers.
• Standard IP ACLs can filter only on the source
IP address inside a packet.
Standard acl format type
Extended Access-list
• This type of AL is the most preferred one and
the most advanced as well. Using this type of
AL you can filter traffic based on
– Source IP address
– Destination IP address
– Protocol (TCP, UDP)
– Port Numbers (Ftp 21, Telnet 23, etc.)
– Supplementary parameters
Extended acl format type
Named Access-list
• One of the disadvantages of using IP standard and IP extended
ACLs is that you reference them by number, which is not too
descriptive of its use. With a named ACL, this is not the case
because you can name your ACL with a descriptive name. The
ACL named sales is a lot more meaningful than an ACL
simply numbered 1. There are both IP standard and IP
extended named ACLs.
•
Another advantage to named ACLs is that they allow you to
remove individual lines out of an ACL. With numbered ACLs,
you cannot delete individual statements. Instead, you will need
to delete your existing access list and re-create the entire list
Access List Range
Type Range
IP Standard 1–99
IP Extended 100–199
Se2/0 20.0.0.2
20.0.0.1 Se2/0
Fa0/0 Fa1/0
Fa0/0 10.0.0.1
40
.1
.0.
.0
.0
0.
30
1
Switch Switch
Switch
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host r1
r1(config)#int se2/0
r1(config-if)#ip address 20.0.0.1 255.0.0.0
r1(config-if)#clock rate 64000
r1(config-if)#no shut
r2(config-if)#i
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to
up
r2(config-if)#int fa0/0
r2(config-if)#ip address 30.0.0.1 255.0.0.0
r2(config-if)#no shut
r2(config-if)#exit
r2(config)#int fa1/0
r2(config-if)#ip address 40.0.0.1 255.0.0.0
r2(config-if)#no shut
r2(config-if)#exit
r2(config)#router rip
r2(config-router)#network 20.0.0.0
r2(config-router)#network 30.0.0.0
r2(config-router)#network 40.0.0.0
r2(config)#access-list 1 deny 30.0.0.0 0.0.0.255
r2(config)#access-list 1 permit any
r2(config)#int se2/0
r2(config-if)#ip access-group 1 out