Como gerenciar a interface Ethernet virtual (NDIS) com cmd

Como gerenciar a interface Ethernet virtual (NDIS) com cmd

Eu uso frequentemente a função de tethering USB do meu smartphone Android. Se o gerenciador de rede estabelecer a conexão, a rede receberá quase sempre um novo nome de rede (iniciado com "Rede 1" incrementa o número após "Rede" todas as vezes).

Suspeito que o Smartphone use outro endereço MAC para o dispositivo Ethernet virtual toda vez, inicia o dispositivo virtual ou inicializa o sistema operacional ou qualquer outra coisa. Não tenho conhecimento suficiente sobre a tecnologia utilizada para afirmar isso com certeza.

Seria bom para mim se eu pudesse excluir as redes antigas uma e outra vez. Pensei, posso excluí-los com o netsh lancomando, mas o resultado é apenas o seguinte

C:\Windows\system32> netsh lan show profiles
The Wired AutoConfi Service (dot3svc) is not running

Então comecei com:

C:\Windows\system32> sc.exe config dot3svc start= auto

Depois disso, o comando netsh lan show interfacemostra minha interface Ethernet de hardware (Realtek PCIe), mas não a virtual. netsh int show intlista (está em alemão):

C:\Windows\system32>netsh int show int

Verw.-status   Status         Typ              Schnittstellenname
-------------------------------------------------------------------------
Deaktiviert    Getrennt       Dediziert        WiFi
Aktiviert      Verbunden      Dediziert        Ethernet 2
Aktiviert      Getrennt       Dediziert        Ethernet

O dispositivo Ethernet virtual imprime o nome SAMSUNG Mobile USB Remote NDIS Network Device. Como posso controlar o dispositivo NDIS via linha de comando? (Graficamente também seria bom, se for possível)

Responder1

Comando de lista:

C:\Windows\system32>netsh mbn show interfaces

Comando de conexão:

C:\Windows\system32>netsh mbn connect interface="interface_name" connmode=name name="connection_name"

Comando de desconexão:

C:\Windows\system32>netsh mbn disconnect interface="interface_name"

informação relacionada