Skip to content

Instantly share code, notes, and snippets.

@wtfrank
Created March 21, 2023 13:10
Show Gist options
  • Save wtfrank/9a7bdeb0027d28ca412b05324b91d3a4 to your computer and use it in GitHub Desktop.
Save wtfrank/9a7bdeb0027d28ca412b05324b91d3a4 to your computer and use it in GitHub Desktop.
output of networking.bat
"WSL version (Might be help text if store WSL is not installed):"
WSL version: 1.1.3.0
Kernel version: 5.15.90.1
WSLg version: 1.0.49
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.2728
Windows features:
FeatureName
-----------
WCF-Services45
WCF-TCP-PortSharing45
MediaPlayback
WindowsMediaPlayer
SmbDirect
Printing-PrintToPDFServices-Features
Printing-XPSServices-Features
SearchEngine-Client-Package
MSRDC-Infrastructure
WorkFolders-Client
MicrosoftWindowsPowerShellV2Root
MicrosoftWindowsPowerShellV2
NetFx4-AdvSrvs
Internet-Explorer-Optional-amd64
Printing-Foundation-Features
Printing-Foundation-InternetPrinting-Client
Microsoft-Windows-Subsystem-Linux
VirtualMachinePlatform
HNS objects:
{
"ActivityId":"A59A64F1-AA60-45C4-B411-A2F2E0D14E8E",
"AdditionalParams":{
},
"CurrentEndpointCount":1,
"DNSServerList":"172.30.208.1",
"Extensions":[
{
"Id":"E7C3B2F0-F3C5-48DF-AF2B-10FED6D72E7A",
"IsEnabled":false,
"Name":"Microsoft Windows Filtering Platform"
},
{
"Id":"E9B59CFA-2BE1-4B21-828F-B6FBDBDDC017",
"IsEnabled":false,
"Name":"Microsoft Azure VFP Switch Extension"
},
{
"Id":"430BDADD-BAB0-41AB-A369-94B67FA5BE0A",
"IsEnabled":true,
"Name":"Microsoft NDIS Capture"
}
],
"Flags":9,
"GatewayMac":"00-15-5D-1F-00-1A",
"Health":{
"AddressNotificationMissedCount":0,
"AddressNotificationSequenceNumber":14,
"DHCPNotificationMissedCount":0,
"DHCPNotificationSequenceNumber":0,
"DNSCacheNotificationMissedCount":0,
"DNSCacheNotificationSequenceNumber":0,
"DNSNotificationMissedCount":0,
"DNSNotificationSequenceNumber":0,
"InterfaceNotificationMissedCount":0,
"InterfaceNotificationSequenceNumber":0,
"LastErrorCode":0,
"LastUpdateTime":133238731296969890,
"MacAddressNotificationMissedCount":0,
"MacAddressNotificationSequenceNumber":0,
"NeighborNotificationMissedCount":0,
"NeighborNotificationSequenceNumber":0,
"RouteNotificationMissedCount":0,
"RouteNotificationSequenceNumber":0,
"XlatNotificationMissedCount":0,
"XlatNotificationSequenceNumber":0
},
"ID":"B95D0C5E-57D4-412B-B571-18A81A16E005",
"IPv6":false,
"IsolateSwitch":true,
"LayeredOn":"36C3680A-1123-48DA-AA93-98F108BF27F2",
"MacPools":[
{
"EndMacAddress":"00-15-5D-1F-0F-FF",
"StartMacAddress":"00-15-5D-1F-00-00"
}
],
"MaxConcurrentEndpoints":1,
"Name":"WSL",
"NatName":"ICS8F14D8FF-CD3C-429E-98CC-2C8126A93E2D",
"Policies":[
],
"State":1,
"Subnets":[
{
"AdditionalParams":{
},
"AddressPrefix":"172.30.208.0/20",
"Flags":0,
"GatewayAddress":"172.30.208.1",
"Health":{
"LastErrorCode":0,
"LastUpdateTime":133233758770043722
},
"ID":"05EFAC6E-3CF2-4854-8528-FF726F8CCBED",
"IpSubnets":[
{
"AdditionalParams":{
},
"Flags":0,
"Health":{
"LastErrorCode":0,
"LastUpdateTime":133233758770043722
},
"ID":"7D355F79-3A91-4BEF-9618-8DEFB8476369",
"IpAddressPrefix":"172.30.208.0/20",
"ObjectType":6,
"Policies":[
],
"State":0
}
],
"ObjectType":5,
"Policies":[
],
"State":0
}
],
"TotalEndpoints":2,
"Type":"ICS",
"Version":47244640267,
"Layer":{
"ActivityId":"9335D51D-F5CF-445E-9502-EE9020EECCFC",
"AdditionalParams":{
},
"Extensions":[
{
"Id":"E7C3B2F0-F3C5-48DF-AF2B-10FED6D72E7A",
"IsEnabled":false,
"Name":"Microsoft Windows Filtering Platform"
},
{
"Id":"E9B59CFA-2BE1-4B21-828F-B6FBDBDDC017",
"IsEnabled":false,
"Name":"Microsoft Azure VFP Switch Extension"
},
{
"Id":"430BDADD-BAB0-41AB-A369-94B67FA5BE0A",
"IsEnabled":true,
"Name":"Microsoft NDIS Capture"
}
],
"Flags":0,
"Health":{
"LastErrorCode":0,
"LastUpdateTime":133233758770053710
},
"ID":"36C3680A-1123-48DA-AA93-98F108BF27F2",
"IsFSE":false,
"IsSDN":false,
"MacPools":[
{
"EndMacAddress":"00-15-5D-67-BF-FF",
"StartMacAddress":"00-15-5D-67-B0-00"
}
],
"Name":"WSL",
"Policies":[
],
"State":0,
"SubType":"NAT",
"SupportsIpv6":false,
"Type":"Layered",
"Version":47244640267,
"Resources":{
"AdditionalParams":{
},
"AllocationOrder":1,
"Allocators":[
{
"AdditionalParams":{
},
"AllocationOrder":0,
"ExternalNic":false,
"Flags":0,
"Health":{
"LastErrorCode":0,
"LastUpdateTime":133233758770053710
},
"ID":"5B092E2F-3B73-48EC-B57E-3530C431AE29",
"IsPolicy":false,
"IsolateSwitch":true,
"MacAddress":"WSL",
"State":3,
"SwitchAllocated":true,
"SwitchId":"0EC1AE79-7DDC-404C-B2F1-8B1B4DBB3004",
"Tag":"Virtual Switch"
}
],
"CompartmentOperationTime":0,
"Flags":0,
"Health":{
"LastErrorCode":0,
"LastUpdateTime":133233758770053710
},
"ID":"9335D51D-F5CF-445E-9502-EE9020EECCFC",
"PortOperationTime":0,
"State":1,
"SwitchOperationTime":0,
"VfpOperationTime":0
}
},
"Resources":{
"AdditionalParams":{
},
"AllocationOrder":2,
"Allocators":[
{
"AdapterNetCfgInstanceId":"{8F14D8FF-CD3C-429E-98CC-2C8126A93E2D}",
"AdditionalParams":{
},
"AllocationOrder":0,
"CompartmendId":0,
"Connected":true,
"DNSFirewallRules":true,
"DevicelessNic":false,
"DhcpDisabled":true,
"EndpointNicGuid":"E4B5DCE6-80CC-4FB1-8461-15A50FA181AA",
"EndpointPortGuid":"9EA5C7F3-4F2C-4507-B63E-DA3DB23F1D9A",
"Flags":0,
"Health":{
"LastErrorCode":0,
"LastUpdateTime":133233758773125529
},
"ID":"E4DA39DB-19F0-4391-8FF9-FBF51099C34C",
"InterfaceGuid":"8F14D8FF-CD3C-429E-98CC-2C8126A93E2D",
"IsPolicy":false,
"IsolationId":0,
"MacAddress":"00-15-5D-1F-00-1A",
"ManagementPort":true,
"NcfHidden":false,
"NicFriendlyName":"WSL",
"NlmHidden":true,
"PreferredPortFriendlyName":"Container NIC e4da39db",
"State":3,
"SwitchId":"0EC1AE79-7DDC-404C-B2F1-8B1B4DBB3004",
"Tag":"Host Vnic",
"WaitForIpv6Interface":false,
"nonPersistentPort":false
},
{
"AdditionalParams":{
},
"AllocationOrder":1,
"Dhcp":false,
"Dns":true,
"ExternalInterfaceConstraint":0,
"Flags":0,
"Health":{
"DHCPState":1,
"DNSState":2,
"ICSState":2,
"LastErrorCode":0,
"LastUpdateTime":133238731297317500
},
"ICSDHCPFlags":0,
"ICSFlags":0,
"ID":"320456C0-CEF5-4A98-B6C6-850790B9DE17",
"IsPolicy":false,
"Prefix":20,
"PrivateInterfaceGUID":"8F14D8FF-CD3C-429E-98CC-2C8126A93E2D",
"State":3,
"SubnetIPAddress":"172.30.208.0",
"Tag":"ICS"
}
],
"CompartmentOperationTime":0,
"Flags":0,
"Health":{
"LastErrorCode":0,
"LastUpdateTime":133233758773095184
},
"ID":"A59A64F1-AA60-45C4-B411-A2F2E0D14E8E",
"PortOperationTime":0,
"State":1,
"SwitchOperationTime":0,
"VfpOperationTime":0,
"parentId":"9335D51D-F5CF-445E-9502-EE9020EECCFC"
}
}
{
"ID":"499def7a-4fcf-4fba-a7f7-edd3b681b502",
"Name":"Ethernet",
"Version":47244640267,
"AdditionalParams":{
"SwitchId":"0EC1AE79-7DDC-404C-B2F1-8B1B4DBB3004",
"SwitchPortId":"6CCACA89-F9FB-4FDC-9B59-2ADC4413CBBB"
},
"State":2,
"VirtualNetwork":"b95d0c5e-57d4-412b-b571-18a81a16e005",
"VirtualNetworkName":"WSL",
"MacAddress":"00-15-5D-1F-02-2D",
"IPAddress":"172.30.214.97",
"PrefixLength":20,
"GatewayAddress":"172.30.208.1",
"IPSubnetId":"7d355f79-3a91-4bef-9618-8defb8476369",
"DNSServerList":"172.30.208.1",
"SharedContainers":[
],
"VirtualMachine":"6E39E322-64C4-4216-96B5-2194807FBDC1"
}
{
"ActivityId":"9961F646-E472-4574-88E7-36E6CEAF486E",
"AdditionalParams":{
},
"CompartmentGuid":"B1062982-2B18-4B4F-B3D5-A78DDB9CDD49",
"CompartmentId":1,
"Containers":[
],
"Flags":0,
"Health":{
"LastErrorCode":0,
"LastUpdateTime":133233713026385117
},
"ID":"910F7D92-BA2D-4C3F-98AE-7C0AC590D2DC",
"IsDefault":true,
"Policies":[
],
"State":1,
"Version":47244640267
}
Routing table:
===========================================================================
Interface List
25...cc 96 e5 8b bd 17 ......Intel(R) Ethernet Connection (7) I219-LM
20...cc 96 e5 d9 2c 9a ......Dell Giga Ethernet
60...00 15 5d 1f 00 1a ......Hyper-V Virtual Ethernet Adapter
5...54 14 39 3b f2 13 ......Check Point Virtual Network Adapter For Endpoint VPN Client
19...4c 1d 96 a8 9e 64 ......Microsoft Wi-Fi Direct Virtual Adapter
6...4e 1d 96 a8 9e 63 ......Microsoft Wi-Fi Direct Virtual Adapter #2
12...4c 1d 96 a8 9e 63 ......Intel(R) Wireless-AC 9560 160MHz
22...4c 1d 96 a8 9e 67 ......Bluetooth Device (Personal Area Network)
1...........................Software Loopback Interface 1
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.119.41.254 10.119.40.161 10
10.119.40.0 255.255.254.0 On-link 10.119.40.161 261
10.119.40.161 255.255.255.255 On-link 10.119.40.161 261
10.119.41.255 255.255.255.255 On-link 10.119.40.161 261
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
172.30.208.0 255.255.240.0 On-link 172.30.208.1 271
172.30.208.1 255.255.255.255 On-link 172.30.208.1 271
172.30.223.255 255.255.255.255 On-link 172.30.208.1 271
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 10.119.40.161 261
224.0.0.0 240.0.0.0 On-link 172.30.208.1 271
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 10.119.40.161 261
255.255.255.255 255.255.255.255 On-link 172.30.208.1 271
===========================================================================
Persistent Routes:
None
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 331 ::1/128 On-link
20 281 fe80::/64 On-link
60 271 fe80::/64 On-link
60 271 fe80::19bb:d2d3:adeb:8005/128
On-link
20 281 fe80::77e6:f0a1:6018:b17c/128
On-link
1 331 ff00::/8 On-link
20 281 ff00::/8 On-link
60 271 ff00::/8 On-link
===========================================================================
Persistent Routes:
None
Deleting HNS network
The ms-resource:AppName service is stopping.
The ms-resource:AppName service was stopped successfully.
Name : HnsPacketCapture
CaptureMode : SaveToFile
LocalFilePath : C:\Users\FRANKI~1.FIS\AppData\Local\Temp\WSL\diagnostics\\packets.etl
MaxFileSize : 250 MB
TraceBufferSize : 0 KB
MaxNumberOfBuffers : 0
SessionStatus : NotRunning
Name : Microsoft-Windows-NDIS-PacketCapture
SessionName : HnsPacketCapture
Level : 5
MatchAnyKeyword : 0xFFFFFFFFFFFFFFFF
MatchAllKeyword : 0x0
CaptureType : BothPhysicalAndSwitch
VmCaptureDirection : IngressAndEgress
MultiLayer : False
LinkLayerAddress : {}
EtherType : {}
IpAddresses : {}
IpProtocols : {}
TruncationLength : 128
If you see 'ping: socket: Operation not permitted' errors, run this command as root.
+ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
+ uname -a
Linux Dell-E5501-05 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
+ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 3a:d8:d1:bb:77:7d brd ff:ff:ff:ff:ff:ff
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 06:44:08:7e:1f:e8 brd ff:ff:ff:ff:ff:ff
4: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
link/ipip 0.0.0.0 brd 0.0.0.0
5: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
link/sit 0.0.0.0 brd 0.0.0.0
6: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:15:5d:09:b8:4b brd ff:ff:ff:ff:ff:ff
inet 172.30.214.97/20 brd 172.30.223.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::215:5dff:fe09:b84b/64 scope link
valid_lft forever preferred_lft forever
+ ip route show
default via 172.30.208.1 dev eth0 proto kernel
172.30.208.0/20 dev eth0 proto kernel scope link src 172.30.214.97
++ ip route show
++ awk '/default/ { print $3 }'
+ gateway=172.30.208.1
+ ping -c 4 172.30.208.1
PING 172.30.208.1 (172.30.208.1) 56(84) bytes of data.
--- 172.30.208.1 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3134ms
+ ping -c 4 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
--- 1.1.1.1 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3118ms
+ traceroute 1.1.1.1
bash: line 28: traceroute: command not found
+ cat /etc/resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 172.30.208.1
+ type curl
+ curl -m 5 -v https://microsoft.com
* Resolving timed out after 5000 milliseconds
* Closing connection 0
curl: (28) Resolving timed out after 5000 milliseconds
This trace has dropped 20 events. Please record this trace again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment