Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

Understand shared IP addresses in Azure DevTest Labs

Feedback

In this article

Azure DevTest Labs virtual machines (VMs) can share a public IP address, to minimize the number of public IPs you need to access lab VMs. This article describes how shared IPs work, and how to configure shared IP addresses.

Shared IP settings

You create a DevTest Labs lab in a virtual network, which can have one or more subnets. The default subnet hasEnable shared public IP set toYes. This configuration creates one public IP address for the entire subnet. Any VMs in this subnet default to using the shared IP.

For more information about configuring virtual networks and subnets, seeConfigure a virtual network in Azure DevTest Labs.

Screenshot that shows the Shared I P setting on the Lab Subnet page.

For existing labs, you can check or set this option by selectingConfiguration and policies in the lab's left navigation, and then selectingVirtual networks underExternal resources. Select a virtual network from the list to see the shared IP settings for its subnets.

To change the setting, select a subnet from the list, and then changeEnable shared public IP toYes orNo.

When creating a VM, you can access this setting on theAdvanced settings page next toIP address.

Screenshot that shows the Shared I P setting in Advanced Settings when creating a new V M.

  • Shared: All VMs you create asShared go into the same resource group. The resource group has one assigned IP address that all VMs in the resource group use.
  • Public: Every public VM has its own IP address and resource group.
  • Private: Every private VM uses a private IP address. You can't connect to these VMs from the internet by using Remote Desktop protocol (RDP).

When you add a VM with shared IP to a subnet, DevTest Labs automatically adds the VM to a load balancer and assigns the VM a TCP port number on the public IP address. The port number forwards to the secure shell (SSH) port on the VM.

Use a shared IP

  • Windows users: Select theConnect button on the VMOverview page to download a pre-configured RDP file and access the VM.

  • Linux users: Secure shell (SSH) connects to the VM by using the IP address or fully qualified domain name, followed by a colon, followed by the port number. For example, the following screenshot shows an SSH connection address ofcontoso.westus3.cloudapp.azure.com:65013.

    Screenshot that shows the R D P and S S H connection options on a VM Overview page.

Next steps


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?