L2 Network
What is L2 Network?
- VLAN, VXLAN, and SDN can be used as an L2 network.
- An L2 network is used to provide layer 2 isolation for an L3 network.
L2 Network Types
| Type | Description |
|---|---|
| L2NoVlanNetwork |
|
| L2VlanNetwork |
|
| VxlanNetwork |
|
| HardwareVxlanNetwork |
|
| L2GeneveNetwork |
|
Note: For some OSes, the NIC name in the ethX format will be changed after the system reboots. In addition, the NIC sequence will also be randomly changed. We recommend that you change the NIC name of each compute node (especially for VM instances with multiple NICs) to a non-ethX format, such as em01.L2 Network | Cluster | L3 Network | VM Instance
- If you attached an L2 network to a cluster whereas the L2 network was not attached to a host, you could not add the host to the cluster.
- If you did not attach an L2 network to a cluster and the L2 network was not attached to a host, you could not attach the L2 network to the cluster.
- If you attached an L2 network to a host whereas the corresponding L2 network devices were inconsistently connected to other hosts in a cluster, note that the VM IP that you created would not work properly.
- If you delete an L2 network, the corresponding L3 networks and VM NICs that are using these networks will also be deleted.
- If you delete an L2 network, the VPC vRouter and vRouter offering that use the L2 network will also be deleted.
- If you delete an L2 public network, all network services that are using the network, such as VPC vRouter, vRouter offering, VIP, EIP, port forwarding, load balancing, IPsec tunnel, and Netflow will also be deleted.
- You can create multiple VxlanNetworks using a VXLAN Pool. These VxlanNetworks can be applied to flat networks and VPC networks, respectively.
- VM instances in an L2 network of the VxlanNetwork type cannot be accessed through the Internet. To access these VM instances through the Internet, use an EIP or port forwarding.
- You can use an L2 network to create multiple L3 networks. However, we recommend that unless necessary you do not create multiple L3 networks from an L2 network. This may cause the DHCP services of these L3 networks unable to work as expected.
Create an L2 Network
Log in to ZCF, switch to the corresponding region, and then on the main menu, choose . On the L2 Network page, click Create L2 Network. Then, the Create L2 Network page is displayed.
- Create an L2NoVlanNetwork.
- Create a VxlanNetwork.
- Create an L2VlanNetwork.
- Create a HardwareVxlanNetwork.
- Create an L2GeneveNetwork
Create an L2NoVlanNetwork
- Zone: By default, the current zone is displayed.
- Name: Enter a name for the L2
network.
The name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, spaces, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+) and cannot begin or end with spaces.
- Description: Optional. Enter a description for the L2 network.
- Switch Type: Choose a type of switch.
- Linux Bridge: The Linux Bridge switch type is suitable for small-scale, low-load network environments.
- ZNS: Use a ZNS SDN controller to create an L2 network
- Network Type: Select L2NoVlanNetwork.
- Cluster: Select the cluster to which the L2 network will be attached.
- NIC Name: Select or enter an NIC
name for the L2 network, for example, em01.
Note: You can only select or
enter an NIC name shared across all hosts in the cluster.

Create an L2VlanNetwork
- Zone: By default, the current zone is displayed.
- Name: Enter a name for the L2
network.
The name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, spaces, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+) and cannot begin or end with spaces.
- Description: Optional. Enter a description for the L2 network.
- Switch Type: Choose a type of switch.
- Linux Bridge: The Linux Bridge switch type is suitable for small-scale, low-load network environments.
- ZNS: Use a ZNS SDN controller to create an L2 network
- Network Type: Select L2VlanNetwork.
- Cluster: Select the cluster to which the L2 network will be attached.
- VLAN ID: Specify a VLAN ID that matches the actual network configurations. Valid values: 1 to 4094.
- NIC Name: Select or enter an NIC
name for the L2 network, for example, em01.
Note: You can only select or
enter an NIC name shared across all hosts in the cluster. - PVLAN (Isolated): By default, the switch is disabled.
You can specify whether to enable the isolated VLAN function on the Cloud.
It is usually used to work with the PVLAN function of the physical switch.
When enabled, the VM instances in the L3 network created from this L2
network cannot communicate with each other.
Note:
- Currently, you cannot change the switch status after the creation. Please plan your network in advance.
- The L3 network services are not affected if the L2 network has isolated VLAN enabled.

Create a VxlanNetwork
- Zone: By default, the current zone is displayed.
- Name: Enter a name for the L2
network.
The name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, spaces, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+) and cannot begin or end with spaces.
- Description: Optional. Enter a description for the L2 network.
- Switch Type: You can create VxlanNetwork on the Linux Bridge switch.
- Network Type: Select VxlanNetwork.
- VXLAN Pool: Select a VXLAN pool of the software SDN type.
Note:
- Before you can create a VxlanNetwork, create a VXLAN pool of the software SDN type.
- For more information, see Create Software-SDN VXLAN Pool.
- VNI: Optional. Specify a VNI in the VXLAN pool. If not specified, the platform allocates a VNI randomly.

