ping IPv4

How To Ping IPv4 And IPv6 – A Step-By-Step Guide

Ping is a network management software utility. It’s compatible with all networking-capable operating systems and the majority of embedded network management applications. Ping IPv4 and IPv6 work as factors that whether reach the host or not. With the pinging IPv6 address and IPv4 guideline, we break it down into many chief aspects of this field. Let’s go into the details.

What Is Ping?

In reality, when setting the network systems, technicians will carry out a ping in the computers. 

In theory, Ping is the abbreviation for Packet Internet Groper, an online tool used to determine whether a packet of the network, which could send to an address, is an error or not. 

The ping’s utility command-line options and performances differ between implementations

  • The payload size
  • The number of samples
  • The distance between requests
  • The time to wait

Ping IPv4

IPv4 is one of the central protocols of the Internet. In 1982, the first use of IPv4 was at SATNET, and at ARPANET in January 1983. 

ping IPv4

Data Packet Of IPv4

Ping IPv6

Version 6 (IPv6) is the latest IP, which offers a mechanism for identifying and locating machines on the network and routing traffic across the Internet.

ping IPv4

IPv6 Structure

Ping IPv6 Or IPv4

If the same IP network, VLAN, or subnet is connected to your computer and remote router, you sometimes will be likely to find that if you host such a device, it automatically returns to an IPv6 address. Following ways on how to ping IPv6 address :


Pinging [2606:4700:3032::6815:1f93] with 32 bytes of data:

Reply from 2606:4700:3032::6815:1f93: time=33ms

Reply from 2606:4700:3032::6815:1f93: time=35ms

Reply from 2606:4700:3032::6815:1f93: time=31ms

Reply from 2606:4700:3032::6815:1f93: time=55ms

ping IPv4

Ping Returns To An IPv6 Address Rather Than An IPv4 Address

The truth is that the IPv6 protocol is the preferred protocol over IPv4 in Windows Vista and later versions. If you want a remote system IPv4 address in the ping command result, use the following command:

ping hostname -4

Adding a parameter “-4”

Ping -4

Pinging [] with 32 bytes of data

Reply from bytes=32 time=88ms TTL=54

Reply from bytes=32 time=79ms TTL=54

Reply from bytes=32 time=97ms TTL=54

Reply from bytes=32 time=78ms TTL=54

ping IPv4

Prioritizing To Use IPv6 To IPv4

IPv6 unicast addresses enjoy a higher priority over IPv4 addresses (as indicated by the RFC 3484). IPV6, appears recently in Internet protocol , which is a crucial component to allow Windows to function properly. 

If you disable it, a few Windows parts may not work as expected. Suppose a customer attempts to get access to a far-off server utilizing an ICMP protocol (ping, telnet, or orders). 

If it returns to the IPv6 address (or there are a few issues with some legacy applications), then you can resort to a more advanced approach. 

In fact, you can set a higher priority for IPv4 without the need to deactivate the IPv6 either on a source or the host. 

Run the command below so that the Window policy table will appear:

netsh interface ipv6 show prefixpolicies

ping IPv4

The prefix strategy table is the same as the directing table, and it figures out which IP addresses are the best choices while forming a connection. 

Precedence  Label  Prefix

———-  —–  ——————————–

        60      3  ::/96

        55      4  ::ffff:0:0/96

        50      0  ::1/128

        40      1  ::/0

        30      2  2002::/16

         5      5  2001::/32

         3     13  fc00::/7

         1     12  3ffe::/16

         1     11  fec0::/10

In this table, the strategy “1 ::/0” (Native IPv6) comes before “::ffff:0:0/96” (IPv4).According to this table, the higher the protocol’s precedence value is, the higher priority it takes.

Lean Toward IPv4 Over IPv6 On Windows 

This approach doesn’t need a reboot, and it produces results right away. You had better open a cmd (Command Prompt) and run two following orders:

netsh interface ipv6 set prefix ::/96 60 3

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

The orders expanded the need for the IPv4 prefix strategy and diminished the need for IPv6. 

For instance, run these two orders on Windows Server 2016 example and enter a ping demand once more:

Pinging [] with 32 bytes of data

Reply from bytes=32 time=86ms TTL=101

Reply from bytes=32 time=87ms TTL=101

Reply from bytes=32 time=84ms TTL=101

Reply from bytes=32 time=84ms TTL=101

ping IPv4

The outcome adjusted significantly in the course we required. The remote server started to return an IPv4 address ( rather than an IPv6 address. We’ll check whether the worker is as yet pinging by its IPv6 address or not, and we didn’t break anything:

ping 2404:6800:4008:c07::8a

ping IPv4

Everything is alright according to the process.

netsh interface ipv6 show prefixpolicies

Now, we successfully set IPv4 as default for sending the network.

ping IPv4

Once you finish the procedure, IPv6 Functionality will change to “Lean toward IPv4 over IPv6” strategies. Microsoft suggests utilizing this strategy as opposed to turning off IPsv6 on the host.

Learning how to ping IPv4 and IPv6 addresses may be challenging for non-tech savvy people. Instead of turning off IPv6, you can choose to ping IPv4 by following our step-by-step guide. Thanks for reading!

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top