Tuesday, March 11, 2025

Easy, bare IPv6 test without DNS: ping 2600::

If you want to test IPv6, without DNS involved, that's easy: ping to 2600::

Fun fact: 2600:: is owned by telco Sprint, and "2600 hertz (2600 Hz) is a frequency in hertz (cycles per second) that was used in telecommunication signaling in mid-20th century long-distance telephone networks using carrier systems". Coincidence ... ?

Linux:

$ ping -c5 2600::

PING 2600::(2600::) 56 data bytes

64 bytes from 2600::: icmp_seq=1 ttl=53 time=13.3 ms

64 bytes from 2600::: icmp_seq=2 ttl=53 time=14.3 ms

64 bytes from 2600::: icmp_seq=3 ttl=53 time=14.4 ms

64 bytes from 2600::: icmp_seq=4 ttl=53 time=14.4 ms

64 bytes from 2600::: icmp_seq=5 ttl=53 time=15.0 ms


--- 2600:: ping statistics ---

5 packets transmitted, 5 received, 0% packet loss, time 4008ms

rtt min/avg/max/mdev = 13.295/14.281/15.014/0.555 ms



Windows:


PS C:\> ping 2600::


Pinging 2600:: with 32 bytes of data:

Reply from 2600::: time=14ms

Reply from 2600::: time=14ms

Reply from 2600::: time=15ms

Reply from 2600::: time=16ms


Ping statistics for 2600:::

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 14ms, Maximum = 16ms, Average = 14ms

PS C:\>




Tuesday, January 28, 2025

IPv6 inside WSL2 on Windows

 IPv6 inside WSL2 on Windows


If your Windows has IPv6, by default the WSL (Windows Subsystem for Linux) has no IPv6.

It's easy to solve this (if you use WSL2): in your Windows home directory, create a file .wslconfig to contain this:


[wsl2]

networkingMode=mirrored


You can do this from inside WSL with nano, as long as you make sure it's inside your Windows home directory (so /mnt/c/Users/<windows-user-name/)

If you use notepad from Windows, make sure the .wslconfig has no extension.

Then reboot Windows, start wsl, and "ip address show" should show your IPv6 inside WSL.


Check WSL version


To check that you have WSL2: from Windows, type "wsl.exe -l -v"


PS C:\> wsl -l -v

  NAME      STATE           VERSION

* Ubuntu    Running         2