Create a HardwareVxlanNetwork
To create a HardwareVxlanNetwork, make sure a valid SDN network license is added to the platform.
- Zone: By default, the current zone is displayed.
- Name: Enter a name for the L2
network.
The name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, spaces, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+) and cannot begin or end with spaces.
- Description: Optional. Enter a description for the L2 network.
- Switch Type: You can create HardwareVxlanNetwork on the Linux Bridge switch.
- Network Type: Select HardwareVxlanNetwork.
- VXLAN Pool: Select a VXLAN pool of the hardware SDN type.
Note:
- Before you can create a HardwareVxlanNetwork, create a VXLAN pool of the hardware SDN type.
- For more information, see Create Hardware-SDN VXLAN Pool.
- You need to configure the SDN Tenant parameter, if the selected VXLAN Pool is created based on H3C VCFC R6506.
- If the selected VXLAN Pool is created on HUAWEI SDN controller, the VNI parameter will not be displayed. In addition, you need to configure the Remote VPC and VLAN ID parameters.
- VNI: Optional. Select a specified VNI in the VXLAN
pool.
If not specified, the Cloud allocates a VNI randomly.

Create an L2GeneveNetwork
To create an L2GeneveNetwork, you must install the ZNS Network Service from the application marketplace in advance.
- Zone: By default, the current zone is displayed.
- Name: Enter a name for the L2
network.
The name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, spaces, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+) and cannot begin or end with spaces.
- Description: Optional. Enter a description for the L2 network.
- Switch Type: You can create L2GeneveNetworks on the ZNS switch.
- Network Type: Select L2GeneveNetwork.
- Cluster: Select the cluster to which the L2 network will be attached.
- SDN Controller: Select the ZNS SDN controller.
- Geneve ID: Enter the Geneve ID.

Manage an L2 Network
Log in to ZCF, switch to the corresponding region, and then on the main menu, choose . Then, the L2 Network page is displayed. The following tables list the actions that you can perform on an L2 network.
| Action | Description |
|---|---|
| Create L2 Network | Create an L2NoVlanNetwork or L2VlanNetwork network. |
| Edit L2 Network | Edit the name and description of the L2 network. |
| Attach Cluster | Attach the L2 network to a cluster. |
| Detach Cluster | Detach the L2 network from a cluster. Note:
|
| Set Sharing Mode |
Set the sharing mode of a resource. The
platform provides the following sharing modes:
Note:
|
| Delete L2 Network | Delete the L2 network. Note: Deleting an L2 network also deletes its L3 networks and associated VPC vRouters, and detaches the corresponding VM NICs. Please exercise caution. |
| Modify L2 Network type | Modify a L2 Network type to L2VlanNetwork or L2NoVlanNetwork. Note: You can perform this modification on the L2 Network details page by editing the Type parameter.
|
| Modify VLAN ID | Modify the VLAN ID of the L2 Network. Note: You can perform this modification on the L2 Network details page by editing the VLAN ID parameter.
|
| Action | Description |
|---|---|
| Create L2 Network | Create a VxlanNetwork network. |
| Edit L2 Network | Edit the name and description of the L2 network. |
| Set Sharing Mode |
Set the sharing mode of a resource. The
platform provides the following sharing modes:
Note:
|
| Delete L2 Network | Delete the L2 network. Note: Deleting an L2 network also deletes its L3 networks and associated VPC vRouters, and detaches the corresponding VM NICs. Please exercise caution. |
| Modify VNI | Modify the VNI or the L2 network. Note: You can perform this modification on the L2 Network details page by editing the VNI parameter.
|
| Action | Description |
|---|---|
| Create L2 Network | Create HardwareVxlanNetwork network. |
| Edit L2 Network | Edit the name and description of the L2 network. |
| Delete L2 Network | Delete the L2 network. Note: Deleting an L2 network also deletes its L3 networks and associated VPC vRouters, and detaches the corresponding VM NICs. Please exercise caution. |
| Action | Description |
|---|---|
| Create L2 Network | Create L2GeneveNetworks. |
| Edit Name and Description | Edit the name and description of the L2 network. |
| Attach Cluster | Attach the L2 network to a cluster. |
| Detach Cluster | Detach the L2 network from a cluster. Note:
|
| Set Sharing Mode |
Set the sharing mode of a resource. The
platform provides the following sharing modes:
Note:
|
| Delete L2 Network | Delete the L2 network. Note: Deleting an L2 network also deletes its L3 networks and associated VPC vRouters, and detaches the corresponding VM NICs. Please exercise caution. |
What is VXLAN Pool?
- Before you can use a VXLAN network, create a VXLAN pool in advance.
- A VXLAN pool is only a collection of VXLAN networks and cannot be used to create L3 networks.
- VXLAN pool supports two types of SDN: software SDN and hardware SDN.
- Software SDN:
- The VNI range of a software-SDN VXLAN pool can be 1-16777214.
- Hosts in the cluster to which the software-SDN VXLAN pool is
attached must have an IP address as a VXLAN tunnel endpoint
(VTEP) in the specified CIDR.
- Generally, a VTEP corresponds to a NIC IP of a compute
node within a cluster. On the Cloud, you can configure a
VTEP according to its CIDR. For example,
- Assume that the NIC IP of a compute node is 10.12.0.8, the netmask is 255.0.0.0, and the gateway is 10.0.0.1. Then, the CIDR of the VTEP is 10.0.0.1/8.
- Assume that the NIC IP of the compute node is 172.20.12.13, the netmask is 255.255.0.0, and the gateway is 172.20.0.1. Then, the CIDR of the VTEP is 172.20.0.1/16.
- When a VXLAN pool is attached to a cluster, the IP address that is associated to the VTEP will be checked without checking physical L2 devices.
- Generally, a VTEP corresponds to a NIC IP of a compute
node within a cluster. On the Cloud, you can configure a
VTEP according to its CIDR. For example,
- Hardware SDN:
- Make sure a valid SDN network license is added to the platform.
- Before you can create a hardware-SDN VXLAN pool, add an SDN controller to the Cloud in advance.
- The VNI range of a hardware-SDN VXLAN pool depends on the distributed vSwitch to which an SDN controller corresponds.
- The host NIC in the cluster to which the hardware-SDN VXLAN pool is attached must connect to a switch managed by the SDN controller.
- If you use VCFC to configure hardware SDN, configure the mapping between VLAN and VXLAN on VCFC in advance.
- Software SDN:
Create a VXLAN Pool
Log in to ZCF, switch to the corresponding region, and then on the main menu, choose . On the VXLAN Pool page, click Create VXLAN Pool. Then, the Create VXLAN Pool page is displayed.
- Create a software-SDN VXLAN pool
- Create a hardware-SDN VXLAN pool
Create Software-SDN VXLAN Pool
- Zone: By default, the current zone is displayed.
- Name: Enter a name for the VXLAN pool.The name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, spaces, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+) and cannot begin or end with spaces.
- Description: Optional. Enter a description for the VXLAN pool.
- SDN Type: Select Software.
- VNI Range: Enter the start ID and end ID of VXLAN networks.
Note:
- You can enter an ID that ranges from 1 to 16777214.
- The end ID must be equal to or greater than the start ID.
- The two VNI IDs 16777215 and 16777216 are reserved by the system of this cloud platform.
- Cluster: Optional. Attach the VXLAN pool to a cluster.
Note:
- You can attach a VXLAN pool to a cluster when you create the VXLAN pool or after the VXLAN pool is created.
- When you attach the VXLAN pool to a cluster, IP addresses of the compute nodes must be available in the cluster that correspond to the VTEP CIDR block.
- VTEP CIDR: Enter the corresponding VTEP CIDR block.

