Sign Up
Log In
Home
discussion
Exam 200-301 Question id=5305 IP Connectivity

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.

R1#show run version 12.0 hostname R1 ! interface s1 ip address 192.168.5.5 255.255.255.252 ! ip host R1 192.168.5.6
R2#show run version 12.0 ! hostname R2 ! interface s1 ip address 192.168.5.6 255.255.255.252 ! ip host R1 192.168.5.5
The command ping R2 fails when executed from R1. What command(s) would allow R1 to ping R2 by name?

A. R1(config)#int S1 R1(config-if)#no ip address 192.168.5.5 R1(config-if)# ip address 192.168.5.9 255.255.255.252
B. R1(config)#no ip host R1 R1(config)# ip host R2 192.168.5.6 255.255.255.252
C. R1(config)#no hostname R2 R1(config)# hostname R1
D. R2(config)#int S1 R1(config-if)#no ip address 192.168.5.5 R1(config-if)# ip address 192.168.5.9 255.255.255.0

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 192.168.5.6. 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 192.168.5.6 255.255.255.252
Once this is done, the ping on R2 will succeed.