二层网络资源
VXLAN Pool
VXLAN Pool: A VXLAN pool is a collection of VXLAN networks established
based on VXLAN Tunnel Endpoints (VTEPs). The VNI of each VXLAN network in a VXLAN
pool must be unique.
- 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:
- 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:
二层网络
An L2 network is a layer 2 broadcast domain used for layer
2 isolation. Generally, L2 networks are identified by names of devices on the
physical 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.
An L2 network supports mainly four types.
Note:
- VxlanNetworkVxlanNetwork indicates that a VXLAN network is created by using the VNI specialized by VxlanNetworkPool of the Software SDN type.
- To create a VxlanNetwork, make sure that a VxlanNetworkPool of the software SDN type is available.
- Each VxlanNetwork corresponds to a VNI specialized by a VxlanNetworkPool of the Software SDN type.
- A VxlanNetwork is a logical L2 network that is encapsulated on a physical L3 network by using UDP.
- A VxlanNetwork can overlay across physical L3 networks.
- A VxlanNetwork encapsulates broadcast packets and multicast packets by using an IP multicast.
- A VxlanNetwork has a 24-bit VXLAN network identifier (VNI), and supports a maximum of 16 million VXLANs.
- A VxlanNetwork can be used to create an L3 network.
- L2NoVlanNetworkNoVlanNetwork indicates that you do not need to set VLAN on the NIC of the corresponding host.
- If you set VLAN for the switch port connected by the host, set the switch to Access mode.
- If you did not set VLAN for the switch connected by the host, do not make any operation.
- If you create an L2 network, note that a bridge will be created according to the NIC name that you entered.
- L2VlanNetworkL2VlanNetwork indicates that you need to set VLAN on the NIC of the corresponding host.
- The switch connected by the host must be in Trunk mode, and the Trunk VLAN must contain the VLAN ID that you are using.
- An L2VlanNetwork is a logical division of virtual LANs and supports 1-4094 subnets.
- If you create an L2 network, note that a VLAN device will be created according to the NIC name that you entered. In addition, a bridge will be created according to the VLAN device.
- HardwareVxlanNetworkHardwareVxlanNetwork indicates that a VXLAN network is created by using the VNI specialized by VxlanNetworkPool of the Hardware SDN type.
- To create a HardwareVxlanNetwork, make sure that a VxlanNetworkPool of the Hardware SDN type is available.
- Each HardwareVxlanNetwork corresponds to a VNI specified by VxlanNetworkPool of the Hardware SDN type.
- A HardwareVxlanNetwork is a logical L2 network that is encapsulated on a physical L3 network by using UDP.
- A HardwareVxlanNetwork can overlay across L3 networks.
- A HardwareVxlanNetwork encapsulates broadcast packets and multicast packets by using an IP multicast.
- A HardwareVxlanNetwork can be used to create an L3 network.

- When you add a NoVlanNetWork or VlanNetwork, enter the NIC name.
- In CentOS 7, 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.