Powershell 使用约束接口测试网络连接问题
如何检查两个不同于数据的接口之间的通信? 例如,我想检查两个语音接口之间的通信TCP。不是平。 源IP为10.116.69.215 目标IP为10.104.74.145 以前我试过:Powershell 使用约束接口测试网络连接问题,powershell,tcp,cmdlet,netconnection,Powershell,Tcp,Cmdlet,Netconnection,如何检查两个不同于数据的接口之间的通信? 例如,我想检查两个语音接口之间的通信TCP。不是平。 源IP为10.116.69.215 目标IP为10.104.74.145 以前我试过: Test-NetConnection -Port 5060 -ComputerName 10.104.74.145 但我只收到来自接口数据的摘要 ComputerName : 10.104.74.145 RemoteAddress : 10.104.74.145 Remote
Test-NetConnection -Port 5060 -ComputerName 10.104.74.145
但我只收到来自接口数据的摘要
ComputerName : 10.104.74.145
RemoteAddress : 10.104.74.145
RemotePort : 5060
InterfaceAlias : VMAccess
SourceAddress : 10.116.64.202
PingSucceeded : False
PingReplyDetails (RTT) : 0 ms
TcpTestSucceeded : False
我尝试修改cmdlet。所以我从
获取NetAdapter
Name InterfaceDescription ifIndex Status
---- -------------------- ------- ------
BackupNet Microsoft Hyper-V Network Adapter #3 15 Up
VoiceNet Microsoft Hyper-V Network Adapter #4 17 Up
VMAccess Microsoft Hyper-V Network Adapter #2 14 Up
BootNet Microsoft Hyper-V Network Adapter 13 Not Present
测试网络连接10.104.74.145-端口5060-接口17-诊断路由-详细信息级别
但我收到:
Test-NetConnection : A parameter cannot be found that matches parameter name 'ConstrainInterface'.
At line:1 char:45
+ ... st-netconnection 10.102.73.135 -Port 5060 -ConstrainInterface 17 -Dia ...
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Test-NetConnection], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Test-NetConnection
有什么问题吗?无法使用设置了该参数的-port
Test-NetConnection
[[-ComputerName] <String>]
[-DiagnoseRouting]
[-ConstrainSourceAddress <String>]
[-ConstrainInterface <UInt32>]
[-InformationLevel <String>]
[<CommonParameters>]
测试网络连接
[-ComputerName]]
[-诊断路由]
[-sourceaddress]
[-约束接口]
[-InformationLevel]
[]