我对AZURE非常陌生,并试图连接两个VM (相同的网络,独立的子集)。
我在这两个VM上都启用了RDP,所以我可以像这样从VM-1切换到VM-2:
PS C:\Users\AzureUser> Test-NetConnection 10.0.1.4 -port 3389
ComputerName : 10.0.1.4
RemoteAddress : 10.0.1.4
RemotePort : 3389
InterfaceAlias : Ethernet
SourceAddress : 10.0.0.4
TcpTestSucceeded : True我想这是因为这个端口3389用于RDP。
现在,在入站端口规则中,我添加了端口8080,但无法连接。

PS输出:
PS C:\Users\AzureUser> Test-NetConnection 10.0.1.4 -port 8080
WARNING: TCP connect to 10.0.1.4:8080 failed
WARNING: Ping to 10.0.1.4 failed -- Status: TimedOut
ComputerName : 10.0.1.4
RemoteAddress : 10.0.1.4
RemotePort : 8080
InterfaceAlias : Ethernet
SourceAddress : 10.0.0.4
PingSucceeded : False
PingReplyDetails (RTT) : 0 ms
TcpTestSucceeded : False总体虚拟网络连接如下:

任何帮助都是非常感谢的。
发布于 2020-06-26 20:24:55
看看端口在目的地是否监听是个好主意
netstat -ano | findStr "8080"端口3389正在切换,因为它已经打开并分配了RDP应用程序。类似地,端口8080应该有一个正在运行并处于侦听模式的应用程序,以成功地ping端口。
谢谢你,马努
发布于 2020-06-26 20:28:14
您正在从一个子网切换到另一个子网。流量必须能够从第一个子网进入第二个子网。因此,您需要同时定义入站和出站规则。
请参阅:https://learn.microsoft.com/en-us/azure/virtual-network/security-overview#default-security-rules
https://stackoverflow.com/questions/62601960
复制相似问题