3 ms·
But Get-NetAdapter just works. Your command, I don't have a /sys/class/net/ens33 on this Ubuntu virtual server. I do have a /sys/class/net/venet0 but /sys/class
by jodrellblank 6y ago
But Get-NetAdapter just works. Your command, I don't have a /sys/class/net/ens33 on this Ubuntu virtual server. I do have a /sys/class/net/venet0 but /sys/class/net/venet0/address is blank, even though the VM does have an IP address.
Grepping everything under /sys/class/net/* can't find the IP in there. It shows up in `ip addr` as venet0:0 and as a P-t-P link, so I assume that's related; doesn't work unless you know the adapter name and still might not work then? What kind of "contract" is that?
- taviso 6y agoHere's the output of the command the parent told me to run on my Windows workstation: > Get-NetAdapter -Name Wi-Fi | select -ExpandProperty MacAddress Get-NetAdapter : No MSFT_NetAdapter objects found with property 'Name' equal to 'Wi-Fi'. Verify the value of the property and retry. At line:1 char:1 + Get-NetAdapter -Name Wi-Fi | select -ExpandProperty MacAddress + ~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Wi-Fi:String) [Get-NetAdapter], CimJobException + FullyQualifiedErrorId : CmdletizationQuery_NotFound_Name,Get-NetAdapter I know the problem, I don't have a wireless card on this machine, but how is this different from you complaining that your network interface isn't called ens33?