View VPCs and subnets

This guide shows you how to view Virtual Private Clouds (VPCs) and subnets in your project using the evroc CLI.

VPCs and subnets are created automatically when you create a project. You can't create, modify, or delete them manually.

For information about VPCs and subnets, see Virtual Private Clouds (VPCs) and Subnets.

Prerequisites

  • Access to an evroc organization and project
  • evroc CLI installed and configured

View your VPC

Each project has one default VPC named default-se-sto.

List VPCs in your project:

evroc networking virtualprivatecloud list

Use evroc networking virtualprivatecloud get <name> for detailed information about a specific VPC.

See List VPCs in the API reference.

View your subnets

Each VPC has three default subnets, one per availability zone:

SubnetZoneCIDR
default-se-sto-ase-sto-a10.0.1.0/24
default-se-sto-bse-sto-b10.0.2.0/24
default-se-sto-cse-sto-c10.0.3.0/24

List subnets in your project:

evroc networking subnet list

Use evroc networking subnet get <name> for detailed information about a specific subnet.

See List Subnets in the API reference.

Understanding VM IP addresses

When you create a VM, it's automatically assigned a private IP address from the subnet in its zone. For example, a VM in zone se-sto-a gets an IP from 10.0.1.0/24. You can view a VM's private IP address using the VM list or get commands:

evroc compute virtualmachine get myvm

Look for the privateIPv4Address field in the output to find the VM's private IP address.

Next steps