Creating a DHCP Options Set
Create a set of Dynamic Host Configuration Protocol (DHCP) options to automatically provide configuration information when instances start.
Use the oci network dhcp-options create command and required parameters to create a DHCP options set for a VCN:
oci network dhcp-options create --compartment-id <compartment_ocid> --vcn-id <vcn_ocid> --options <options> [OPTIONS]<options>is a set of DHCP options whose value must be valid JSON. You can provide the value as a string on the command line or in a file by using thefile://path/to/filesyntax.Use the
--generate-param-json-inputoption to generate an example of the required JSON. Store this example in a file, update it as needed, and then pass it by using thefile://syntax. For example:'[{"type": "DomainNameServer", "customDnsServers": ["202.44.61.9"], "serverType": "CustomDnsServer"}]'For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateDhcpOptions operation to create a DHCP options set for a VCN.