将VM设置为内部静态IP会破坏外部源的RDP [英] Setting VM to internal static IP broke RDP from external sources

查看:88
本文介绍了将VM设置为内部静态IP会破坏外部源的RDP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将2012 R2虚拟机上的内部IP设置为静态,并为其提供了相同的IP地址,现在我无法再从虚拟网络外的任何位置连接到此虚拟机。



我已经确认RDP连接可以从网络中的另一台机器上运行,但没有任何东西可以通过互联网连接到它。它只是超时。



到目前为止,我尝试了以下行为而没有改变行为:



检查NSG以确保连接正在通过而不会被阻止。它没有被阻止。

重置VM上的RDP配置两次。

重新启动VM两次。

重新部署VM并重复之前的步骤没有任何变化。

撤消更改以使其成为动态。重新测试 - 无变化。

将其反转回静态并重新测试而不做更改。

将其更改为静态后再次重新启动VM。没有变化。



我几乎花了两个小时打我的脑袋。我不知道我还能做什么。 
$


任何建议都会受到赞赏。

解决方案

 



您是否更改了来宾操作系统中的私有IP?



您所做的任何更改都需要在Portal上完成。您不应更改来宾操作系统级别中的任何网络相关设置。 



如您所述,您可以通过私有IP进行RDP从同一VNET中的VM,尝试以下步骤。 




  • 从NIC中删除NSG和子网(仅用于测试目的)
  • 从VM刀片再次下载RDP文件。
  • 在RDP之前,尝试检查端口3389是否已打开。您可以通过在此站点中输入您的公共IP和端口来完成此操作。( https://ping.eu/port-chk/
  • 如果它已打开,请尝试RDP。如果您收到任何错误,请在此处发布。 

问候, 


Msrini


I set the internal IP on a 2012 R2 VM to static, and gave it the same IP address it had, and now I can no longer connect to this VM from anywhere outside of the virtual network.

I've confirmed RDP connection works from another machine in the network, but nothing can connect to it from the internet. It just times out.

So far I've tried the following with no change in behavior:

Checked the NSG to make sure the connection is passing without being blocked. It isn't being blocked.
Reset the RDP config on the VM twice.
Restarted the VM twice.
Redeployed the VM and repeated the previous steps without any change.
Reversed the change to make it Dynamic. Retested - no change.
Reversed it back to Static and retested without change.
Restarted the VM again after changing it back to static. No change.

I've been beating my head against this for almost two hours. I have no idea what else I can do. 

Any suggestions would be appreciated.

解决方案

Hi, 

Did you change the Private IP in the guest OS?

Any changes you make needs to be done on the Portal. You should not change any network related settings in the Guest OS level. 

As you mentioned that you are able to RDP via private IP from a VM within the same VNET, try the below steps. 

  • Remove the NSG from the NIC and Subnet (Just for testing purpose)
  • Download the RDP file again from the VM blade.
  • Before RDP, try to check if the port 3389 is open. You can do this by entering your Public IP and port in this site.(https://ping.eu/port-chk/)
  • If it is open, then try RDP. If you get any error, post it here. 

Regards, 

Msrini


这篇关于将VM设置为内部静态IP会破坏外部源的RDP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