2022年6月3日 星期五

windows 10 cli show intrface name and using bridgecreate (bridgedevicelist)

 


VPN Server>bridgedevice list

BridgeDeviceList 命令 - 获取可以在当地的网桥上使用的 LAN 卡一览

Microsoft (ID=1170327442)

Realtek Gaming GbE Family Controller (ID=2635375448)

Supereal network (ID=0934702716)

VMware Virtual Ethernet Adapter (ID=1905419454)

VMware Virtual Ethernet Adapter (2) (ID=0913673047)

命令成功完成。


VPN Server>bridgecreate

BridgeCreate 命令 - 创建本地的网桥连接

网桥虚拟 HUB 名称: vpn


目标网桥的设备名称: Microsoft


发生错误。(错误代码: 29)

找不到对象。

VPN Server>netsh interface show interface

"netsh": 命令未找到。

您可以使用 "HELP" 命令来查看一个可用的命令列表。

VPN Server>exit


C:\Program Files\SoftEther VPN Bridge>netsh interface show interface


管理狀態    狀態          類型             介面名稱

-------------------------------------------------------------------------

已啟用            已中斷連線          固定               乙太網路 3

已啟用            已中斷連線          固定               VPN - VPN Client

已啟用            已連線            固定               VMware Network Adapter VMnet1

已啟用            已連線            固定               VMware Network Adapter VMnet8

已啟用            已中斷連線          固定               乙太網路 4

已啟用            已連線            固定               乙太網路


C:\Program Files\SoftEther VPN Bridge>netsh interface ip show interfaces


Idx     Met         MTU          狀態                 名稱

---  ----------  ----------  ------------  ---------------------------

  1          75  4294967295  connected     Loopback Pseudo-Interface 1

 14          25        1500  connected     乙太網路

 15          35        1500  disconnected  VPN - VPN Client

 11          65        1500  disconnected  藍牙網路連線

  6          35        1500  disconnected  乙太網路 3

 21          35        1500  disconnected  乙太網路 4

 17          35        1500  connected     VMware Network Adapter VMnet1

  4          35        1500  connected     VMware Network Adapter VMnet8

  



C:\Program Files\SoftEther VPN Bridge>powershell

Windows PowerShell

Copyright (C) Microsoft Corporation. 著作權所有,並保留一切權利。


請嘗試新的跨平台 PowerShell https://aka.ms/pscore6


PS C:\Program Files\SoftEther VPN Bridge> Get-NetAdapter


Name                      InterfaceDescription                    ifIndex Status       MacAddress             LinkSpeed

----                      --------------------                    ------- ------       ----------             ---------

區域連線                  PPPoP WAN Adapter                            22 Disconnected 00-00-00-00-00-00          0 bps

乙太網路 4                RD9700 USB2.0 To Fast Ethernet Adapter       21 Disconnected 00-06-03-0F-0A-80       100 Mbps

VMware Network Adapte...1 VMware Virtual Ethernet Adapter for ...      17 Up           00-50-56-C0-00-01       100 Mbps

VPN - VPN Client          VPN Client Adapter - VPN                     15 Disconnected 5E-9E-06-F2-3E-98       100 Mbps

乙太網路                  Realtek Gaming GbE Family Controller         14 Up           B4-2E-99-EE-71-78         1 Gbps

藍牙網路連線              Bluetooth Device (Personal Area Netw...      11 Disconnected 00-1A-7D-DA-71-12         3 Mbps

乙太網路 3                Fortinet Virtual Ethernet Adapter (N...       6 Disconnected 00-09-0F-FE-00-01       100 Mbps

VMware Network Adapte...8 VMware Virtual Ethernet Adapter for ...       4 Up           00-50-56-C0-00-08       100 Mbps




PS C:\Program Files\SoftEther VPN Bridge> Get-NetIPInterface


ifIndex InterfaceAlias                  AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp     ConnectionState PolicyStore

------- --------------                  ------------- ------------ --------------- ----     --------------- -----------

4       VMware Network Adapter VMnet8   IPv6                  1500              35 Enabled  Connected       ActiveStore

17      VMware Network Adapter VMnet1   IPv6                  1500              35 Enabled  Connected       ActiveStore

21      乙太網路 4                      IPv6                  1500              35 Disabled Disconnected    ActiveStore

6       乙太網路 3                      IPv6                  1500              35 Disabled Disconnected    ActiveStore

11      藍牙網路連線                    IPv6                  1500              65 Disabled Disconnected    ActiveStore

15      VPN - VPN Client                IPv6                  1500              35 Enabled  Disconnected    ActiveStore

1       Loopback Pseudo-Interface 1     IPv6            4294967295              75 Disabled Connected       ActiveStore

4       VMware Network Adapter VMnet8   IPv4                  1500              35 Disabled Connected       ActiveStore

17      VMware Network Adapter VMnet1   IPv4                  1500              35 Disabled Connected       ActiveStore

21      乙太網路 4                      IPv4                  1500              35 Enabled  Disconnected    ActiveStore

6       乙太網路 3                      IPv4                  1500              35 Enabled  Disconnected    ActiveStore

11      藍牙網路連線                    IPv4                  1500              65 Enabled  Disconnected    ActiveStore

15      VPN - VPN Client                IPv4                  1500              35 Enabled  Disconnected    ActiveStore

14      乙太網路                        IPv4                  1500              25 Enabled  Connected       ActiveStore

1       Loopback Pseudo-Interface 1     IPv4            4294967295              75 Disabled Connected       ActiveStore


PS C:\Program Files\SoftEther VPN Bridge> Get-NetIPInterface -PolicyStore persistentstore


ifIndex InterfaceAlias                  AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp     ConnectionState PolicyStore

------- --------------                  ------------- ------------ --------------- ----     --------------- -----------

21      乙太網路 4                      IPv6                                                                Persiste...

15      VPN - VPN Client                IPv6                                                                Persiste...

6       乙太網路 3                      IPv6                                                                Persiste...

7       乙太網路 2                      IPv6                                                                Persiste...

11      藍牙網路連線                    IPv6                                                                Persiste...

4       VMware Network Adapter VMnet8   IPv6                                                                Persiste...

17      VMware Network Adapter VMnet1   IPv6                                                                Persiste...

14      乙太網路                        IPv6                                                                Persiste...

12      乙太網路 (核心偵錯工具)         IPv6                                                                Persiste...

21      乙太網路 4                      IPv4                                                                Persiste...


example:

BridgeCreate vpn /DEVICE:"乙太網路 4" /TAP:no 

VPN Server>bridgelist

BridgeList 命令 - 获得当地网桥连接列表

编号|虚拟 HUB 名称|网络适配器或 tap 设备名称                           |状态

----+-------------+----------------------------------------------------+----

1   |vpn          |Realtek Gaming GbE Family Controller (ID=2635375448)|离线

命令成功完成。


VPN Server>bridge

"bridge": 命令名称是模糊的。

指定的命令名称匹配以下多个命令:

 BridgeCreate     - 创建本地的网桥连接

 BridgeDelete     - 删除本地网桥连接

 BridgeDeviceList - 获取可以在当地的网桥上使用的 LAN 卡一览

 BridgeList       - 获得当地网桥连接列表

请更严格地重新指定命令名称。

VPN Server>bridgedelete

BridgeDelete 命令 - 删除本地网桥连接

删除虚拟网桥 HUB 的名称: vpn


删除网桥的设备名: Realtek Gaming GbE Family Controller (ID=2635375448)


命令成功完成。




 

沒有留言:

張貼留言