Networking/Computing Tips/Tricks

Here are some great Windows command line entries you can make to examine and configure IPv6 (assuming your version of windows does so).  We will discuss use of the "netsh" and "netstat" commands below.  For details on "netsh" click here For more info on the "netstat" command click here.

You will see below that I am showing the older version of Windows output first, and the newer version of Windows output second.

Let's start with some simple ones. 

First, let's check the IPCONFIG from the Start>Run>CMD in Windows:

Older first:

ipconfigcap

Newer next:

2019 09 26 6 36 17

You can see my machine, in both cases, is running "Dual Stack" since it has both IPv4 and IPv6.  Furthermore, you can see that my machine supports multiple IPv6 addresses per interface as the Tunnel Adapter interface has a Link Local and Global Unicast IPv6 address assigned.  In the newer example, you can see the new support for temporary IPv6 addresses.

The "netstat -r" command displays the routing table in your computer:

Older version first:

netstat_-r

Newer version:

2019 09 26 6 42 18

We can clearly see the IPv6 Routing table with the Link Local addresses and the IPv6 Multicast groups.  Ouput has changed little between the older and newer versions.

Let's see if there has been any general IPv6 traffic on the interfaces.  You can do this with a "netstat -ps IPv6" command:

Older version: 

netstat_-ps_IPv6

Newer version:

2019 09 26 6 45 11

Again little change between the older and newer versions of Windows.

OK, now let's be more specific.  What about ICMPv6?  Try the "netstat -ps ICMPv6" command:

netstat_-ps_ICMPv62019 09 26 6 47 13

Pretty cool. Similarly, we can use netstat to view the TCP and UDP packet counts for IPv6:

Older version (both commands shown):

netstat_TCP_UDPv6

Newer version (each command was done separately):

2019 09 26 6 49 53

2019 09 26 6 51 04

The main difference is that in the newer snapshot for TCP, there were active connections present when I performed the command.  Else they are essentially no different.

Another way to see the IPv6 Route Table is by using the "route" command. The command-line Route tool enables entries in the local IPv4 and IPv6 routing tables; such routes can direct network traffic to local, WAN, and internet network map.

Here is an IPv6 route test example in the older version of Windows:

C:\Users\Andrew>route print -6
===========================================================================
Interface List
 14...00 24 d6 2f 04 df ......Microsoft Virtual WiFi Miniport Adapter
 11...00 24 d6 2f 04 de ......Intel(R) WiFi Link 5100 AGN
 10...00 26 9e 71 9d 33 ......Realtek PCIe GBE Family Controller
  1...........................Software Loopback Interface 1
 25...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
 31...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
 27...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
 30...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
 44...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
===========================================================================

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
 31     58 ::/0                     On-link
  1    306 ::1/128                  On-link
 31     58 2001::/32                On-link
 31    306 2001:0:4137:9e76:3456:2b68:3f57:fef6/128
                                    On-link
 10    276 fe80::/64                On-link
 31    306 fe80::/64                On-link
 10    276 fe80::2dea:c409:e0e:102b/128
                                    On-link
 31    306 fe80::3456:2b68:3f57:fef6/128
                                    On-link
  1    306 ff00::/8                 On-link
 31    306 ff00::/8                 On-link
 10    276 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

Here is an IPv6 route test example in the newer version of Windows:

2019 09 26 6 56 00

Route options:

  • route PRINT - Prints out all network route information.
  • route PRINT -4  - Prints out only IPv4  network route information.
  • route PRINT -6  - Prints out only IPv6 network route information.

Another great tool for looking at your IPv6 configuration is the "netsh" scripting tool.  We have a separate article on netsh here.

Let's first look at the IPv6 addresses, this time through the netsh command 'netsh interface ipv6 show addresses':

Older version:

netshIPv6cap

Newer version:

2019 09 26 6 58 06

The main differences now are the inclusion of Temporary IPv6 addresses.

Here are some other netsh commands to try:

  • Netsh interface ipv6 show interfaceM
    • This command displays the list of IPv6 interfaces. By default, the interface names containing an asterisk (*) are tunneling interfaces.
  • Netsh interface ipv6 show address
    • This command displays the list of IPv6 addresses for each interface.
  • Netsh interface ipv6 show route
    • This command displays the list of routes in the IPv6 routing table.
  • Netsh interface ipv6 show neighbors
    • This command displays the contents of the neighbor cache, sorted by interface. The neighbor cache stores the link-layer addresses of recently resolved next-hop addresses.
  • Netsh interface ipv6 set teredo client AND Netsh interface ipv6 show teredo
    • These commands displays and configure Windows XP.
  • Netsh interface ipv6 show destinationcache
    • This command displays the contents of the destination cache, sorted by interface. The destination cache stores the next-hop addresses for destination addresses.

How about PING and TRACE ROUTE for IPv6?  Sure.  Here is how you Ping in IPv6:

2019 09 26 7 00 24 

