Which of the following series of commands will restrict Telnet access to the router?

A <code class="args"><em>Lab_A(config)#access-list 10 permit 172.16.1.1<br>Lab_A(config)#line con 0<br>Lab_A(config-line)#ip access-group 10 in</em></code>
B <code class="args"><em>Lab_A(config)#access-list 10 permit 172.16.1.1<br>Lab_A(config)#line vty 0 4<br>Lab_A(config-line)#access-class 10 out</em></code>
C <code class="args"><em>Lab_A(config)#access-list 10 permit 172.16.1.1<br>Lab_A(config)#line vty 0 4<br>Lab_A(config-line)#access-class 10 in</em></code>
D <code class="args"><em>Lab_A(config)#access-list 10 permit 172.16.1.1<br>Lab_A(config)#line vty 0 4<br>Lab_A(config-line)#ip access-group 10 in</em></code>

Correct Answer: <code class="args"><em>Lab_A(config)#access-list 10 permit 172.16.1.1<br>Lab_A(config)#line vty 0 4<br>Lab_A(config-line)#access-class 10 in</em></code>

Telnet access to the router is restricted by using either a standard or extended IP access list inbound on the VTY lines of the router. The command access-class is used to apply the access list to the VTY lines.

Related Questions

You need to configure a router for a Frame Relay connection to a non-Cisco router. Which of the following commands will prepare the WAN interface of the router for this connection?
The corporate office sends you a new router to connect, but upon connecting the console cable, you see that there is already a configuration on the router. What should be done before a new configuration is entered in the router?
You save the configuration on a router with the copy running-config startup-config command and reboot the router. The router, however, comes up with a blank configuration. What can the problem be?
If routers in a single area are configured with the same priority value, what value does a router use for the OSPF Router ID in the absence of a loopback interface?
Which of the following commands will configure all the default VTY ports on a router?
Which of the following commands displays the configurable parameters and statistics of all interfaces on a router?

Next steps