Create an L2 Network

On the main menu of ZStack Cloud, choose Resource Center > Network Resource > L2 Network Resources > L2 Network. On the L2 Network page, click Create L2 Network. Then, the Create L2 Network page is displayed.

The following lists the L2 networks that you can add:
  • Create an L2NoVlanNetwork.
  • Create a VxlanNetwork.
  • Create an L2VlanNetwork.
  • Create a HardwareVxlanNetwork.

Create an L2NoVlanNetwork

Set the following parameters:
  • Zone: By default, the current zone is displayed.
  • Name: Enter a name for the L2 network.

    The L2 network name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+).

  • Description: Optional. Enter a description for the L2 network.
  • Type: Select L2NoVlanNetwork.
  • NIC Name: Enter a NIC name for the L2 network. For example, em01.
  • SR-IOV: Optional. Determine whether to enable SR-IOV.
    • By default, SR-IOV is not enabled. In this case, the SR-IOV cannot be enabled for the L3 network corresponding to this L2 network.
    • If SR-IOV is enabled, the SR-IOV can be enabled for the L3 network corresponding to this L2 network. In this case, make sure that VF NICs are generated from the physical NICs used by the L2 network through SR-IOV.
  • Cluster: Optional. Select the cluster to be attached.
    Note:
    • You can attach a cluster when you create an L2NoVlanNetwork or after you create the L2 network.
    • If an L2 network is not attached to a cluster, you cannot use the L2 network to create VM instances.
Figure 1. Create L2NoVlanNetwork


Create a VxlanNetwork

Before you can create a VxlanNetwork, create a VXLAN pool of the software SDN type.

Set the following parameters:
  • Zone: By default, the current zone is displayed.
  • Name: Enter a name for the L2 network.

    The L2 network name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+).

  • Description: Optional. Enter a description for the L2 network.
  • Type: Select VxlanNetwork.
  • VXLAN Pool: Select a VXLAN pool of the software SDN type.
  • VNI: Optional. Select a specified VNI in the VXLAN pool.

    If not specified, the Cloud allocates a VNI randomly.

Figure 2. Create VxlanNetwork


Create an L2VlanNetwork

Set the following parameters:
  • Zone: By default, the current zone is displayed.
  • Name: Enter a name for the L2 network.

    The L2 network name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+).

  • Description: Optional. Enter a description for the L2 network.
  • Type: Select L2VlanNetwork.
  • VLAN ID: Specify a VLAN ID that matches the actual network configurations. Valid values: 1 to 4094.
  • NIC Name: Enter a NIC name for the L2 network. For example, em01.
  • SR-IOV: Optional. Determine whether to enable SR-IOV.
    • By default, SR-IOV is not enabled. In this case, the SR-IOV cannot be enabled for the L3 network corresponding to this L2 network.
    • If SR-IOV is enabled, the SR-IOV can be enabled for the L3 network corresponding to this L2 network. In this case, make sure that VF NICs are generated from the physical NICs used by the L2 network through SR-IOV.
  • Cluster: Optional. Select the cluster to be attached.
    Note:
    • You can attach a cluster when you create an L2VlanNetwork or after you create the L2 network.
    • If an L2 network is not attached to a cluster, you cannot use the L2 network to create VM instances.
Figure 3. Create L2VlanNetwork


Create a HardwareVxlanNetwork

Before you can create a HardwareVxlanNetwork, create a VXLAN pool of the hardware SDN type.

Set the following parameters:
  • Zone: By default, the current zone is displayed.
  • Name: Enter a name for the L2 network.

    The L2 network name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+).

  • Description: Optional. Enter a description for the L2 network.
  • Type: Select HardwareVxlanNetwork.
  • VXLAN Pool: Select a VXLAN pool of the hardware SDN type.
  • VNI: Optional. Select a specified VNI in the VXLAN pool.

    If not specified, the Cloud allocates a VNI randomly.

Figure 4. Create HardwareVxlanNetwork