Getting a VNIC's properties
Get a VNIC's VLAN tag and other properties.
- Confirm you're viewing the compartment that contains the Compute instance you're interested in.
- Open the navigation menu and click Compute. Under Compute, click Instances.
- Click the name of the instance to view its details.
- Under Resources, click Attached VNICs.
- Click the name of the primary or secondary VNIC to view its details.
Use the
oci compute vnic-attachment get
command and required parameters to get the VNIC's VLAN tag and other properties:oci compute vnic-attachment get --vnic-attachment-id ocid ... [OPTIONS]
Use the
oci network vnic get
command and required parameters to get the VNIC's private IP address, MAC address, optional public IP address, optional DNS hostname, and other properties:oci network vnic get --vnic-id ocid ... [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the GetVnicAttachment operation to get the VNIC's VLAN tag and other properties. Run the GetVnic operation to get the VNIC's private IP address, MAC address, optional public IP address, optional DNS hostname, and other properties.