Home > Access List Tutorial

Access List Tutorial

February 13th, 2011 Go to comments

In this tutorial we will learn about access list.

Access control lists (ACLs) provide a means to filter packets by allowing a user to permit or deny IP packets from crossing specified interfaces. Just imagine you come to a fair and see the guardian checking tickets. He only allows people with suitable tickets to enter. Well, an access list’s function is same as that guardian.

Access lists filter network traffic by controlling whether packets are forwarded or blocked at the router’s interfaces based on the criteria you specified within the access list.

To use ACLs, the system administrator must first configure ACLs and then apply them to specific interfaces. There are 3 popular types of ACL: Standard, Extended and Named ACLs.

Standard IP Access List

Standard IP lists (1-99) only check source addresses of all IP packets.

Configuration Syntax

access-list access-list-number {permit | deny} source {source-mask}

Apply ACL to an interface

ip access-group access-list-number {in | out}

Example of Standard IP Access List

Standard_ACL_Example1.jpg

Configuration:

In this example we will define a standard access list that will only allow network 10.0.0.0/8 to access the server (located on the Fa0/1 interface)

Define which source is allowed to pass:

Router(config)#access-list 1 permit 10.0.0.0 0.255.255.255

(there is always an implicit deny all other traffic at the end of each ACL so we don’t need to define forbidden traffic)

Apply this ACL to an interface:

Router(config)#interface Fa0/1

Router(config-if)#ip access-group 1 out

The ACL 1 is applied to permit only packets from 10.0.0.0/8 to go out of Fa0/1 interface while deny all other traffic. So can we apply this ACL to other interface, Fa0/2 for example? Well we can but shouldn’t do it because users can access to the server from other interface (s0 interface, for example). So we can understand why an standard access list should be applied close to the destination.

Note: The “0.255.255.255″ is the wildcard mask part of network “10.0.0.0″. We will learn how to use wildcard mask later.

Extended IP Access List

Extended IP lists (100-199) check both source and destination addresses, specific UDP/TCP/IP protocols, and destination ports.

Configuration Syntax

access-list access-list-number {permit | deny} protocol source {source-mask} destination {destination-mask} [eq destination-port]

Example of Extended IP Access List

Extended_ACL_Example1.jpg

In this example we will create an extended ACL that will deny FTP traffic from network 10.0.0.0/8 but allow other traffic to go through.

Note: FTP uses TCP on port 20 & 21.

Define which protocol, source, destination and port are denied:

Router(config)#access-list 101 deny tcp 10.0.0.0 0.255.255.255 187.100.1.6 0.0.0.0 eq 21

Router(config)#access-list 101 deny tcp 10.0.0.0 0.255.255.255 187.100.1.6 0.0.0.0 eq 20

Router(config)#access-list 101 permit ip any any

Apply this ACL to an interface:

Router(config)#interface Fa0/1

Router(config-if)#ip access-group 101 out

Notice that we have to explicit allow other traffic (access-list 101 permit ip any any) as there is an “deny all” command at the end of each ACL.

As we can see, the destination of above access list is “187.100.1.6 0.0.0.0″ which specifies a host. We can use “host 187.100.1.6″ instead. We will discuss wildcard mask later.

In summary, below is the range of standard and extended access list

Access list type Range
Standard 1-99, 1300-1999
Extended 100-199, 2000-2699

