Azure的ASM下,很多用户的应用种域名的解析在DNS服务器种都采用A记录的方式,所以很多用户都在Azure上采用了Reserved IP。

关于Reserved IP,可以参考http://www.cnblogs.com/hengwei/p/5161433.html

在ASM到ARM的迁移中,IP地址也是迁移中需要考虑的一个重要问题,如果IP地址不能迁移,就需要客户更改DNS中的记录。

如果修改了DNS的记录,考虑到DNS本身架构的特点,割接的时间将会大大增加。所以迁移Reserved IP是ASM到ARM工作中需要重点考虑的内容之一。

Azure Reserved IP的迁移有两种方式:

1. VNET整体迁移

如果采用平台的工具进行VNET的整体迁移,Public的IP地址会随着VM迁移到ARM模式下。

已经创建好了一台VM,其Cloud Service的IP地址是Reserved IP:

VM的信息:

Reserved IP信息:

通过SSH到这台VM上,进行检测,这里用到的是Paping,类似Windows里的PSPING,下载地址是:

https://hwblob.blob.core.chinacloudapi.cn/test/paping_1.5.5_x86-64_linux.tar.gz

然后对VNET进行迁移:

Move-AzureVirtualNetwork -VirtualNetworkName hwmig -Validate
Move-AzureVirtualNetwork -VirtualNetworkName hwmig -Prepare
Move-AzureVirtualNetwork -VirtualNetworkName hwmig -Commit

这个过程中,paping出现三次中断:

Connected to 111.13.100.91: time=.67ms protocol=TCP port=
Connected to 111.13.100.91: time=.30ms protocol=TCP port=
Connected to 111.13.100.91: time=.50ms protocol=TCP port=
Connection timed out
Connection timed out
Connection timed out
Connection timed out
Connected to 111.13.100.91: time=.65ms protocol=TCP port=
Connected to 111.13.100.91: time=.91ms protocol=TCP port=
Connected to 111.13.100.91: time=.59ms protocol=TCP port=

Connected to 111.13.100.91: time=.31ms protocol=TCP port=
Connection timed out
Connection timed out
Connected to 111.13.100.91: time=.53ms protocol=TCP port=
Connected to 111.13.100.91: time=.49ms protocol=TCP port=

Connected to 111.13.100.91: time=.63ms protocol=TCP port=
Connection timed out
Connection timed out
Connection timed out
Connected to 111.13.100.91: time=.30ms protocol=TCP port=

一次发生在prepare中,两次发生在commit中,但时间都非常短。

结束后,可以看到:

地址没有发生变化。

查看Public IP,可以看到已经迁移过来,且地址没有变化,管理在负载均衡器上:

2. 单独迁移Reserved IP

当然在做这些move的命令前,都要在订阅中注册相应的provider:

在powershell中运行如下命令:

Move-AzureReservedIP -ReservedIPName hwrip02 -Validate
Move-AzureReservedIP -ReservedIPName hwrip02 -Prepare
Move-AzureReservedIP -ReservedIPName hwrip02 -Commit

运行完后,这个Reserved IP就迁移到ARM模式下了。

总结:

从ASM到ARM的迁移中,IP地址的迁移可以采用两种方式实现。

  1. 随着VNET一起迁移
  2. 单独迁移

