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

Background information

Before you associate a VPC network with a DHCP options set, note the following limits:
  • A DHCP options set can be associated with only VPC networks in the same region as the DHCP options set.
  • You can associate a DHCP options set with multiple VPC networks. However, a VPC network can be associated with only one DHCP options set.

    By default, a DHCP options set can be associated with up to 10 VPC networks. You can also increase the quota on the Quota Management page. For more information, see Manage service quotas.

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

      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 the advanced features for a VPC network, you cannot create ECS instances of the preceding instance families in this VPC network, or migrate such ECS instances to the VPC network.
    To resolve this problem, you must upgrade or release the ECS instances that do not support 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 target DHCP options set, and click Associate in the Actions column.
  4. In the Associate dialog box, select the VPC networks to be associated, and click OK.