5.5.4 Module Quiz – ACLs for IPv4 Configuration (Answers)

5.5.4 Module Quiz – ACLs for IPv4 Configuration Answers

1. The computers used by the network administrators for a school are on the network. Which two commands are needed at a minimum to apply an ACL that will ensure that only devices that are used by the network administrators will be allowed Telnet access to the routers? (Choose two.)

  • access-class 5 in
  • access-list standard VTY
  • access-list 5 permit
  • ip access-group 5 in
  • ip access-group 5 out
  • access-list 5 deny any

Explanation: Numbered and named access lists can be used on vty lines to control remote access. The first ACL command, access-list 5 permit, allows traffic that originates from any device on the network. The second ACL command, access-class 5 in, applies the access list to a vty line.

2. Consider the configured access list.

R1# show access-lists
extended IP access list 100
deny tcp host host eq telnet
deny tcp host host eq telnet
permit ip any any (15 matches)

What are two characteristics of this access list? (Choose two.)

  • Only the device can telnet to the router that has the IP address assigned.
  • The device is not allowed to telnet to the device.
  • Any device can telnet to the device.
  • A network administrator would not be able to tell if the access list has been applied to an interface or not.
  • Any device on the network (except the device) can telnet to the router that has the IP address assigned.
  • The access list has been applied to an interface.

Explanation: The access list stops Telnet traffic from the device to the device. It also stops Telnet traffic from device to All other TCP/IP-based transmissions are allowed. The access list is working because there have been 15 matches on the last ACE.

3. Which command will verify the number of packets that are permitted or denied by an ACL that restricts SSH access?

  • show ip interface brief
  • show ip ssh
  • show running-config
  • show access-lists

Explanation: The show-access lists command will display each line of an access list and the number of matches to each statement. The show running-config command will show the statements as they were configured, but provides no information on matches. The show ip ssh command gives general information about the SSH configuration.

4. Which access list statement permits HTTP traffic that is sourced from host port 4300 and destined to host

  • access-list 101 permit tcp any eq 4300
  • access-list 101 permit tcp eq 80
  • access-list 101 permit tcp eq www eq www
  • access-list 101 permit tcp eq 4300 eq www
  • access-list 101 permit tcp host eq 80 eq 4300

Explanation: The HTTP protocol uses port 80 and is designated in an ACL using the eq 80 parameter or by using eq www. The first IP address listed in an ACL is the source address along with the appropriate wildcard mask. With a source IP address of and a wildcard mask of, then IP addresses from to are permitted.

5. When configuring router security, which statement describes the most effective way to use ACLs to control Telnet traffic that is destined to the router itself?

  • The ACL must be applied to each vty line individually.
  • The ACL is applied to the Telnet port with the ip access-group command.
  • The ACL should be applied to all vty lines in the in direction to prevent an unwanted user from connecting to an unsecured port.
  • Apply the ACL to the vty Ilines without the in or out option required when applying ACLS to interfaces.

Explanation: Because someone from outside the router is trying to use a protocol such as Telnet or SSH to gain access to the router, the ACL direction has to be inward into the router through the vty lines.

6. What packets would match the access control list statement that is shown below?

access-list 110 permit tcp any eq 22
  • any TCP traffic from the network to any destination network
  • SSH traffic from the network to any destination network
  • SSH traffic from any source network to the network
  • any TCP traffic from any host to the network

Explanation: The statement, access-list 110 permit tcp any eq 22, will match traffic on port 22, which is SSH, that is sourced from network with any destination.

7. Consider the access list command applied outbound on a router serial interface.

access-list 100 deny icmp any echo reply

What is the effect of applying this access list command?

  • Users on the network are not allowed to transmit traffic to any other destination.
  • The only traffic denied is ICMP-based traffic. All other traffic is allowed.
  • The only traffic denied is echo-replies sourced from the network. All other traffic is allowed.
  • No traffic will be allowed outbound on the serial interface.

Explanation: At the end of every extended access list is an implicit deny ip any any statement so that no traffic will be allowed to be sent out the serial interface.

8. Consider the following output for an ACL that has been applied to a router via the access-class in command. What can a network administrator determine from the output that is shown?

R1# <output omitted>
Standard IP access list 2
10 permit, wildcard bits (2 matches)
20 deny any (1 match)
  • Traffic from one device was not allowed to come into one router port and be routed outbound a different router port.
  • Two devices were able to use SSH or Telnet to gain access to the router.
  • Two devices connected to the router have IP addresses of 192.168.10.x.
  • Traffic from two devices was allowed to enter one router port and be routed outbound to a different router port.

Explanation: The access-class command is used only on VTY ports. VTY ports support Telnet and/or SSH traffic. The match permit ACE is how many attempts were allowed using the VTY ports. The match deny ACE shows that a device from a network other than was not allowed to access the router through the VTY ports.

9. Which two commands will configure a standard ACL? (Choose two.)

  • Router(config)# access-list 45 permit host
  • Router(config)# access-list 10 permit any
  • Router(config)# access-list 20 permit host any any
  • Router(config)# access-list 35 permit host
  • Router(config)# access-list 90 permit

Explanation: Standard access lists have the syntax of access-list and a number between 1 and 99 followed by the permit or deny keyword and the source IP address (that includes a wildcard mask).

10. To facilitate the troubleshooting process, which inbound ICMP message should be permitted on an outside interface?

  • time-stamp reply
  • time-stamp request
  • echo request
  • echo reply
  • router advertisement

