Ping localhost and receive response ::1 IPv6

Posted: October 9, 2015 in Systems Administration
Tags: ,

Ping localhost and receive response ::1  IPv6

I recently had a client who had a support call for an application, and they tell him that they can’t assist him because there is a problem with the server. When they ping the localhost or the hostname from the server instead of getting IPv4 response they get ::1 from IPv6.

C:\WINDOWS\system32>ping localhost

Pinging test.testing.local [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

Ping statistics for ::1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

response-IPv6

How do we solve this:

  1. Open command prompt or power shell as an Administrator
  2. Execute command “netsh interface ipv6 show prefixpolicies”ipv6-prefixpolicies
  3. then modify entry ::/96 as follows: netsh interface ipv6 set prefix ::/96 60 3ipv6-prefix-96
  4. the modify entry ::ffff:0:0/96 as follows: netsh interface ipv6 set prefix ::ffff:0:0/96 3 4ipv6-prefix-ffff-0-0-96
  5. Ping Localhost and you should now get IPv4 responseresponse-ipv4-localhost
Now to revert back to how it was as IPv6 run the following commands:
  1. netsh interface ipv6 set prefix ::ffff:0:0/96 3 4
  2. netsh interface ipv6 set prefix ::96 3 4
response-IPv6
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s