Listing an instance's VNICs

List the VNICs attached to a Compute instance.

    1. Confirm you're viewing the compartment that contains the Compute instance you're interested in.
    2. Open the navigation menu and click Compute. Under Compute, click Instances.
    3. Click the name of the instance to view its details.
    4. Under Resources, click Attached VNICs.
      The primary VNIC and any secondary VNICs attached to the instance are displayed. If the instance has two active physical NICs, the VNICs are grouped by NIC 0 and NIC 1.
  • Use the oci compute vnic-attachment list command and required parameters to list the VNICs attached to an instance:

    oci compute vnic-attachment list --compartment-id ocid  --instance-id  ocid ... [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the ListVnicAttachments operation to list the VNICs attached to an instance.