A virtual switch provides software-based switching between VMs, hosts, and the external network. A virtual switch provides the following ports:
VM port—A virtual NIC that connects to a VM for the VM to communicate with other VMs or the external network.
Local port—A port that connects to the protocol stack on the host.
Uplink port—A physical NIC that connects to the host. Each uplink port corresponds to a physical adapter, and multiple uplink ports and physical adapters can implement link aggregation.
After you add a host to CVM, the system automatically creates a default virtual switch named vswitch0 for network management on the host. If you do not configure any backup network or migration network, the backup and migration data for VMs will be transmitted through vswitch0.
A virtual switch cannot be deleted if it is being used by VMs.
On the top navigation bar, click Resources.
From the left navigation pane, select Compute > Host Pool Name > Cluster Name.
Click the vSwitches tab.
Click Add vSwitch.
Configure the parameters as described in "Parameters."
Click OK.
On the top navigation bar, click Resources.
From the left navigation pane, select Compute > Host Pool Name > Cluster Name.
Click the vSwitches tab.
Click Edit in the Actions column for the target virtual switch.
Configure the parameters as described in "Parameters."
Click OK.
On the top navigation bar, click Resources.
From the left navigation pane, select Compute > Host Pool Name > Cluster Name.
Click the vSwitches tab.
Click Delete in the Actions column for the target virtual switch.
In the dialog box that opens, click OK.
On the top navigation bar, click Resources.
From the left navigation pane, select Compute > Host Pool Name > Cluster Name.
Click the vSwitches tab.
In the Hosts Using the vSwitch list, click Delete in the Actions column for the target host.
In the dialog box that opens, click OK.
Mgmt—Network for transmitting control layer data between CVM and the hosts.
Service—Network for transmitting service data of VMs.
Storage—Network for transmitting data between hosts and IP SAN storage servers or distributed storage. This type of virtual switches cannot be used by VMs.
Backup—Network for transmitting backup data between VMs and remote servers. A host can have only one virtual switch or subnet of this type and the virtual switch cannot be used by VMs.
Migration—Network for transmitting memory and disk image data for VM migration. A host can have only one virtual switch or subnet of this type and the virtual switch cannot be used by VMs.
Other—Network for transmitting data other than previously mentioned.
Forwarding Mode: Forwarding mode of the virtual switch.
VEB—In Virtual Ethernet Bridge (VEB) mode, the traffic between VMs is forwarded through the software.
VXLAN(SDN)—The VXLAN (SDN) mode is designed for the VXLAN solution based on the SDN controller and the cloud compute management platform.
VLAN ID: VLAN ID of the interface connected to the protocol stack of the host.
MTU: Maximum packet length that the virtual switch allows in bytes. You cannot edit the MTU for virtual switch vswitch0.
DPDK: Enabling DPDK can improve the network performance of the VM.
Multicast: Enabling multicast to enable the virtual switch to forward multicast traffic. You cannot enable multicast for virtual switch vswitch0.
Physical Interfaces: Interfaces on physical NICs used by the virtual switch. A physical interface can be used by only one virtual switch. This parameter is unavailable if all physical interfaces on the hosts have been used. If the virtual switch is not assigned a physical interface, VMs attached to the virtual switch can communicate only with each other but cannot communicate with external networks. If you specify multiple physical interfaces for the virtual switch, you must configure the link aggregation mode and LB mode.
IPv4 Address: IPv4 address of the virtual switch.
Subnet Mask: Subnet mask of the IPv4 address.
IPv4 Gateway: Default IPv4 gateway address of the virtual switch. A host can have only one IPv4 gateway.
IPv6 Address: Enter an IPv6 address for the virtual switch.
Prefix Length: Enter the prefix length of the IPv6 address.
IPv6 Gateway: Enter an IPv6 gateway for the virtual switch. A host can have only one IPv6 gateway.
LAGG Mode: Link aggregation mode of the physical NICs. The dynamic link aggregation mode requires LACP on the physical switch. This parameter is available only when multiple physical interfaces are selected.
LB Mode: Load balancing mode of the physical NICs. This parameter is available only when multiple physical interfaces are selected.
Advanced—Performs load balancing based on Ethernet type, IP protocol, source IP address, destination IP address, source port, and destination port of the packets.
Basic—Performs load balancing based on the source MAC address and VLAN tag of the packets.
Active/Standby—Performs load balancing based on the primary and backup physical NICs. When the primary NIC fails, the system automatically switches the traffic to the backup NIC.
Fallback: Enabling this feature to switch services from the backup NIC back to the primary NIC after the primary NIC recovers. This parameter is required when the load balancing mode is Active/Standby.
Primary NIC Selection: Method used to select the primary NIC. This parameter is required when the load balancing mode is Active/Standby.
Rate-Based—The system automatically selects the primary NIC based on the rates of the NICs. The NIC with the highest rate becomes the primary NIC. When multiple NICs have the same rate, the system randomly selects a NIC as the primary NIC.
Manual—Specify the primary NIC by arranging the LB priorities of the NICs. The NIC with the highest priority is the primary NIC. You must configure the LB priorities for the NICs in this mode.