Ping ipv4 instead of ipv6

Associate
Joined
10 Nov 2007
Posts
809
Location
Southampton
Good Evening OCUK

When I'm pinging a hostname the reply comes from the ipv6 address instead of the ipv4 address.

Does anyone know how I can make it so the reply is from the ipv4 address instead of the ipv6 address?

EDIT: please note I want to be able to do this without the -4 on the end of the ping command

FYI -4 pings the ipv4 address for those who are not sure :)
 
Last edited:
If i disable ipv6 then i am unable to ping anything. This only happens though when im pinging different dns suffixs. The two machines are hosted on different subnets in a virtual environment with a router server acting as the router. Using lan routong on server 2008. I have a subnet mask of 255.255.255.0 on both subnets. Do i need to change one of them to maybe a class b subnet?
 
When I try to ping the ipv4 address the request times out but works fine if I use the v6 address. Does anyone know how to change this. I have tried disabling ipv6 on the adapter but then I am unable to ping anything at all even if i foce it to use the v4 address.
 
Is this when you try to ping by hostname? What happens when you try and ping by the IPv4 address?

Take a look in your DNS server and check to see if you have any AAAA (IPv6 records) and delete them. On the hostname you are trying to ping, run the command "ipconfig/registerDNS".

When I ping by ip and host name it fails. I am a beginner with DNS server where would I find AAAA records (If i have any at all)?
 
pingone.png

ping2.png


I am using Virtual box and both servers are running server 2008 r2 enterprise

The bridge in the first network is made up of two adapters. one on the 6 network and one on the 7 network. Bridging was the only way I could see of connecting the two networks. Both subnets were 255.255.255.255

I can now ping all devices on the .6 network with ipv4 fine but for some reason cannot ping devices on the .7 network unless i use ipv6. if i force ipv4 it will not work and i get a general failure
 
Last edited:
the gateway in the second picture is 192.168.6.254. the ipv4 address is on the .7 network...unless i've read it completly wrong?
 
Cheers for your help Ruskie its very much appriciated :)

I will give this a go at some point tomorrow and let you know how I get on but from looking at that I now understand where I was going wrong.

One thing I did not understand though is would I then need to define static routes on the router server to get the two nics to speak to eachother or something in rras or does windows do this for me automatically?
 
Last edited:
Back
Top Bottom