积极答复者
错误设置固定ip后 无法连接到虚拟机

问题
-
我有一台在虚拟网络中的虚拟机(192.168.200.36),它的云服务有VIP(是保留ip,Reserved IP),这台vm还有实例级别ip (public ip)。
我在网卡的设置中把自动获取ip改成了
- 静态ip(同public ip)
- 子网掩码 (255.255.255.255)
- 默认网关(192.168.200.33)
然后在我点了确定之后,就无法联网了(我用远程桌面访问不到了)。
我在管理门户关闭,重启过虚拟机之后,问题依旧(以前的话Azure会重新分配一块虚拟网卡的)。
所以,我现在依旧无法访问我的虚拟机。
- 已编辑 _qin_ 2014年9月10日 5:01
答案
-
Azure中的VM如果要设置IP,不支持在VM内通过传统的TCP/IP设置的方式进行。
如果已经在VM内设置,可以通过下面的方式:1. 停止并删除虚拟机,删除时保存VHD。
2. 下载VHD到本地
3. 在Hyper-V中挂载VHD(从VHD创建新虚拟机)
4. 登陆后,将网络配置改为自动获取。然后停止此虚拟机。
5. 将VHD传回Azure
6. 基于此VHD创建新Azure VM
另,在Azure中如果要配置VM使用静态IP,可以参考:
http://azure.microsoft.com/en-us/blog/static-internal-ip-address-for-virtual-machines/Xiwang
- 已标记为答案 Xi WangMicrosoft employee, Moderator 2015年9月2日 2:16
全部回复
-
Hi,
你可以试着进入Azure的门户网站,然后把虚拟机的尺寸改大或改小,之后在改回原先的尺寸,据我所知,这样做会触发Azure基础控制器重新初始化你的网卡设置。
希望能帮到你。
谢谢
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已编辑 Jambor yaoMicrosoft employee, Moderator 2014年9月10日 6:11
-
Hi,
无法连接虚拟机提示的详细错误是什么?这台虚拟机在azure管理门户网站中的状态是什么?
Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
Hi,
我尝试还原你的错误,打开虚拟机更改网络配置,然后虚拟机提示断开连接,再去连接时提示找不到虚拟机, 之后我按照我第一个回复操作了一次,我的虚拟机又恢复正常了,你试着从azure管理门户网站连接再试试。
Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
Azure中的VM如果要设置IP,不支持在VM内通过传统的TCP/IP设置的方式进行。
如果已经在VM内设置,可以通过下面的方式:1. 停止并删除虚拟机,删除时保存VHD。
2. 下载VHD到本地
3. 在Hyper-V中挂载VHD(从VHD创建新虚拟机)
4. 登陆后,将网络配置改为自动获取。然后停止此虚拟机。
5. 将VHD传回Azure
6. 基于此VHD创建新Azure VM
另,在Azure中如果要配置VM使用静态IP,可以参考:
http://azure.microsoft.com/en-us/blog/static-internal-ip-address-for-virtual-machines/Xiwang
- 已标记为答案 Xi WangMicrosoft employee, Moderator 2015年9月2日 2:16