Which Cisco Internetwork Operating System (IOS) command…

Which Cisco Internetwork Operating System (IOS) command is used to apply an access list to an interface?

Which Cisco Internetwork Operating System (IOS) command is used to apply an access list to an interface?

A.
router(config)# ip access-group

B.
router(config-if)# ip access-group

C.
router(config)# ip access-list

D.
router(config-if)# ip access-list

Explanation:
The router(config-if)#ip access-group command is used to apply an access list to an interface. This command is issued in interface configuration mode. The syntax
of the command is as follows:
router(config-if)# ip access-group {access-list-number|access-list-name} {out|in}
The parameters of the command are as follows:
– out|in: Specifies where the access list will be applied on the router. The out value will cause the router to apply the access list to all outgoing packets. The in value
will cause the router to apply the access list to all incoming packets.
– access-list-number: Specifies the number of an access list.
– access-list-name: Specifies the name of the access list.
The router(config)# ip access-group command is incorrect because the ip access-group command should be issued in interface configuration mode.
The router(config)# ip access-list command is incorrect because this command is used to define an access list by name.
The router(config-if)# ip access-list command is incorrect because the ip access-groupcommand is issued in global configuration mode, and is used to define an
access list by name.
Objective:
Infrastructure Services
Sub-Objective:
Configure, verify, and troubleshoot IPv4 standard numbered and named access list for routed interfaces

https://www.cisco.com/c/en/us/support/index.html



Leave a Reply 0

Your email address will not be published. Required fields are marked *