Why ping by PC-name results a different IP address from the address manually set

We have two (2) Windows 10 Pro computers.  Both have Hyper-V VMs installed and in use (very low usage maybe 1 or 2 a week).  Both have their IP set manually in "Use the following IP address".  Finally, there is communication between the 2 computers in file sharing  and RDP.

The problem we are facing is that when Computer-1 Ping Computer-2, Computer-2 display a total different IP.   Yet when Computer-2 Ping Computer-1, it display the correct IP.

Please advice on how to identify cause and  how to fix.

Thank you in advance.
rayluvsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jorge diazSECommented:
Check the DNS server, evidently that name (A) record has a different IP.
0
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
On computer 2, run ipconfig /all and verify there is only the one IP configured. Also note the physical address for the NIC.

On computer 1, ping computer 2 by name. Then run arp -a and look for the IP address showed when pinging computer 2. Compare the MAC address for the IP pinged to the physical address you noted above. These should match. If they don't then you're pinging a different computer.
0
ITSysTechSenior Systems AdministratorCommented:
"when Computer-1 Ping Computer-2, Computer-2 display a total different IP"

How many NIC cards does Computer-2 have? Is it using wireless as well?
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

rayluvsAuthor Commented:
Jorge,
  • How do I Check the DNS server, evidently that name (A) record has a different IP?

Jeremy,

  • ran ipconfig /all on both.
  • there is only the one IP configured per computer.
  • the IP on both computers are from Hyper-V Virtual Ethernet Adapter created when Hyper-V was installed.
  • ran arp -a on both computers and look for the "false" IP address (when pinging computer 2 by name) and it's there.
  • compared the MAC address for the "false" IP pinged to the physical address found for the physical NIC they are different - no match

ITSysTech,
  • Computer-2 has one NIC (but remember it has Hyper-V which creates virtual NICS, if we can say it like this).

Note:
  • By "false" IP I mean the IP displayed when doing a Ping by pc-name Computer-1 to Computer-2.
  • Ran arp -a on both computers and the "false" ip is presente and both has the  same physical address and type  which is "dynamic".

Also, since when doing Ping by name to Computer-2 gave me that "false" IP, I tested something: I turned off Computer-2 and ping again  Computer-2 by its pc-name and it gave results.  I ping the actual manually set IP and no results.  So this means that is something in Computer-1?

Please advice.
0
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
I imagine that all computers would not be able to ping computer 2 by name.

There are two possibilities.
1. There's a computer on the network that has the same name as computer 2
2. There's an erroneous A record in DNS pointing to the "false" IP.

I would say that number 2 is more likely. If you administer the DNS server, you can look for and remove the erroneous record:
- Open DNS.msc on the server
- Expand the forward lookup zone for your domain
- Look for a record called computer-2 (or whatever the actual computer name is)
- If it says static, delete it. If it says dynamic then it's possible there's another computer with the same name. If the record is very old then it's probably from a computer that is no longer active.
0
rayluvsAuthor Commented:
You gave me an idea, ping Computer-2 from a mobile device.  Turns out that the "false" IP belongs to a Smart Tv we have next office 'LGSmartTV'.  We  connected to the routers apps and confirmed its 'LGSmartTV'.  So when we ping Computer-2, it displays 'LGSmartTV' IP.

So its #2 'There's an erroneous A record in DNS pointing to the "false" IP'

Weill try your suggestions and get back to u.
0
rayluvsAuthor Commented:
Note we don't have a server. the WLAN is a 4 computer small network where 2 are on at this point and also connected to the WLAN are 3 mobile devices.
0
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
If you don't have a server then the problem is most likely the smart tv has the same hostname as computer-2. Can you change the hostname of the smart TV or the computer?
0
rayluvsAuthor Commented:
Don;t think the smart tv has the Computer-2 host name, the smart tv name comes up as 'LGSmartTV' in both the routers software (192.168.0.1) and in IP scanner apps in the all the mobile devices we have connected to the wifi.

Note,
It's definitely is the smart tv.  Just turned it off and ping Computer-2 again and it display "Destination host unreachable".

What else can we do? Something is mixing up theses 2 devices IP.
0
rayluvsAuthor Commented:
Can we flush or clear cache of the router (which is a cable-modem)?
0
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
To test, follow these steps:

1. Turn off the smart tv
2. On computer-1 run ipconfig /flushdns
3. Turn on computer-2
4. On computer-1, ping computer-2

If it shows the smart TV IP still then there's we'll need to track down where that info is coming from.
0
rayluvsAuthor Commented:
Will do...
0
rayluvsAuthor Commented:
Didn't work.

I have done as recommended and even  changed the IP of the smart TV and its name.  But when ping Computer-2 shows the same "false" ip but it with "Destination host unreachable" as if  not exist the IP.

But why it display when ping:
ex.

Pinging Computer-2 ["false IP"] with 32 bytes of data:
Reply from "false IP": Destination host unreachable.
Reply from "false IP": Destination host unreachable.
Reply from "false IP": Destination host unreachable.
Reply from "false IP": Destination host unreachable.


what is going on? So strange!
0
rayluvsAuthor Commented:
SUCCESS!!!! FOUND THE PROBLEM!!!

The file C:\Windows\System32\drivers\etc\hosts

It had a line,
192.168.0.14 Computer-2  # My Computer
(So this was the "False" IP all the time)

Deleted the line and ping Computer-2  and gave the manual IP set.

Thanx all!!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
Glad you found the issue. :)
0
rayluvsAuthor Commented:
Chose our entry as solution because it solve the problem.

Awarded Jeremy because it was super troubleshooting steps!

Thanx!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.