Windows Azure Virtual Machine (28) uses Azure instance level ip,instance-level public IP Address (PIP)

Source: Internet
Author: User
Tags azure load balancer

Windows Azure Platform Family of articles Catalog

This article describes the domestic azure China by the century connected operation

  

  Readers familiar with the Azure platform know that we are using azure virtual machine and there will be a public VM IP (VIP) and an internal IP (DIP). As follows:

  

  

On the Azure platform, there are very important concepts about IP

1.VIP (Virtual IP), this is the IP address of the azure load balancer (SLB). When 2 Azure VMs are deployed under the same cloud service, the VIP for these 2 Azure VMS is the same.

If I need a fixed VIP address, please use azure PowerShell

  We cannot detect the VIP of an azure VM through the ping command because the azure load balancer (SLB) is disabling the ICMP protocol.

2.DIP (Dynamic IP), this is the intranet IP address of the Azure VM. Between different VMs in the same virtual machine network, the dip communicates with each other.

  It's also a reminder that the Azure VM dip is first come first served, and the Azure VM that was first created and powered on will automatically get the first available dip.

If we need a fixed dip address, please use Azure PowerShell.

Azure China (8) Create a virtual machine with Azure PowerShell and set up a fixed-virtual IP address and private IP

In some cases, however, we need to obtain the Internet IP address of the Azure VM (note that it is not the IP address of the load balancer), which requires using the Azure instance level ip,instance-level public IP addresses (PIP).

  When 2 Azure VMs are deployed under the same cloud service and the PIP is turned on, the PIP for these 2 Azure VMs is different.

When we use azure Pip, all requests are sent directly to the Azure VM without the azure load balancer. Therefore, Azure PIP does not need to configure endpoint, and all endpoint are exposed directly to the Internet. From a security standpoint, we need to be very careful about configuring firewall rules for Azure VMS.

With PIP, we can use the ping command to directly monitor the Azure VM situation.

Azure Vip,dip, the difference between Pip is as follows:

  

In this chapter we are divided into the following sections:

I. Simulation Scenarios

Two. How Azure VMs turn on PIP

Three. Perform the ping command

Four. Turn off PIP for Azure VMs

Five. Limitations of Azure Pip

Let's start with the first part:

I. Simulation Scenarios

To the author's environment as an example, I have a Linux VM, the information is as follows:

  

VIP is: 42.159.245.162

Dip for: 10.0.0.4

Pip is not the default

  

 Two. How Azure VMs Turn on PIP, we open Azure PowerShell as an administrator, execute the following command

Add-azureaccount-Environment Azurechinacloud#Enter the user name and password in the popup interface#Set Current SubscriptionSelect-azuresubscription-subscriptionname ' [yoursubscriptionname] ' –current#set PIPGet-azurevm-servicename"[Yourdnsname]"-name"[Yourvmname]"| Set-azurepublicip-publicipname"[Yourpipname]"| update-AZUREVM#View the PIP information$instance= Get-azurevm-servicename"[Yourdnsname]"-name"[Yourvmname]" $instance. PublicIPAddress#The pip address for this azure VM is obtained when the above execution is complete

Taking the author's environment as an example, the execution result is as follows:

  

After execution, the information for this azure VM is as follows:

VIP is: 42.159.245.162

Dip for: 10.0.0.4

pip:42.159.247.197

Three. Perform the ping command

We can ping the pip:42.159.247.197 directly.

  

We can also perform SSH operations on the PIP for this azure VM.

  

 Keep in mind that the default Azure VM VIP is unable to perform a ping command.

We cannot ping commands to Azure VM vip:42.159.245.162.

  

  When we use azure Pip, all requests are sent directly to the Azure VM without the azure load balancer. Therefore, Azure PIP does not need to configure endpoint, and all endpoint are exposed directly to the Internet. From a security standpoint, we need to be very careful about configuring firewall rules for Azure VMS.

 Four. Turn off Azure PIP

We run Azure PowerShell as an administrator and execute the following commands:

" [Yourdnsname] " " [Yourvmname] " | Remove-azurepublicip | Update-azurevm

This removes the PIP for the Azure VM.

  

Five. Limitations of Azure Pip

  (1) Azure Pip cannot be pinned

(2) A maximum of 5 pip addresses per subscription, by default. If you need more azure PIP, please contact century interconnect

(3) Azure PIP cannot be displayed on the admin interface and can only be viewed through Azure PowerShell

  

Http://blogs.msdn.com/b/cloud_solution_architect/archive/2014/11/08/vips-dips-and-pips-in-microsoft-azure.aspx

https://azure.microsoft.com/en-us/blog/instance-level-public-ip-address/

  

Windows Azure Virtual Machine (28) uses Azure instance level ip,instance-level public IP Address (PIP)

Related Article

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.