Here are the Ping options:

  • -i  HopLimit  Sets the Hop Limit field in the IPv6 header. The default value is 128. Ues –i option to set the value of the Time-to-Live (TTL) field in the IPv4 header.
  • -R  Forces Ping to trace the round-trip path by sending the ICMPv6 Echo Request message to the destination and to include an IPv6 Routing extension header with the sending node as the next destination.
  • -S SourceAddr  Forces Ping to use a specified IPv6 source address.
  • -4  Ping Forced to use an IPv4 address when the DNS name query for a host name returns both IPv4 and IPv6 addresses.
  • -6  Ping Forced to use an IPv6 address when the DNS name query for a host name returns both IPv4 and IPv6 addresses.
  • -t  ttl  Specify the IPv4 time to live, or IPv6 hop limit, for unicast and multicast packets. The default time to live (hop limit) for unicast packets can be set with ndd(1M) using the icmp_ipv4_ttl variable for IPv4 and the icmp_ipv6_ttl variable for IPv6. The default time to live (hop limit) for multicast is one hop.

And here is the Trace route command (we are tracing to the www.google.com IPv6 address):

2019 09 26 7 04 40 

Here are the Tracert options:

  • -R Forces Tracert to trace the round-trip path by sending the ICMPv6 Echo Request message to the destination and to include an IPv6 Routing extension header with the sending node as the next destination.
  • -S SourceAddr Tracert Forced to use a specified IPv6 source address.
  • -4  Tracert Forced to use an IPv4 address when the DNS name query for a host name returns both IPv4 and IPv6 addresses.
  • -6 Tracert Forced to use an IPv6 address when the DNS name query for a host name returns both IPv4 and IPv6 addresses.

Pathping is a Windows based command-line tool used to provide IPv6 information.The Pathping tool provides details about network latency and network loss at intermediate hops between source and a destination. The Pathping command works like a combination of ping and tracert.

  • IPv4, Pathping sends multiple ICMPv4 Echo messages to each router between a source and destination over a period of time, and then it computes results based on the packets returned from each router.
  • IPv6, Pathping sends ICMPv6 Echo Request messages.

Because Pathping displays the degree of packet loss at any given router or link, you can determine which routers or subnets might be having network problems. It provides more detailed network troubleshooting information as it performs the equivalent of the Tracert tool by identifying which routers are in the path. The program sends messages periodically to all the routers over a specified time period and computes statistics based on the number returned from each node.

2019 09 26 7 12 31

Here are the IPv6 pathping options:

  • -4 - Forces Pathping to use an IPv4 address when the DNS name query for a host name returns both IPv4 and IPv6 addresses
  • -6 - Forces Pathping to use an IPv6 address when the DNS name query for a host name returns both IPv4 and IPv6 addresses

You can also look at Path MPT or PMTU - but I have written a separate article on that command here.

We hope this helps you get started on IPv6 on your local Windows machine.

Did I miss any commands?  Let me hear your comments below....

Comments powered by CComment

Find by Tag

4G Networks 5G Networks 6LoWLAN 6LoWPAN 802.11 802.11ah 802.11ax 802.11ay 802.11az Addressing Analysis Ansible Architecture ARP AToM Baseline BGP Bloom's Taxonomy Broadband Cable cat CellStream Cellular Central Office Cheat Sheet Chrome Cisco Cloud CMD Coloring Rules Computer Consulting Customer Support Data Center Data Networking DHCPv6 DNS Docker Documentation Dublin-Traceroute dumpcap ECMP Ethernet Ethics Evaluation Field Operations Fragmentation G-MPLS GeoIP Git GNS3 Google GQUIC Hands-On History Home Network ICMP ICMPv6 IEEE 802.11p IEEE 802.15.4 India Interface Control Internet IoT IPsec IPv4 IPv6 IRINN IS-IS L2VPN L3VPN LDP Linux LLN LoL M-BGP MAC Macro Microsoft mininet Monitoring MPLS mtr MTU Multicast Name Resolution Netcat Netmiko NetMon netsh Networking Network Science nmap Npcap NSE Observations Online School OpenFlow OSPF OSPFv2 OSPFv3 OSX OTT Paris-Traceroute Parrot PIM PMTU Policy POTS POTS to Pipes PPP Profile Programming Project Management PW3E Python QoS QUIC Remote Desktop Requirements Resume RIP Routing RPL RSVP Rural SDN Security Service Provider Small Business SONET Speed SS7 SSH SSL Subnetting SYSCTL T-Shark TCP TCP/IP Telco Telecom 101 Telecommunications Telephone termshark Testing TLS Tools Traceroute Traffic Engineering Training Travel Tunnel Ubuntu Utility Video Virtualbox Virtualization VoIP VRF VXLAN Wi-Fi Wi-Fi 4 Wi-Fi 5 Wi-Fi 6 Windows Winpcap Wireless Wireless 5G Wireshark Wireshark Tip WLAN Writing Zenmap ZigBee

Twitter Feed