CISCO CCNA Exam – Q164

The network administrator cannot connect to Switch1 over a Telnet session, although the hosts attached to Switch1 can ping the interface Fa0/0 of the router.
Given the information in the graphic and assuming that the router and Switch2 are configured properly, which of the following commands should be issued on Switch1 to correct this problem?

A.
Switch1(config)# line con0
Switch1(config-line)# password cisco
Switch1(config-line)#login
B.
Switch1(config)# interface fa0/1
Switch1(config-if)# ip address 192.168.24.3 255.255.255.0
C.
Switch1(config)# ip default-gateway 192.168.24.1
D.
Switch1(config)# interface fa0/1
Switch1(config-if)# duplex full
Switch1(config-if)# speed 100
E.
Switch1(config)# interface fa0/1
Switch1(config-if)# switchport mode trunk

Correct Answer: C

Explanation:
Since we know hosts can reach the router through the switch, we know that connectivity, duplex. Speed, etc. are good. However, for the switch itself to reach networks outside the local one, the ip default-gateway command must be used.