Manage virtual switches for a host

About virtual switch management

A virtual switch (vSwitch) is a software-simulated network platform that can act as a switch entity. It mainly provides the following functions:

As shown in Figure-1, with a virtual switch configured, the system forwards received data packets to the virtual switch for processing. Then, the virtual switch forwards packets out of the corresponding virtual ports. A virtual switch provides the following virtual ports:

Each uplink port connects to a physical network adapter. You can aggregate the links between uplink ports and physical adapters to achieve link redundancy.

Figure-1 Virtual switch ports

 

 

You can create a virtual switch for a cluster or for a host. Virtual switches created in either method function the same. This section describes virtual switch management for a single host.

 

Creation method

Description

Cluster-based

Creates virtual switches with the same flavors for all hosts in a cluster.

Host-based

  • Creates a virtual switch for a single host. Make sure the virtual switches created for the same service type have the same name and settings on all the hosts. If the virtual switches have different names, VM migration will fail.

  • After you add a host, the system creates a default virtual switch named vswitch0 on the host for the management network. If you do not specify virtual switches for the backup network and migration network, both backup data and migration data are transmitted through the default switch.

  • For a host that has multiple virtual switches, you can configure gateway information for only one virtual switch.

 

Configuration workflow

  1. Add a virtual switch—Add virtual switches for the management network, service network, storage network, migration network, or backup network.

  1. Configure advanced settings—Configure port mirroring and DHCP services.

  1. Apply virtual switches—Apply virtual switches to VMs. For more information, see "Edit a VM."

  1. Manage virtual switches—Edit or delete virtual switches on a host and view virtual interface traffic.