Explanation: By allowing the ICMP echo reply message inbound to the organization, internal users are allowed to ping external addresses (and the reply message allowed to return).

11. What two ACEs could be used to deny IP traffic from a single source host to the network? (Choose two.)

  • access-list 100 deny ip
  • access-list 100 deny ip host
  • access-list 100 deny ip host
  • access-list 100 deny ip
  • access-list 100 deny ip
  • access-list 100 deny ip

Explanation: There are two ways to identify a single host in an access list entry. One, is to use the host keyword with the host IP address, the other is to use a wildcard mask of with the host IP address. The source of the traffic to be inspected by the access list goes first in the syntax and the destination goes last.

12. An administrator has configured an access list on R1 to allow SSH administrative access from host Which command correctly applies the ACL?

  • R1(config-line)# access-class 1 in
  • R1(config-line)# access-class 1 out
  • R1(config-if)# ip access-group 1 out
  • R1(config-if)# ip access-group 1 in

Explanation: Administrative access over SSH to the router is through the vty lines. Therefore, the ACL must be applied to those lines in the inbound direction. This is accomplished by entering line configuration mode and issuing the access-class command.

13. Which two keywords can be used in an access control list to replace a wildcard mask or address and wildcard mask pair? (Choose two.)

  • all
  • any
  • gt
  • host
  • most
  • some

Explanation: The host keyword is used when using a specific device IP address in an ACL. For example, the deny host command is the same as the deny command. The any keyword is used to allow any mask that meets the criteria. For example, the permit any command is the same as the permit command.

14. Which two packet filters could a network administrator use on an IPv4 extended ACL? (Choose two.)

  • Computer type
  • Destination MAC address
  • Destination UDP port number
  • ICMP message type
  • Source TCP hello address

Explanation: Extended access lists commonly filter on source and destination IPv4 addresses and TCP or UDP port numbers. Additional filtering can be provided for protocol types.

15. In the second ACE shown in the following example, port 400 was incorrectly specified instead of port 443. What is the best way to correct this error?

R1# show access-lists
Extended IP access list SURFING
    10 permit tcp any eq
    20 permit tcp any eq
  • Copy the ACL into a text editor, correct the ACE, and recopy the ACE to the router.
  • Create a new named ACL and apply it to the router interface.
  • Enter permit tcp any eq 443.
  • Enter the no 20 keyword, and then enter permit tcp any eq 443.
  • Remove the entire ACL and then re-create it with the correct ACE.

Explanation: You can use the ip access-list command to edit an existing numbered or named ACL. The ACL ACEs can be removed using the no command followed by the sequence number.

16. A network administrator needs to configure a standard ACL so that only the workstation of the administrator with the IP address can access the virtual terminal of the main router. Which two configuration commands can achieve the task? (Choose two.)

  • R1(config)# access-list 10 permit host
  • R1(config)# access-list 10 permit
  • R1(config)# access-list 10 permit
  • R1(config)# access-list 10 permit
  • R1(config)# access-list 10 permit

Explanation: To permit or deny one specific IPv4 address, either the wildcard mask (used after the IP address) or the wildcard mask keyword host (used before the IP address) can be used.

17. A network administrator is writing a standard ACL to deny any traffic from the network but permit all other traffic. Which two commands should be used? (Choose two.)

  • R1(config)# access-list 55 deny any
  • R1(config)# access-list 55 permit any
  • R1(config)# access-list 55 host
  • R1(config)# access-list 55 deny
  • R1(config)# access-list 55 deny
  • R1(config)# access-list 55

Explanation: To deny traffic from the network, the access-list 55 deny command is used. To permit all other traffic, the access-list 55 permit any statement is added.

18. In the following example, you forgot to enter an ACE to deny the user at IP address Which command would correctly enter the ACE to filter this address?

R1# show access-lists
Extended IP access list PERMIT-NET
    10 permit ip any
    20 permit ip any
  • deny ip host
  • 5 deny ip host
  • 15 deny ip host
  • 25 deny ip host

Explanation: The host must be filtered first, so adding sequence 5 at the beginning of the ACE would insert it before the network is permitted.

19. You create a standard ACL called PERMIT-VTY to permit only an administrative host vty access to the router. Which line configuration command would correctly apply this ACL to the vty lines?

  • access-class PERMIT-VTY in
  • access-class PERMIT-VTY out
  • ip access-group PERMIT-VTY in
  • ip access-group PERMIT-VTY out

Explanation: The access-group acl-name in line configuration mode command correctly applies a standard ACL to the vty interfaces.

20. What effect does the permit tcp 10.10.100 any eq www extended named ACE have when implemented inbound on a G0/0 interface?

  • All TCP traffic is permitted, and all other traffic is denied.
  • All traffic from 10.10.100/24 is permitted anywhere on any port.
  • The command is rejected by the router because it is incomplete.
  • Traffic originating from 10.10.100/24 is permitted to all TCP port 80 destinations.

Explanation: Traffic originating from 10.10.100/24 is permitted to all destinations listening to TCP port 80 (that is, www).

21. What does the CLI prompt change to after you enter the command ip access-list extended AAAFILTER in global configuration mode?

  • R1(config-ext-nacl)#
  • R1(config-if)#
  • R1(config-line)#
  • R1(config-router)#
  • R1(config-std-nacl)#

Explanation: After you enter the command, you go into named extended ACL configuration mode R1(config-ext-nacl).

Notify of

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x