Create Hardware-SDN VXLAN Pool
To create a hardware-SDN VXLAN Pool, make sure a valid SDN network license is added to the platform.
- Zone: By default, the current zone is displayed.
- Name: Enter a name for the VXLAN pool. The name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, spaces, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+) and cannot begin or end with spaces.
- Description: Optional. Enter a description for the VXLAN pool.
- SDN Type: Select Hardware.
- SDN Controller: Select an SDN controller.
Note: You need add an SDN controller to the cloud platform in advance. - VNI Range: Enter the start ID and end ID of hardware-based VXLAN networks.
Note:
- The end ID must be equal to or greater than the start ID.
- The VNI range of a hardware-SDN VXLAN pool varies depending on the virtual distributed switches associated with the SDN controller.
- This parameter will not be displayed if the vendor of the selected SDN controller is HUAWEI.
- Cluster: Optional. Attach the VXLAN pool to a cluster.
Note: You can attach a cluster to a VXLAN pool when you create the VXLAN pool or after the VXLAN pool is created. - NIC: Enter a host NIC.
Note: The host NICs in the cluster attached to the VXLAN pool must be connected with the switches managed by the SDN controller.

Manage a VXLAN Pool
Log in to ZCF, switch to the corresponding region, and then on the main menu, choose . Then, the VXLAN Pool page is displayed.
| Action | Description |
|---|---|
| Create VXLAN Pool | Create a VXLAN pool. |
| Edit VXLAN Pool | Edit the name and description of the VXLAN pool. |
| Attach Cluster | Attach the VXLAN pool to a cluster.
|
| Detach Cluster | Detach the VXLAN pool from a cluster. |
| Set Sharing Mode |
Set the sharing mode of a resource. The
platform provides the following sharing modes:
Note:
VXLAN pools created by using hardware SDNs cannot be shared. |
| Delete VXLAN Pool | Deleting a VXLAN pool also deletes the VXLAN networks in the pool and the associated L3 networks and VM NICs. Proceed with caution. |