Azure ASM到ARM迁移 (三) Reserved IP的迁移的更多相关文章

  1. Azure Reserved IP

    Azure PowerShell > Add-AzureAccount> Select-AzureSubscription "SubscriptionName"> ...

  2. Azure CLI对ASM,ARM资源的基本操作

    本文主要介绍Windows Azure CLI对ASM及ARM资源的基本操作 1.在windows的CMD或Powershell环境下,输入命令:azure,可以查看到当前操作的模式为ASM还是ARM ...

  3. 使用 Azure CLI 将 IaaS 资源从经典部署模型迁移到 Azure Resource Manager 部署模型

    以下步骤演示如何使用 Azure 命令行接口 (CLI) 命令将基础结构即服务 (IaaS) 资源从经典部署模型迁移到 Azure Resource Manager 部署模型. 本文中的操作需要 Az ...

  4. Azure SQL Database (21) 将整张表都迁移到Azure Stretch Database里

    <Windows Azure Platform 系列文章目录>  Azure SQL Database (19) Stretch Database 概览      Azure SQL Da ...

  5. 使用Json Template在Azure China创建ARM类型的虚拟机

    前面几篇文章介绍过Azure的两种VM的模式,包括ASM和ARM.并且介绍了如何用Azure CLI和PowerShell创建虚拟机.本文将介绍如何采用Json的Template来创建基于ARM的VM ...

  6. Windows Azure Web Site (9) Web Site公网IP地址

    <Windows Azure Platform 系列文章目录> 本文会同时介绍国内由世纪互联运维的Azure China和海外Azure Global. 熟悉Windows Azure平台 ...

  7. 保留ip: Reserved IP addresses

    Reserved IP addresses From Wikipedia, the free encyclopedia     In the Internet addressing architect ...

  8. [转]详述DHCP服务器的三种IP分配方式

    DHCP就是动态主机配置协议(Dynamic Host Configuration Protocol),它的目的就是为了减轻TCP/IP网络的规划.管理和维护的负担,解决IP地址空间缺乏问题.这种网络 ...

  9. Azure Powershell对ARM资源的基本操作

    本分主要介绍Windows Azure Powershell对ARM资源的基本操作 1.登陆ARM模式,命令:Login-AzureRmAccount -EnvironmentName AzureCh ...

随机推荐

  1. tomcat8配置tomcat-users.xml不生效

    一般想进入tomcat管理后台,只要在tomcat-users.xml配置文件中添加一下内容即可 <role rolename="manager-gui"/> < ...

  2. JAVA 集成 Ueditor 百度富文本编辑器

    开发环境:一个简单的SpringMVC框架中,用百度富文本编辑器 ueditor 实现图片和文件的上传 官网地址:http://ueditor.baidu.com/website/ 需要使用到的2个文 ...

  3. 2.virtualenv安装和配置以及在PyCharm中如何使用虚拟环境

    virtualenv优点 使不同应用开发环境相互独立 环境升级不影响其它应用,也不会影响全局的python环境 它可以防止系统中出现包管理混乱和版本的冲突 1.使用virtualenv pip ins ...

  4. JAVA使用Freemarker生成静态文件中文乱码

    1.指定Configuration编码 Configuration freemarkerCfg = new Configuration(); freemarkerCfg.setEncoding(Loc ...

  5. 开机启动顺序rc.local与chkconfig的不同

    /etc/rc.local文件有如下两行/etc/init.d/mysql start/etc/init.d/keepalived start /etc/rc.local是按脚本的顺序一个启动后启动下 ...

  6. shell删除最后一列、删除第一行、比较文件

    删除文件第一行: sed -i '1d' filename 删除文件最后一列: awk '{print $NF}' filename 比较文件的方法: 1)comm -3 --nocheck-orde ...

  7. input ajax自动补全

    页面 <div class="manage-Car-add-info-sn"> <p style="width:25%; height:70%;floa ...

  8. 基于docker环境,搭建 jetty环境, 部署java项目

    前提: 1.Ubuntu 系统. 2.docker环境已经安装好. 实现步骤: 1.上docker hub 下载jetty docker 镜像. 执行命令:$ sudo docker pull jet ...

  9. LeetCode——same-tree

    Question Given two binary trees, write a function to check if they are equal or not. Two binary tree ...

  10. c#.NET中日志信息写入Windows日志中解决方案

    1. 目的应用系统的开发和维护离不开日志系统,选择一个功能强大的日志系统解决方案是应用系统开发过程中很重要的一部分.在.net环境下的日志系统解决方案有许多种,log4net是其中的佼佼者.在Wind ...