The senior network engineer assigns you a task that requires ACL configuration. He provides the following diagram and the requirements below:
  1. Enable the ACL inbound on R2’s G0/1 interface.
  2. Permit packets coming from the host with IP 20.2.2.1
  3. Deny packets coming from the rest subnet 20.2.2.0/24
  4. Permit packets coming from a network with subnet 155.165.0.0/16
Now you are responsible to configure the R2 using the ACL standard number 1. Which of the following commands will you type to complete the task?

(A)
R2# configure terminal
R2(config)# access-list 1 permit 20.2.2.1
R2(config)# access-list 1 deny 20.2.2.0 0.0.0.255
R2(config)# access-list 1 permit 155.165.0.0 0.0.255.255
R2(config)# interface G0/2
R2(config-if)# ip access-group 1 in
(B)
R2# configure terminal
R2(config)# access-list 1 permit 20.2.2.1
R2(config)# access-list 1 deny 20.2.2.0 0.0.0.255
R2(config)# access-list 1 permit 155.165.0.0 0.0.255.255
R2(config)# interface G0/1
R2(config-if)# ip access-group 1 in
(C)
R2# configure terminal
R2(config)# access-list 1 permit 20.2.2.1
R2(config)# access-list 1 deny 20.2.2.0 0.0.0.255
R2(config)# access-list 1 permit 155.165.0.0 0.0.255.255
R2(config)# interface G0/1
(D)
R2# configure terminal
R2(config)# access-list 1 deny 20.2.2.1
R2(config)# access-list 1 deny 20.2.2.0 0.0.0.255
R2(config)# access-list 1 permit 155.165.0.0 0.0.255.255
R2(config)# interface G0/1
R2(config-if)# ip access-group 1 in


Comments