Skip to content

stratumctl dhcp-option-sets

Manage DHCP option sets

Terminal window
stratumctl dhcp-option-sets [flags]

Aliases: dhcp-options, dopt, dopts

Associate a DHCP option set with a VPC (–reset returns the VPC to defaults)

Terminal window
stratumctl dhcp-option-sets associate [<dopt-id>] [flags]
Terminal window
stratumctl dhcp-option-sets associate dopt-2k8m4x7q --project p-team-a --vpc vpc-9k2m4x7q
stratumctl dhcp-option-sets associate --project p-team-a --vpc vpc-9k2m4x7q --reset
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--reset bool false Reset the VPC to the built-in DHCP defaults
--vpc string VPC to associate (required)

Create an immutable DHCP option set

Terminal window
stratumctl dhcp-option-sets create [flags]
Terminal window
stratumctl dhcp-option-sets create --project p-team-a --name corp-dns --dns-servers 10.0.0.2,10.0.0.3 --domain-name corp.example.com
stratumctl dhcp-option-sets create --project p-team-a --ntp-servers 10.0.0.10
Flag Type Default Description
--dns-servers stringSlice DHCP option 6 (max 4; REPLACES the managed.3 resolver)
--domain-name string DHCP option 15 search domain
--name string Option set name (defaults to the generated ID)
--ntp-servers stringSlice DHCP option 42 (max 4)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Delete a DHCP option set (must be unassociated)

Terminal window
stratumctl dhcp-option-sets delete <dopt-id> [flags]
Terminal window
stratumctl dhcp-option-sets delete dopt-2k8m4x7q
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Describe a DHCP option set

Terminal window
stratumctl dhcp-option-sets get <dopt-id> [flags]
Terminal window
stratumctl dhcp-option-sets get dopt-2k8m4x7q
stratumctl dhcp-option-sets get dopt-2k8m4x7q --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

List DHCP option sets in a project

Terminal window
stratumctl dhcp-option-sets list [flags]
Terminal window
stratumctl dhcp-option-sets list
stratumctl dhcp-option-sets list --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)