Ping Hostname works, Ping -4 Hostname Does Not Work

yacpro13

Distinguished
Jul 30, 2008
35
0
18,530
Hi everyone,

On a company network, we have a router (192.168.1.1) then a switch, and connected to that switch are a bunch of computers that are either in the 192.168.0.X subnet, or in the 192.168.1.X subnet.

The idea, at the time, was that 192.168.0.X computers could share resouces amongst each other, but not access the internet. The 192.168.0.X computers have static ip addresses assigned in the Windows interface.

From my computer (ip 192.168.1.xx), I try to ping a computer in the 192.168.0.X subnet. I know that that computer's ip address is 192.168.0.49.

ping 192.168.0.49 Fails

ping [hostname] works and returns ipv6 ip.

ping -4 [hostname] fails

I'm a bit lost here - howcome I am able to ping on hostname, but anything ipv4 doesn't work?

Thanks for your help!
 

yacpro13

Distinguished
Jul 30, 2008
35
0
18,530
Some say he has no eyes, and drives around the track using echo location - all we know is, he's called the Stig!
I feel honored having the stig comment on my thread! Ha

Yes stig - you are 100% right. This was done way before me. Actually, there's so few computers that need to have internet access block that all I plan on doing is set up a single subnet, and block those specific computer using the router - no vlans even.

Ah I think I get it - it's just that I never used ipv6 before. So you're saying that ipv6 are probably DHCP assigned, and even though the computers are in different ipv4 subnets, they are in the same ipv6 subnet, which is why ping works on the hostname.
I think it makes sense...thanks.