Skip to content

stratumctl network-interfaces

Manage network interfaces

Terminal window
stratumctl network-interfaces [flags]

Aliases: network-interface, nic, nics, eni

Attach a NIC to an instance

Terminal window
stratumctl network-interfaces attach <nic-id> [flags]
Terminal window
stratumctl network-interfaces attach nic-7k2m9x4q8a --instance i-uy3ureaklq
stratumctl network-interfaces attach nic-7k2m9x4q8a --instance i-uy3ureaklq --device-index 1
Flag Type Default Description
--device-index int 0 NIC order in the instance’s domain XML
--instance string Target instance ID (required)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Create a network interface (returns 202)

Terminal window
stratumctl network-interfaces create <name> [flags]
Terminal window
stratumctl network-interfaces create web-nic --subnet subnet-3k8m2x7q
stratumctl network-interfaces create web-nic --subnet subnet-3k8m2x7q --security-group sg-3f8d2k9x
Flag Type Default Description
--description string Free-form description
--display-name string Human-friendly display name
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--security-group stringSlice Security group ID (repeatable, max 5)
--source-dest-check bool true Drop traffic whose src/dst doesn’t match the NIC IP
--subnet string Parent subnet ID (required)

Soft-delete a network interface

Terminal window
stratumctl network-interfaces delete <nic-id> [flags]
Terminal window
stratumctl network-interfaces delete nic-7k2m9x4q8a
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Detach a NIC from its instance

Terminal window
stratumctl network-interfaces detach <nic-id> [flags]
Terminal window
stratumctl network-interfaces detach nic-7k2m9x4q8a
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Describe a network interface

Terminal window
stratumctl network-interfaces get <nic-id> [flags]
Terminal window
stratumctl network-interfaces get nic-7k2m9x4q8a
stratumctl network-interfaces get nic-7k2m9x4q8a --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

List network interfaces in a project

Terminal window
stratumctl network-interfaces list [flags]
Terminal window
stratumctl network-interfaces list
stratumctl network-interfaces list --instance i-uy3ureaklq --output json
Flag Type Default Description
--instance string Filter by attached instance
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--subnet string Filter by subnet ID