Virtual switches#

General information#

Virtual switches allow you to connect instances in different VPCs. By default, a virtual switch provides only L2 connectivity, so you need to configure IP addresses for network interfaces of instances.

Virtual switches have no access to other networks, including the Internet. Similar to subnets, virtual switches are created within the availability zone specified when the virtual switch is created.

Virtual switch:

  • provides L2 connectivity between instances;

  • can be attached to/detached from instances without shutting them down (this feature should be supported by OS);

  • has no connectivity with other networks;

  • no IP-address space management;

  • instances from various VPCs can be attached;

  • you can attach external networks to a subnet;

  • no firewall;

  • no Internet connection.

Creating a virtual switch#

To create a virtual switch, go to Virtual machines Networking Virtual switches and click Create.

Optionally, you can specify the availability zone in which you want to create a virtual switch. If you do not specify the availability zone during creation, K2 Cloud will automatically select it.

Deleting a virtual switch#

You can delete a virtual switch if no instance, network interface, or external network is attached.

Go to Virtual machines Networking Virtual switches, select the switch and click Delete. The virtual switch will be deleted after confirmation.

Operations with network interfaces#

The Network interfaces tab lists all the network interfaces created in this virtual switch.

For more information on network interface operations, please see Network Interfaces.

Information about a virtual switch#

General information about virtual switches can be viewed in the resource table in Virtual machines Networking Virtual switches. To go to the page of a particular virtual switch, click its ID in the resource table in the Virtual switches subsection.

The Information tab displays the main parameters of the virtual switch:

  • virtual switch ID;

  • virtual switch name;

  • availability zone where the switch was created;

  • number of attached instances and network interfaces.

Here you can delete the virtual switch.

The Instances tab displays a table with details of the instances attached to the virtual switch:

  • instance ID;

  • instance name;

  • state;

  • availability zone in which the instance is placed.

The Network interfaces tab displays a table with details of the network interfaces attached to the virtual switch:

  • network interface;

  • interface name;

  • description;

  • ID of the instance to which the interface is attached;

  • state.