A network administrator is connecting hosts A and B directly through their Ethernet interfaces, as shown in the illustration. Ping attempts between the hosts are unsuccessful. What can be done to provide connectivity between the hosts?<br><br><img src="/images/question-image/networking/subnetting/1494426320-mcq-question-on-subnetting.png" title="Subnetting mcq question image" alt="Subnetting mcq question image"><br><br>1. A crossover cable should be used in place of the straight-through cable.<br>2. A rollover cable should be used in place of the straight-through cable.<br>3. The subnet masks should be set to 255.255.255.192.<br>4. A default gateway needs to be set on each host.<br>5. The subnet masks should be set to 255.255.255.0.

Correct Answer: 1 and 5 only
First, if you have two hosts directly connected, as shown in the graphic, then you need a crossover cable. A straight-through cable won't work. Second, the hosts have different masks, which puts them in different subnets. The easy solution is just to set both masks to 255.255.255.0 (/24).