CISCO CCNA 200-301 Q9

R1 and R2 are connected as shown in the diagram and are configured as shown in output in the partial output of the show run command.

The command “ping R2” fails when executed from R1. What command(s) would allow R1 to ping R2 by name?

R1(config)#int S1
R1(config-if)#no ip address
R1(config-if)#ip address

R1(config)#no ip host R1
R1(config)#ip host R2

R1(config)#no hostname R2
R1(config)# hostname R1

R2(config)#int S1
R1(config-if)#no ip address
R1(config-if)# ip address

Correct Answers: B

Both routers have been configured with the ip host command. This command creates a name to IP address mapping, thereby enabling the pinging of the device by address. On R1, the mapping is incorrect and needs to be corrected. Currently it is configured as ip host R1 It is currently mapping its own name to the IP address of R2.

To fix the problem, you should remove the incorrect IP address mapping and create the correct mapping for R2, as follows:

R1(config)#no ip host R1
R1(config)# ip host R2

Once this is done, the ping on R2 will succeed.

The IP address of the S1 interface on R1 does not need to be changed to /30. In fact, if that is done the S1 interface on R1 and the S1 interface in R2 will no longer be in the same network. With a 30-bit mask configured, the network they are currently in extends from – They are currently set to the two usable addresses in that network, and

The hostnames of the two routers do need to be set correctly using the hostname command for the ping to function, but they are correct now and do not need to be changed.
The subnet mask of the S1 interface on R2 does not need to be changed to The mask needs to match that of R1, which is