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.
Let's start with some simple ones.
First, let's check the IPCONFIG from the Start>Run>CMD in Windows:

You can see my machine is running "Dual Stack" since it has both IPv4 and IPv6. Further 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.
The "netstat -r" command displays the routing table in your computer:

We can clearly see the IPv6 Routing table with the Link Local addresses and the IPv6 Multicast groups.
Let's see if there has been any general IPv6 traffic on the interfaces. You can do this with a "netstat -ps IPv6" command:

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

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

Another way to see the IPv6 Route Table is 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:
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
Route options:
Let's first look at the IPv6 addresses - this time through the netsh command:

Here are some other netsh commands to try:
C:\>pathping 2001:db8:1:f282:dd48:ab34:d07c:3914
Tracing route to 2001:db8:1:f282:dd48:ab34:d07c:3914 over a maximum of 30 hops
0 server1.example.microsoft.com [2001:db8:1:f282:204:5aff:fe56:1006]
1 2001:db8:1:f282:dd48:ab34:d07c:3914
Computing statistics for 25 seconds...
Source to Here This Node/Link
Hop RTT Lost/Sent = Pct Lost/Sent = Pct Address
0 server1.example.microsoft.com
[2001:db8:1:f282:204:5aff:fe56:1006]
0/ 100 = 0% |1 0ms 0/ 100 = 0% 0/ 100 = 0% 2001:db8:1:f282:dd48:ab34:d07c:3914
Trace complete.
Here are the IPv6 pathping options:
Let's start with some simple ones.
First, let's check the IPCONFIG from the Start>Run>CMD in Windows:

You can see my machine is running "Dual Stack" since it has both IPv4 and IPv6. Further 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.
The "netstat -r" command displays the routing table in your computer:

We can clearly see the IPv6 Routing table with the Link Local addresses and the IPv6 Multicast groups.
Let's see if there has been any general IPv6 traffic on the interfaces. You can do this with a "netstat -ps IPv6" command:

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

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

Another way to see the IPv6 Route Table is 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:
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
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.
Let's first look at the IPv6 addresses - this time through the netsh command:

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.
C:\Users\Andrew>ping -6 ::1
Pinging ::1 with 32 bytes of data:
Reply from ::1: time
Reply from ::1: time
Reply from ::1: time
Reply from ::1: time
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
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.
C:\Users\Andrew>tracert -6 ::1
Tracing route to AndysNew-PC [::1]
over a maximum of 30 hops:
1 ms ms ms AndysNew-PC [::1]
Trace complete.
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.
- 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.
C:\>pathping 2001:db8:1:f282:dd48:ab34:d07c:3914
Tracing route to 2001:db8:1:f282:dd48:ab34:d07c:3914 over a maximum of 30 hops
0 server1.example.microsoft.com [2001:db8:1:f282:204:5aff:fe56:1006]
1 2001:db8:1:f282:dd48:ab34:d07c:3914
Computing statistics for 25 seconds...
Source to Here This Node/Link
Hop RTT Lost/Sent = Pct Lost/Sent = Pct Address
0 server1.example.microsoft.com
[2001:db8:1:f282:204:5aff:fe56:1006]
0/ 100 = 0% |1 0ms 0/ 100 = 0% 0/ 100 = 0% 2001:db8:1:f282:dd48:ab34:d07c:3914
Trace complete.
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
0 comments:
Post a Comment