After you associate a network protocol profile with a port group of a standard switch or a distributed switch, you can use the profile to dynamically allocate IP addresses to a virtual machine that is within a vApp.

Prerequisites

Verify that the virtual machine is connected to a port group that is associated with the network protocol profile.

Procedure

  • Select your task.
    Option Description
    Use a Network Protocol Profile to Allocate IP Addresses to a Virtual Machine
    1. Navigate to a virtual machine in the vCenter Server inventory.
    2. On the Configure tab, expand Settings and select vApp Options.
    3. Click the Edit button.

      The Edit vApp options dialog box opens.

    4. If vApp options are not enabled, select the Enable vApp options check box.
    5. Click the IP Allocation tab.
    6. In the Authoring section, select OVF environment as an IP allocation scheme.
    7. In the Deployment section, set the IP allocation to Transient - IP Pool or Static - IP Pool.
    8. Click OK.
    Use a Network Protocol Profile to Allocate IP Addresses to a vApp
    1. Navigate to a vApp in the vCenter Server inventory
    2. Right-click the vApp and select Edit Settings.

      The Edit vApp dialog box opens.

    3. Click the IP Allocation tab.
    4. In the Authoring section, select OVF environment as an IP allocation scheme.
    5. In the Deployment section, set the IP allocation to Transient - IP Pool or Static - IP Pool.
    6. Click OK.
    Both the Static - IP Pool and Transient - IP Pool options allocate an IP address from the range defined in the network protocol profile that is associated with the port group. If you select Static - IP Pool, the IP address is assigned the first time the virtual machine or vApp is powered on. The assigned IP address persists across restarts. If you select Transient - IP Pool, an IP address is assigned every the virtual machine or vApp is powered on.

Results

When the virtual machine is powered on, the adapters connected to the port group receive IP addresses from the range in the protocol profile. When the virtual machine is powered off, the IP addresses are released.