Creating a Provisioning Network
Create a provisioning network of the flat type. The provisioning network is a provider network in essence and is connected to the BMS through the physical switch of the provider network. In this way, the BMS can obtain the IP address and PXE server information using the DHCP service of the provider network. Therefore, DHCP must be enabled for the subnet of the provisioning network. Perform the following operations on the controller node.
- Creates a provisioning network.
1openstack network create --project admin --share --provider-network-type flat --provider-physical-network provider-ironic provisioning-net
The value of --provider-physical-network must be the same as the part before the colon (:) in the values of bridge_mappings and physical_interface_mappings in 2.
- Create a subnet of the provisioning network.
1 2 3
openstack subnet create provisioning-subnet-1 --network provisioning-net \ --subnet-range 192.168.101.0/24 --ip-version 4 --gateway 192.168.101.1 \ --allocation-pool start=192.168.101.10,end=192.168.101.50 --dhcp
In the --allocation-pool parameter, start and end indicate the IP address range that is available for the provisioning network in the network segment. Configure it based on the actual cluster scale.