Understanding IP addresses

A VNet in Azure can have private and public IP addresses. Private IP addresses are only accessible from within the VNet, though public IP addresses can be accessed from the internet as well. You can access private IP addresses from a VPN gateway or an ExpressRoute connection. Both private and public IP addresses can be static or dynamic, but when you create a new VNet, the IP address is static by default. You can change the IP address to static from the Azure portal, PowerShell, or command-line interface (CLI). The following are the two states of an IP address:

  • Dynamic: Dynamic IP addresses are assigned by Azure automatically and are selected from the configured subnet's address range from the virtual network where the Azure resource resides. The IP address is assigned to the Azure resource upon creation or start. The IP address will be released when the resource is stopped and deallocated (when you stop the VM from the Azure portal, the VM is deallocated automatically) and added back to the pool of available addresses inside the subnet by Azure.
  • Static: Static IP addresses (private and public) are preassigned and will remain the same until you delete the assignment. You can select a static private IP address manually. They can only be assigned to non-internet-facing connections, such as an internal load balancer. You can assign a private static IP address to a connection on your on-premises network or to an ExpressRoute circuit. Public static IP addresses are created by Azure automatically and can be assigned to internet-facing connections such as an external load balancer.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset