Home > Access-list Questions

Access-list Questions

January 13th, 2021 Go to comments

Note: If you are not sure about Access list, please read our Access List Tutorial.

Question 1

Explanation

The “deny tcp any host 10.30.0.100 eq 80” command means “block all (any) traffic from accessing web server at 10.30.0.100 on port 80”. And since it is applied to VLAN 20 interface so only computers on VLAN 20 are affected.

In summary, just notice that 10.30.0.100 here is the destination IP address, not source address.

Note: The traffic flow from hosts in VLAN 20 to the Web Server is: host in VLAN 20 -> Interface VLAN 20 -> Interface VLAN 30 -> Web Server. If we place the ACL: host in VLAN 20 -> (ACL Inbound) Interface VLAN 20 -> Interface VLAN 30 -> Web Server. Therefore the ACL can block traffic from VLAN 20.

Question 2

Question 3

Explanation

If we have a matching permit statement too high in the access list then it will be matched first before we can deny i -> Answer B is correct.

The statement that an ACL always has an implicit deny any at the bottom has one exception. And that exception is when the ACL is empty. If you use ip access-group to apply an ACL and that ACL has no statements then all traffic is permitted -> Answer D is correct.

Reference: https://community.cisco.com/t5/routing/apply-empty-acl-what-happens/td-p/740473

Note: Answer C seems to be correct too but we only have two choices in this question and this answer is not in the best answers. If a matching permit statement is too broadly defined (for example if we only want to permit TCP traffic then we should not permit “ip” traffic, which includes both TCP and UDP).

Question 4

Explanation

To deny SSH, we must block TCP port 22 and we need to apply the ACL to Gi0/0 interface (which connects to PC-1).

Note: TCP port 23 is used for Telnet.

Question 5

Explanation

By placing the ACL closest to the source, we can reduce unnecessary traffic passing between two routers and the processing time of the router.

Question 6

Question 7

Explanation

The operations team resides on 10.20.1.0/25 network which is a part of 10.20.1.0/24 network so we need to remove the “deny” statement of the 10.20.1.0/25 network to allow SSH.

Comments (16) Comments
  1. Mohammed
    June 21st, 2020

    Hello

  2. Anonymous
    June 29th, 2020

    very good

  3. Mouloud
    October 22nd, 2020

    very good , thank you

  4. Question 1
    March 4th, 2021

    Hi Team

    Question one has 10.30.0.0 as the host should it not be 10.20.0.0?

    Thanks

  5. test
    March 6th, 2021

    Hi @9tut, for question 7, isnt choice D more appropriate ?

  6. test
    March 6th, 2021

    I meant choice B sorry, isnt B more correct ?

  7. Garry
    April 22nd, 2021

    @9tut, In Q6, the option D is : R1(config)# access-list 5 permit 10.0.70.0 0.0.0.127
    should not the subnet mask be 0.0.0.128 instead of 127 ?

  8. Mitchell
    May 3rd, 2021

    @Garry yeah you are right…it should be 0.0.0.128 instead of 127…@9tut

  9. Alex
    May 12th, 2021

    @9tut Q4 isn’t C the right answer ? Because it denies SSH access from any interface. If you configure the ACL just on ethernet interface, we are not restricting access from he loopback interfaces.

  10. Q A
    July 1st, 2021

    Hello

    i can’t see the questions or the answers ?! only the explanation ,
    anyone can see the Q and A or just me ?!

  11. Shiva
    July 28th, 2021

    @9tut

    I think Q4 ,D is correct.

    Please explain.

  12. 9tut
    July 28th, 2021

    @Shiva: To deny SSH, we must block TCP port 22 and we need to apply the ACL to Gi0/0 interface (which connects to PC-1).

    Note: TCP port 23 is used for Telnet.

  13. @9tut
    July 29th, 2021

    Thank for your help

  14. Sammy
    December 29th, 2021

    @9tut, Q1. The answer mentioned is B:
    config t
    ip access-list extended wwwblock
    deny tcp any host 10.30.0.100 eq 80
    permit ip any any
    int vlan 20
    ip access-group wwwblock in

    Should it not be deny tcp 10.20.0.0 0.0.0.255 host 10.30.0.100 eq 80 ?

  15. sipoy
    April 9th, 2022

    Good questions. Thank you guys.

  16. Tsubaki
    July 13th, 2023

    on Q7 why we can’t just permit the /25 ? is it the rule since it’s a subnetwork?

Add a Comment