Comments (378) Comments
Comment pages
1 5 6 7 8 458
  1. charles
    August 31st, 2014

    Nice explanation on ACL…….

  2. Vichhaiy
    September 2nd, 2014

    Can anyone send me latest dumps, i need to prepare for exam next two weeks, vichhaiyserey@gmail Thanks you

  3. saranya
    September 7th, 2014

    can u send me latest ccna 200-120 dumps to saran91aji@gmail.com thank you in advance

  4. lai
    September 8th, 2014

    send me latest dumps please bakalai@gmail.com

  5. james
    September 10th, 2014

    kindly send the latest dumps pls ezrahjames@yahoo.com thank you so much :)

  6. Yinka
    September 10th, 2014

    kindly send me the latest dumps olaosepin@gmail.com thanks

  7. shivam jain
    September 12th, 2014

    please provide me also latest dumps .
    shivamx51@gmail.com

  8. subhy
    September 15th, 2014

    kindly send me the latest dumps subhymohammed@gmail.com thanks

  9. putty
    September 16th, 2014

    Hi my CCNA GUYS,
    I AM HAPPY TO SEE MY PEERS HERE. I WILL VERY THANKFUL AND HIGH APPRECIATION IF YOU CAN SEND ME THE LATEST CCNA DUMPS. MY EMAIL ID IS puttyrobin@yahoo.com

    Many many thanks

  10. putty
    September 16th, 2014

    Kindly send me latest CCNA DUMPS to puttyrobin@yahoo.com

  11. fly
    September 19th, 2014

    Kindly send me latest dumps on my e-mail flyemirates2012@yahoo.com
    Thanks..

  12. Aman Goyal
    September 24th, 2014

    How to use the wildcard mask?

    I believe there is a mistake to calculate wildcard mask on the given example. it should be 0.0.0.15

  13. ovidaqkiss
    September 25th, 2014

    kindly send me the latest dumps for ccna exam to ovidaqkiss@yahoo.com

  14. Anonymous
    September 29th, 2014

    Very supportive of your peers, nice job!!

  15. Saamysaamy
    September 30th, 2014

    I think on the given example the mask is 172.23.16.0/20 not /28 there is a mistake because 0.0.15.255 = /20 and the 0.0.0.15 = /28

  16. Tony
    October 4th, 2014

    Extended ACL need to be applied as close as source IP, On your example is is applied close to the destination and outbound – please correct me if i am worng

  17. 9tut
    October 6th, 2014

    @Tony: It depends on the situation. “Extended ACL need to be applied as close as source IP” is just a recommendation.

  18. 9tut
    October 6th, 2014

    @Saamysaamy: Thanks for your detection. We have just updated it!

  19. Alice.
    October 13th, 2014

    can u send me latest ccna 200-120 dumps to mambodee@mailinator.com thank you in advance

  20. Joe
    October 15th, 2014

    Kindly send me latest ccna 200-120 dumps to cannent@gmail.com Thks

  21. Yoga
    October 16th, 2014

    can u send me latest ccna 200-120 dumps to my email yoga.hadi.saputra89@gmail.com thanks before

  22. Anonymous
    October 19th, 2014

    Dumps requester is an idiot.

  23. Collins Ouma
    October 20th, 2014

    kindly send me latest dumps to collyouma55@gmail.com

  24. Umair
    October 25th, 2014

    kindly send me latest dumps of ccna! umair.emi619@gmail.com

  25. Kors
    October 28th, 2014

    Please send me the latest dumps of CCNA 200-120 idkors@gmail.com

  26. josh
    October 29th, 2014

    kindly send me latest dumps of ccna 200-120! josueriv08@gmail.com

  27. Ashwin
    October 30th, 2014

    Please anybody help me..taking exam in 1 week. Please send me the latest CCNA dumps 200-120
    Email: ashking_leo@hotmail.com
    highly appreciate your help..thnks

  28. shigo
    October 30th, 2014

    My question that after applying an access list to an interface in a particular direction, why is it that traffic is not allowed in the opposite direction by default? Using the above config for example, i tried to deny hosts on d left LAN icmp access to hosts on the right LAN. It worked as expected but hosts on the right LAN are not able to acces the hosts on the left LAN.

  29. Anonymous
    November 2nd, 2014

    i have latest dumps of ccna 200/120 my gmail i.d sabeehhaider14@gmail.com

  30. Noor akhtar
    November 7th, 2014

    kindly send me on noorakhtar44@yahoo.com
    how we will deny or permit a whole network on extanded acl plz i will be very thankful to u ?

  31. Noor akhtar
    November 7th, 2014

    kindly send me latest dumps on noorakhtar44@yahoo.com

  32. bahati
    November 9th, 2014

    can someone send me latest Dumps in bahatinkwabi@yahoo.com please………..

  33. Seemab
    November 20th, 2014

    ON which version of Packet tracer can I run simulations?

  34. Veerender
    November 20th, 2014

    Please e-mail me latest dumps to veerender.keerthi@live.com

    Thanks in Advance

  35. DbongZ
    November 22nd, 2014

    Wow it makes sense now
    Can i please have the latest “player” an the simulators on cylesterbongani@gmail.com

  36. Ronald
    November 24th, 2014

    can anyone send me the latest dump to rroy411@gmail.com

  37. harshit dubey
    November 27th, 2014

    please send me the lastest dumps to harshit.ccna@gmail.com

  38. san
    December 1st, 2014

    please share the latest dumps to bugonearth7@gmail.com

  39. John Moses
    December 2nd, 2014

    please send me the latest to email john2wambugu@gmail.com

  40. Anonymous
    December 3rd, 2014

    please share the latest dumps to raosandeep0@gmail.com

  41. Croft
    December 5th, 2014

    dear sir or madam. i have my ccna icnd2 exam monday Dec 8 2014
    please send me latest dumps.
    much appreciado.
    p.s. i love this site and you guys are the bomb.
    peace!

  42. Croft
    December 5th, 2014

    my email is techs7777@gmail.com exam on monday 8 2014 for icnd2 ccna
    thanks

  43. Talentedkiller
    December 11th, 2014

    Can anyone send me latest dumps, i need to prepare for exam next two weeks, Talentedkillerno1@gmail.com Thanks you

  44. Talentedkiller
    December 11th, 2014

    Please send me the latest dumps of CCNA 200-120 talentedkillerno1@gmail.com

  45. same watson in canada
    December 16th, 2014

    is same Watson can use in Toronto canada

  46. dagem
    December 18th, 2014

    pls if anyone can send me latest ccna 200-120 dumps to dagemtaye@gmail.com

  47. CHRISTOPHEN.P
    December 22nd, 2014

    Hai friends,
    I am very happy about this group.Nice & well explanation in all simulation..and please if you can send me christophen23111990@gmail.com the new CCNA 200-120 Dums to i will be very greatfull…

  48. Mariam
    December 27th, 2014

    can u send me latest ccna 200-120 dumps to meriehassou@gmail.com thank you in advance

  49. Leo
    December 31st, 2014

    Can someone explain why for routing in the subnet mask 255 = network ID & 0 = wildcard
    BUT in ACL’s 0 = network ID & 255 = wildcard?

    Why isnt it one way or the other?

    Thanks
    Leo

  50. uzion
    January 7th, 2015

    Kindly send me latest CCNA 200-120 DUMPS PDF to atmega128a1@hotmail.com
    thx

Comment pages
1 5 6 7 8 458
Add a Comment