通过门户网站UI在Azure上的VM设置静态IP [英] Setting static IP on azure vm via Portal UI

查看:222
本文介绍了通过门户网站UI在Azure上的VM设置静态IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常奇怪的情况。我试图设置IP为通过用户界面连接到虚拟机的静态网络接口。我打的静态按钮,乱作一团一个有效的IP,然后点击保存,没有错误可言。

I'm having a really weird situation. I'm trying to set the IP for a network interface attached to a VM to static via the UI. I hit the static button, whack in a valid IP and click save, no errors at all.

如果我轻弹然后关闭该选项卡,并返回到它,它再次恢复了活力。

If I then flick off that tab and back to it, it has reverted to dynamic again.

虚拟机关闭和新创建昨日

The VM is shutdown and newly created yesterday

我知道我可以通过PowerShell中这样做,但只是想,如果我做错了什么或它的UI是蹩脚弄清楚。

I know I can do it via powershell but just trying to figure out if I'm doing something wrong or its the UI being crappy.

就像一个警告,我是pretty熟悉服务器管理等,但与Azure的新的合理的,哪些不是,所以,请温柔:)

Just as a caveat, I'm pretty familiar with server admin etc but reasonably new with Azure and what not, so be gentle :)

在此先感谢

推荐答案

我刚刚测试了我的虚拟机之一,我认为你需要使它静态前删除网络接口和IP地址的对应关系。

I have just tested on one of my VM and I think that you need to remove the association between the network interface and the IP address before making it static.

因此​​,首先,进入你的虚拟机的网络接口。进入IP地址设置,并禁止公网IP地址。

So, first, go in the Network Interface of your VM. Go into the IP Addresses settings and disable the Public IP address.

然后去在你的公共IP地址设置,单击配置,选择以使其静态的。等待确认。

Then go in your Public IP address settings, click Configuration, choose to make it static. Wait for the confirmation.

然后回到你的虚拟机的网络接口设置,并重新对IP地址关联。

Then go back in the Network Interface settings of your VM and re associate the IP address.

它应该现在的工作。

这篇关于通过门户网站UI在Azure上的VM设置静态IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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