Creating a Set of DHCP Options
On Private Cloud Appliance, you can create a set of DHCP options.
For conceptual information, see:
Avoid entering confidential information in names and tags.
-
In the Compute Web UI navigation menu, select Networking, then select Virtual Cloud Networks.
- At the top of the page, select the compartment that contains the VCN.
-
Select the name of the VCN for which you want to create a set of DHCP options.
The VCN details page is displayed.
-
Under Resources, select DHCP Options.
-
Select Create DHCP Options.
-
Enter the following information:
-
Name: A descriptive name for the set of options. The name doesn't have to be unique, and you can change it later.
-
Create in Compartment: The compartment where you want to create the set of DHCP options.
-
DNS Type: If you want instances in the subnet to resolve internet hostnames and hostnames of instances in the VCN, select Internet and VCN Resolver. To use a DNS server of your choice, select Custom Resolver and then enter the IP address of the DNS server. You can enter up to three DNS server IP addresses.
-
Search Domain: If you want instances in the subnet to append a particular search domain when resolving DNS queries, enter that domain here. Note that the Networking service automatically sets the search domain option in certain situations.
-
Tagging: (Optional) Add defined or free-form tags for this resource as described in Adding Tags at Resource Creation. Tags can also be applied later.
-
-
Select Create DHCP Options.
You can specify this set of options when creating or updating a subnet.
-
Use the oci network dhcp-options create command and required parameters to create a new set of DHCP options for the specified VCN.
oci network dhcp-options create --compartment-id <compartment_OCID> --vcn-id <vcn_OCID> --options <JSON_formatted_values> [OPTIONS]--options <JSON_formatted_values> is a set of DHCP options. This is a complex type whose value must be valid JSON. The value can be provided as a string on the command line or passed in as a file using the
file://path/to/filesyntax.The --generate-param-json-input option can be used to generate an example of the JSON which must be provided. We recommend storing this example in a file, modifying it as needed and then passing it back in using the
file://syntax.Example:
'[{"type": "DomainNameServer", "customDnsServers": ["202.44.61.9"], "serverType": "CustomDnsServer"}]'For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the CreateDhcpOptions operation to create a new set of DHCP options for the specified VCN.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.