This topic describes how to associate a virtual private cloud (VPC) with a Dynamic Host Configuration Protocol (DHCP) options set. After a VPC is associated with a DHCP options set, existing and new Elastic Compute Service (ECS) instances deployed in the VPC use the configurations of the DHCP options set.

Background information

Before you associate a VPC with a DHCP options set, take note of the following limits:
  • A DHCP options set can be associated with only VPCs in the region where the DHCP options set is created.
  • A DHCP options set can be associated with multiple VPCs. However, a VPC can be associated with only one DHCP options set.

    By default, a DHCP options set can be associated with up to 10 VPCs. You cannot increase the quota.

  • VPC advanced features, including DHCP options sets, have the following limits on ECS instance families:
    • If a VPC contains an ECS instance that belongs to one of the following instance families, you cannot configure advanced features for the VPC.

      ecs.c1, ecs.c2, ecs.c4, ecs.ce4, ecs.cm4, ecs.d1, ecs.e3, ecs.e4, ecs.ga1, ecs.gn4, ecs.gn5, ecs.i1, ecs.m1, ecs.m2, ecs.mn4, ecs.n1, ecs.n2, ecs.n4, ecs.s1, ecs.s2, ecs.s3, ecs.se1, ecs.sn1, ecs.sn2, ecs.t1, and ecs.xn4.

    • After you configure an advanced feature for a VPC, you cannot create ECS instances of the preceding instance families in the VPC, or migrate such ECS instances to the VPC.
    To resolve this problem, you must upgrade or release the ECS instances that do not support VPC advanced features.
    Note If your VPC contains ECS instances of the preceding instance families and has DHCP options sets configured, you must upgrade or release the ECS instances. Otherwise, the DHCP options sets may not work as expected. For more information, see Overview of VPC advanced features.

Procedure

  1. Log on to the VPC console.
  2. In the left-side navigation pane, click DHCP Options Sets.
  3. On the DHCP Options Sets page, find the DHCP options set that you want to manage and click Associate in the Actions column.
  4. In the Associate dialog box, select the VPCs to be associated and click OK.