Question

Difficulty: MediumConfigure Public and Private IP Addresses

An administrator is configuring a virtual machine named VM-Prod1 in the East US region. The virtual machine hosts a web application that requires two separate public IP addresses. VM-Prod1 has a single network interface named NIC-Prod1. You need to configure NIC-Prod1 to support this requirement. Which of the following actions should you perform? Select two.

  1. Add a secondary IP configuration to NIC-Prod1.Answer
  2. Associate a public IP address with the secondary IP configuration.Answer
  3. C
    Associate a second public IP address to the primary IP configuration of NIC-Prod1.
  4. D
    Configure the secondary IP configuration to use a Standard SKU public IP address with dynamic allocation.

Answer

To support multiple public IP addresses, you must add a secondary IP configuration to the network interface, and then associate a public IP address with that secondary IP configuration.
To support multiple public IP addresses on a single network interface, you must configure multiple IP configurations. Each configuration is allocated a private IP address and can optionally be associated with one public IP address.

Step-by-Step Solution

1
Add a secondary IP configuration to the network interface.
NIC-Prod1 is configured with a secondary IP configuration, which automatically receives a private IP address from the subnet's range.
Azure network interfaces require a unique private IP configuration for each public IP address you want to associate with the interface.
2
Associate a public IP address with the secondary IP configuration.
The second public IP address is bound to the secondary IP configuration on the network interface.
This allows external traffic targeted at the second public IP address to reach the secondary private IP on VM-Prod1.

Key Concept

Azure network interfaces support multiple IP configurations, with each configuration supporting one private IP address and up to one public IP address.
Rate this question