Azure China-(4) Configure a static internal IP address (DIP) for Azure virtual machines

Source: Internet
Author: User

In most cases, you do not need to specify a static internal IP address (DIP) for the virtual machine. VMS in a virtual network automatically receive an internal IP address within the range you specify. In some cases, however, it is meaningful to specify a static IP address for a specific VM. For example, if your VM is running DNS or will be a domain controller. Or, if you have a VM that you plan to stop/cancel at some point, but want to retain its DIP when you reset it. The static DIP remains unchanged in the VM, even in the Stop/Cancel settings state. You can use PowerShell to specify a static DIP when you create a VM, or you can update an existing VM.

1. Verify that the specific IP address in the virtual network vmnet is available. The virtual network is created here on the Web page first.

650) this.width=650; "title=" clip_image001 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image001 "src=" http://s3.51cto.com/wyfs02/M01/58/3E/wKiom1SszyPwPzmcAADZDGI0TnQ282.jpg "height=" 177 "/>

2. Create an azure virtual machine that uses a dip.

New-azurevmconfig-name "FTPInstance4"-instancesize medium-imagename 0c5c79005aae478e8883bf950a861ce0__ WINDOWS-SERVER-2012-ESSENTIALS-20131018-ZHCN | Set-azuresubnet-subnetnames subnet-1| Set-azurestaticvnetip-ipaddress 10.0.0.10 | Add-azureprovisioningconfig-windows-adminusername Mark-password [email protected] | New-azurevm-servicename "FTPinAzure4"-vnetname "Vmnet"

650) this.width=650; "title=" clip_image003 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image003 "src=" http://s3.51cto.com/wyfs02/M02/58/3E/wKiom1SszyWz9wTPAAChJccnneA322.jpg "height=" 134 "/>

3. Check whether the virtual machine uses the specified ip:10.0.0.10.

650) this.width=650; "title=" clip_image005 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image005 "src=" http://s3.51cto.com/wyfs02/M00/58/3E/wKiom1SszyjxwDMUAACcmBpHDhU927.jpg "height=" 267 "/>

4. Specifying a static internal Ipget-azurevm-servicename Markliang-name VM1 for a previously created VM | Set-azurestaticvnetip-ipaddress 10.0.0.21 | UPDATE-AZUREVM 5. Remove the static internal IP address from the VM $get-azurevm-servicename markliang-name VM1 | Remove-azurestaticvnetip | Update-azurevm



This article from "Month lacks" the blog, declined reprint!

Azure China-(4) Configure a static internal IP address (DIP) for an azure virtual machine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.