Microsoft Windows – Ping reply with IPv6 address, not IPv4

Release date: April 30th 2019

Welcome to my Microsoft Tips & Tricks section. Every so often I run into small annoyances, that can easily be remediated. One of these are: Getting IPv6 replies when trying to ping a host in same subnet/vlan. In this session I will describe how I easily fixed this with two commands.

First, when I try to ping two hosts, I get the IPv6 reply below

Ping_ipv4_not_ipv6-01

 

By running these two commands, my IPv4 replies are back:

“netsh interface ipv6 set prefix ::/96 60 3”

“netsh interface ipv6 set prefix ::ffff:0:0/96 55 4”

Ping_ipv4_not_ipv6-02

 

I know this isn’t earth-shaking and ground-breaking stuff, but nice to know. I also know there are other ways of achieving this, but this is very simple, and I like simple.

 

Big thanks to:

The IT Bros’ post “Ping returns IPv6 Address, ping IPv4?

 

Microsoft Tips & Tricks section

Disclaimer: Every tips/tricks/posting I have published here, is tried and tested in different it-solutions. It is not guaranteed to work everywhere, but is meant as a tip for other users out there. Remember, Google is your friend and don’t be afraid to steal with pride! Feel free to comment below as needed.