Associating DHCP options with a subnet instead of VPC?

0

Hi, I may miss something here but DHCP options set is associated with a VPC instead of a subnet within the VPC. Is there anyway to associate a DHCP options set to a particular subnet instead? If I have multiple subnets requiring dynamic IP assignments, how does it know the proper IP pool to assign an IP from?

Thank you.

demandé il y a 2 ans1204 vues
2 réponses
1
Réponse acceptée

Hello,

DHCP Options set is a VPC construct, it can not be associated with a subnet. Please see below note from the documentation; although you can create multiple custom DHCP options set, each VPC can have MAX 1 DHCP options set associated with it.

Reference: https://docs.aws.amazon.com/vpc/latest/userguide/DHCPOptionSetConcepts.html


A custom DHCP option set enables you to customize your VPC with your own DNS server, domain name, and more. You can create as many additional DHCP option sets as you want. However, you can only associate a VPC with one set of DHCP options at a time

profile pictureAWS
EXPERT
répondu il y a 2 ans
0

Appreciate the quick response, @Tushar_j! So I guess the only way to work around to using DHCP in multiple subnets in the same VPC is to put the subnets in different VPCs then. Thank you.

répondu il y a 2 ans
  • So just to be clear 1 DHCP options set in a VPC will serve multiple subnets in multiple AZs within a VPC just fine, you don't need to create multiple DHCP options set.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions